WorkMailMessageFlowClient#
Index > WorkMailMessageFlow > WorkMailMessageFlowClient
Auto-generated documentation for WorkMailMessageFlow type annotations stubs module mypy-boto3-workmailmessageflow.
WorkMailMessageFlowClient#
Type annotations and code completion for boto3.client("workmailmessageflow")
.
boto3 documentation
# WorkMailMessageFlowClient usage example
from boto3.session import Session
from mypy_boto3_workmailmessageflow.client import WorkMailMessageFlowClient
def get_workmailmessageflow_client() -> WorkMailMessageFlowClient:
return Session().client("workmailmessageflow")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("workmailmessageflow").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("workmailmessageflow")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.InvalidContentLocation,
client.exceptions.MessageFrozen,
client.exceptions.MessageRejected,
client.exceptions.ResourceNotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_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 boto3.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 boto3.client("workmailmessageflow").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("workmailmessageflow").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
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 boto3.client("workmailmessageflow").get_raw_message_content
method.
boto3 documentation
# get_raw_message_content method definition
def get_raw_message_content(
self,
*,
messageId: str,
) -> GetRawMessageContentResponseTypeDef: # (1)
...
# get_raw_message_content method usage example with argument unpacking
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 boto3.client("workmailmessageflow").put_raw_message_content
method.
boto3 documentation
# put_raw_message_content method definition
def put_raw_message_content(
self,
*,
messageId: str,
content: RawMessageContentTypeDef, # (1)
) -> Dict[str, Any]:
...
# put_raw_message_content method usage example with argument unpacking
kwargs: PutRawMessageContentRequestRequestTypeDef = { # (1)
"messageId": ...,
"content": ...,
}
parent.put_raw_message_content(**kwargs)