Skip to content

WorkMailMessageFlowClient#

Index > WorkMailMessageFlow > WorkMailMessageFlowClient

Auto-generated documentation for WorkMailMessageFlow type annotations stubs module types-aiobotocore-workmailmessageflow.

WorkMailMessageFlowClient#

Type annotations and code completion for session.create_client("workmailmessageflow") boto3 documentation

WorkMailMessageFlowClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_workmailmessageflow.client import WorkMailMessageFlowClient

session = get_session()
async with session.create_client("workmailmessageflow") as client:
    client: WorkMailMessageFlowClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("workmailmessageflow").exceptions structure.

WorkMailMessageFlowClient.exceptions usage example

async with session.create_client("workmailmessageflow") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.InvalidContentLocation,
        client.MessageFrozen,
        client.MessageRejected,
        client.ResourceNotFoundException,
    ) as e:
        print(e)
WorkMailMessageFlowClient usage type checking example

from types_aiobotocore_workmailmessageflow.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("workmailmessageflow").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("workmailmessageflow").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("workmailmessageflow").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_raw_message_content#

Retrieves the raw content of an in-transit email message, in MIME format.

Type annotations and code completion for session.create_client("workmailmessageflow").get_raw_message_content method. boto3 documentation

# get_raw_message_content method definition

await def get_raw_message_content(
    self,
    *,
    messageId: str,
) -> GetRawMessageContentResponseTypeDef:  # (1)
    ...
  1. See GetRawMessageContentResponseTypeDef
# get_raw_message_content method usage example with argument unpacking

kwargs: GetRawMessageContentRequestRequestTypeDef = {  # (1)
    "messageId": ...,
}

parent.get_raw_message_content(**kwargs)
  1. See GetRawMessageContentRequestRequestTypeDef

put_raw_message_content#

Updates the raw content of an in-transit email message, in MIME format.

Type annotations and code completion for session.create_client("workmailmessageflow").put_raw_message_content method. boto3 documentation

# put_raw_message_content method definition

await def put_raw_message_content(
    self,
    *,
    messageId: str,
    content: RawMessageContentTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See RawMessageContentTypeDef
# put_raw_message_content method usage example with argument unpacking

kwargs: PutRawMessageContentRequestRequestTypeDef = {  # (1)
    "messageId": ...,
    "content": ...,
}

parent.put_raw_message_content(**kwargs)
  1. See PutRawMessageContentRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("workmailmessageflow").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> WorkMailMessageFlowClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("workmailmessageflow").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...