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.client("workmailmessageflow") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_workmailmessageflow.client import WorkMailMessageFlowClient

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

Exceptions

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

Usage example
async with session.client("workmailmessageflow") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.InvalidContentLocation,
        client.MessageFrozen,
        client.MessageRejected,
        client.ResourceNotFoundException,
    ) as e:
        print(e)
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.client("workmailmessageflow").can_paginate method. boto3 documentation

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

close

Closes underlying endpoint connections.

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

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.client("workmailmessageflow").generate_presigned_url method. boto3 documentation

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.client("workmailmessageflow").get_raw_message_content method. boto3 documentation

Method definition
await def get_raw_message_content(
    self,
    *,
    messageId: str,
) -> GetRawMessageContentResponseTypeDef:  # (1)
    ...
  1. See GetRawMessageContentResponseTypeDef
Usage example with kwargs
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.client("workmailmessageflow").put_raw_message_content method. boto3 documentation

Method definition
await def put_raw_message_content(
    self,
    *,
    messageId: str,
    content: RawMessageContentTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See RawMessageContentTypeDef
Usage example with kwargs
kwargs: PutRawMessageContentRequestRequestTypeDef = {  # (1)
    "messageId": ...,
    "content": ...,
}

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

__aenter__

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

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

__aexit__

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

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