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
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.
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)
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
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("workmailmessageflow").close
method.
boto3 documentation
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
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
await def get_raw_message_content(
self,
*,
messageId: str,
) -> GetRawMessageContentResponseTypeDef: # (1)
...
kwargs: GetRawMessageContentRequestRequestTypeDef = { # (1)
"messageId": ...,
}
parent.get_raw_message_content(**kwargs)
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
await def put_raw_message_content(
self,
*,
messageId: str,
content: RawMessageContentTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: PutRawMessageContentRequestRequestTypeDef = { # (1)
"messageId": ...,
"content": ...,
}
parent.put_raw_message_content(**kwargs)
__aenter__
Type annotations and code completion for session.client("workmailmessageflow").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("workmailmessageflow").__aexit__
method.
boto3 documentation