SESClient#
Auto-generated documentation for SES type annotations stubs module mypy-boto3-ses.
SESClient#
Type annotations and code completion for boto3.client("ses")
.
boto3 documentation
# SESClient usage example
from boto3.session import Session
from mypy_boto3_ses.client import SESClient
def get_ses_client() -> SESClient:
return Session().client("ses")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("ses").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("ses")
try:
do_something(client)
except (
client.exceptions.AccountSendingPausedException,
client.exceptions.AlreadyExistsException,
client.exceptions.CannotDeleteException,
client.exceptions.ClientError,
client.exceptions.ConfigurationSetAlreadyExistsException,
client.exceptions.ConfigurationSetDoesNotExistException,
client.exceptions.ConfigurationSetSendingPausedException,
client.exceptions.CustomVerificationEmailInvalidContentException,
client.exceptions.CustomVerificationEmailTemplateAlreadyExistsException,
client.exceptions.CustomVerificationEmailTemplateDoesNotExistException,
client.exceptions.EventDestinationAlreadyExistsException,
client.exceptions.EventDestinationDoesNotExistException,
client.exceptions.FromEmailAddressNotVerifiedException,
client.exceptions.InvalidCloudWatchDestinationException,
client.exceptions.InvalidConfigurationSetException,
client.exceptions.InvalidDeliveryOptionsException,
client.exceptions.InvalidFirehoseDestinationException,
client.exceptions.InvalidLambdaFunctionException,
client.exceptions.InvalidPolicyException,
client.exceptions.InvalidRenderingParameterException,
client.exceptions.InvalidS3ConfigurationException,
client.exceptions.InvalidSNSDestinationException,
client.exceptions.InvalidSnsTopicException,
client.exceptions.InvalidTemplateException,
client.exceptions.InvalidTrackingOptionsException,
client.exceptions.LimitExceededException,
client.exceptions.MailFromDomainNotVerifiedException,
client.exceptions.MessageRejected,
client.exceptions.MissingRenderingAttributeException,
client.exceptions.ProductionAccessNotGrantedException,
client.exceptions.RuleDoesNotExistException,
client.exceptions.RuleSetDoesNotExistException,
client.exceptions.TemplateDoesNotExistException,
client.exceptions.TrackingOptionsAlreadyExistsException,
client.exceptions.TrackingOptionsDoesNotExistException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_ses.client import Exceptions
def handle_error(exc: Exceptions.AccountSendingPausedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("ses").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
clone_receipt_rule_set#
Creates a receipt rule set by cloning an existing one.
Type annotations and code completion for boto3.client("ses").clone_receipt_rule_set
method.
boto3 documentation
# clone_receipt_rule_set method definition
def clone_receipt_rule_set(
self,
*,
RuleSetName: str,
OriginalRuleSetName: str,
) -> Dict[str, Any]:
...
# clone_receipt_rule_set method usage example with argument unpacking
kwargs: CloneReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"OriginalRuleSetName": ...,
}
parent.clone_receipt_rule_set(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("ses").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_configuration_set#
Creates a configuration set.
Type annotations and code completion for boto3.client("ses").create_configuration_set
method.