Skip to content

WorkMailMessageFlowClient#

Index > WorkMailMessageFlow > WorkMailMessageFlowClient

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

WorkMailMessageFlowClient#

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

# WorkMailMessageFlowClient usage example

from boto3.session import Session
from types_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 types_boto3_workmailmessageflow.client import Exceptions

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

Methods#

can_paginate#

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:
    ...

generate_presigned_url#

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)
    ...
  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 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]:
    ...
  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