SESClient#
Auto-generated documentation for SES type annotations stubs module types-boto3-ses.
SESClient#
Type annotations and code completion for boto3.client("ses")
.
boto3 documentation
# SESClient usage example
from boto3.session import Session
from types_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 types_boto3_ses.client import Exceptions
def handle_error(exc: Exceptions.AccountSendingPausedException) -> None:
...
Methods#
can_paginate#
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:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("ses").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:
...
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)
create_configuration_set#
Creates a configuration set.
Type annotations and code completion for boto3.client("ses").create_configuration_set
method.
boto3 documentation
# create_configuration_set method definition
def create_configuration_set(
self,
*,
ConfigurationSet: ConfigurationSetTypeDef, # (1)
) -> dict[str, Any]:
...
# create_configuration_set method usage example with argument unpacking
kwargs: CreateConfigurationSetRequestRequestTypeDef = { # (1)
"ConfigurationSet": ...,
}
parent.create_configuration_set(**kwargs)
create_configuration_set_event_destination#
Creates a configuration set event destination.
Type annotations and code completion for boto3.client("ses").create_configuration_set_event_destination
method.
boto3 documentation
# create_configuration_set_event_destination method definition
def create_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestination: EventDestinationTypeDef, # (1)
) -> dict[str, Any]:
...
# create_configuration_set_event_destination method usage example with argument unpacking
kwargs: CreateConfigurationSetEventDestinationRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"EventDestination": ...,
}
parent.create_configuration_set_event_destination(**kwargs)
create_configuration_set_tracking_options#
Creates an association between a configuration set and a custom domain for open and click event tracking.
Type annotations and code completion for boto3.client("ses").create_configuration_set_tracking_options
method.
boto3 documentation
# create_configuration_set_tracking_options method definition
def create_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
TrackingOptions: TrackingOptionsTypeDef, # (1)
) -> dict[str, Any]:
...
# create_configuration_set_tracking_options method usage example with argument unpacking
kwargs: CreateConfigurationSetTrackingOptionsRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"TrackingOptions": ...,
}
parent.create_configuration_set_tracking_options(**kwargs)
create_custom_verification_email_template#
Creates a new custom verification email template.
Type annotations and code completion for boto3.client("ses").create_custom_verification_email_template
method.
boto3 documentation
# create_custom_verification_email_template method definition
def create_custom_verification_email_template(
self,
*,
TemplateName: str,
FromEmailAddress: str,
TemplateSubject: str,
TemplateContent: str,
SuccessRedirectionURL: str,
FailureRedirectionURL: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# create_custom_verification_email_template method usage example with argument unpacking
kwargs: CreateCustomVerificationEmailTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
"FromEmailAddress": ...,
"TemplateSubject": ...,
"TemplateContent": ...,
"SuccessRedirectionURL": ...,
"FailureRedirectionURL": ...,
}
parent.create_custom_verification_email_template(**kwargs)
create_receipt_filter#
Creates a new IP address filter.
Type annotations and code completion for boto3.client("ses").create_receipt_filter
method.
boto3 documentation
# create_receipt_filter method definition
def create_receipt_filter(
self,
*,
Filter: ReceiptFilterTypeDef, # (1)
) -> dict[str, Any]:
...
# create_receipt_filter method usage example with argument unpacking
kwargs: CreateReceiptFilterRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.create_receipt_filter(**kwargs)
create_receipt_rule#
Creates a receipt rule.
Type annotations and code completion for boto3.client("ses").create_receipt_rule
method.
boto3 documentation
# create_receipt_rule method definition
def create_receipt_rule(
self,
*,
RuleSetName: str,
Rule: ReceiptRuleTypeDef, # (1)
After: str = ...,
) -> dict[str, Any]:
...
# create_receipt_rule method usage example with argument unpacking
kwargs: CreateReceiptRuleRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"Rule": ...,
}
parent.create_receipt_rule(**kwargs)
create_receipt_rule_set#
Creates an empty receipt rule set.
Type annotations and code completion for boto3.client("ses").create_receipt_rule_set
method.
boto3 documentation
# create_receipt_rule_set method definition
def create_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> dict[str, Any]:
...
# create_receipt_rule_set method usage example with argument unpacking
kwargs: CreateReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.create_receipt_rule_set(**kwargs)
create_template#
Creates an email template.
Type annotations and code completion for boto3.client("ses").create_template
method.
boto3 documentation
# create_template method definition
def create_template(
self,
*,
Template: TemplateTypeDef, # (1)
) -> dict[str, Any]:
...
- See TemplateTypeDef
# create_template method usage example with argument unpacking
kwargs: CreateTemplateRequestRequestTypeDef = { # (1)
"Template": ...,
}
parent.create_template(**kwargs)
delete_configuration_set#
Deletes a configuration set.
Type annotations and code completion for boto3.client("ses").delete_configuration_set
method.
boto3 documentation
# delete_configuration_set method definition
def delete_configuration_set(
self,
*,
ConfigurationSetName: str,
) -> dict[str, Any]:
...
# delete_configuration_set method usage example with argument unpacking
kwargs: DeleteConfigurationSetRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
}
parent.delete_configuration_set(**kwargs)
delete_configuration_set_event_destination#
Deletes a configuration set event destination.
Type annotations and code completion for boto3.client("ses").delete_configuration_set_event_destination
method.
boto3 documentation
# delete_configuration_set_event_destination method definition
def delete_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestinationName: str,
) -> dict[str, Any]:
...
# delete_configuration_set_event_destination method usage example with argument unpacking
kwargs: DeleteConfigurationSetEventDestinationRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"EventDestinationName": ...,
}
parent.delete_configuration_set_event_destination(**kwargs)
delete_configuration_set_tracking_options#
Deletes an association between a configuration set and a custom domain for open and click event tracking.
Type annotations and code completion for boto3.client("ses").delete_configuration_set_tracking_options
method.
boto3 documentation
# delete_configuration_set_tracking_options method definition
def delete_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
) -> dict[str, Any]:
...
# delete_configuration_set_tracking_options method usage example with argument unpacking
kwargs: DeleteConfigurationSetTrackingOptionsRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
}
parent.delete_configuration_set_tracking_options(**kwargs)
delete_custom_verification_email_template#
Deletes an existing custom verification email template.
Type annotations and code completion for boto3.client("ses").delete_custom_verification_email_template
method.
boto3 documentation
# delete_custom_verification_email_template method definition
def delete_custom_verification_email_template(
self,
*,
TemplateName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_custom_verification_email_template method usage example with argument unpacking
kwargs: DeleteCustomVerificationEmailTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.delete_custom_verification_email_template(**kwargs)
delete_identity#
Deletes the specified identity (an email address or a domain) from the list of verified identities.
Type annotations and code completion for boto3.client("ses").delete_identity
method.
boto3 documentation
# delete_identity method definition
def delete_identity(
self,
*,
Identity: str,
) -> dict[str, Any]:
...
# delete_identity method usage example with argument unpacking
kwargs: DeleteIdentityRequestRequestTypeDef = { # (1)
"Identity": ...,
}
parent.delete_identity(**kwargs)
delete_identity_policy#
Deletes the specified sending authorization policy for the given identity (an email address or a domain).
Type annotations and code completion for boto3.client("ses").delete_identity_policy
method.
boto3 documentation
# delete_identity_policy method definition
def delete_identity_policy(
self,
*,
Identity: str,
PolicyName: str,
) -> dict[str, Any]:
...
# delete_identity_policy method usage example with argument unpacking
kwargs: DeleteIdentityPolicyRequestRequestTypeDef = { # (1)
"Identity": ...,
"PolicyName": ...,
}
parent.delete_identity_policy(**kwargs)
delete_receipt_filter#
Deletes the specified IP address filter.
Type annotations and code completion for boto3.client("ses").delete_receipt_filter
method.
boto3 documentation
# delete_receipt_filter method definition
def delete_receipt_filter(
self,
*,
FilterName: str,
) -> dict[str, Any]:
...
# delete_receipt_filter method usage example with argument unpacking
kwargs: DeleteReceiptFilterRequestRequestTypeDef = { # (1)
"FilterName": ...,
}
parent.delete_receipt_filter(**kwargs)
delete_receipt_rule#
Deletes the specified receipt rule.
Type annotations and code completion for boto3.client("ses").delete_receipt_rule
method.
boto3 documentation
# delete_receipt_rule method definition
def delete_receipt_rule(
self,
*,
RuleSetName: str,
RuleName: str,
) -> dict[str, Any]:
...
# delete_receipt_rule method usage example with argument unpacking
kwargs: DeleteReceiptRuleRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"RuleName": ...,
}
parent.delete_receipt_rule(**kwargs)
delete_receipt_rule_set#
Deletes the specified receipt rule set and all of the receipt rules it contains.
Type annotations and code completion for boto3.client("ses").delete_receipt_rule_set
method.
boto3 documentation
# delete_receipt_rule_set method definition
def delete_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> dict[str, Any]:
...
# delete_receipt_rule_set method usage example with argument unpacking
kwargs: DeleteReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.delete_receipt_rule_set(**kwargs)
delete_template#
Deletes an email template.
Type annotations and code completion for boto3.client("ses").delete_template
method.
boto3 documentation
# delete_template method definition
def delete_template(
self,
*,
TemplateName: str,
) -> dict[str, Any]:
...
# delete_template method usage example with argument unpacking
kwargs: DeleteTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.delete_template(**kwargs)
delete_verified_email_address#
Deprecated.
Type annotations and code completion for boto3.client("ses").delete_verified_email_address
method.
boto3 documentation
# delete_verified_email_address method definition
def delete_verified_email_address(
self,
*,
EmailAddress: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_verified_email_address method usage example with argument unpacking
kwargs: DeleteVerifiedEmailAddressRequestRequestTypeDef = { # (1)
"EmailAddress": ...,
}
parent.delete_verified_email_address(**kwargs)
describe_active_receipt_rule_set#
Returns the metadata and receipt rules for the receipt rule set that is currently active.
Type annotations and code completion for boto3.client("ses").describe_active_receipt_rule_set
method.
boto3 documentation
# describe_active_receipt_rule_set method definition
def describe_active_receipt_rule_set(
self,
) -> DescribeActiveReceiptRuleSetResponseTypeDef: # (1)
...
describe_configuration_set#
Returns the details of the specified configuration set.
Type annotations and code completion for boto3.client("ses").describe_configuration_set
method.
boto3 documentation
# describe_configuration_set method definition
def describe_configuration_set(
self,
*,
ConfigurationSetName: str,
ConfigurationSetAttributeNames: Sequence[ConfigurationSetAttributeType] = ..., # (1)
) -> DescribeConfigurationSetResponseTypeDef: # (2)
...
# describe_configuration_set method usage example with argument unpacking
kwargs: DescribeConfigurationSetRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
}
parent.describe_configuration_set(**kwargs)
describe_receipt_rule#
Returns the details of the specified receipt rule.
Type annotations and code completion for boto3.client("ses").describe_receipt_rule
method.
boto3 documentation
# describe_receipt_rule method definition
def describe_receipt_rule(
self,
*,
RuleSetName: str,
RuleName: str,
) -> DescribeReceiptRuleResponseTypeDef: # (1)
...
# describe_receipt_rule method usage example with argument unpacking
kwargs: DescribeReceiptRuleRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"RuleName": ...,
}
parent.describe_receipt_rule(**kwargs)
describe_receipt_rule_set#
Returns the details of the specified receipt rule set.
Type annotations and code completion for boto3.client("ses").describe_receipt_rule_set
method.
boto3 documentation
# describe_receipt_rule_set method definition
def describe_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> DescribeReceiptRuleSetResponseTypeDef: # (1)
...
# describe_receipt_rule_set method usage example with argument unpacking
kwargs: DescribeReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.describe_receipt_rule_set(**kwargs)
get_account_sending_enabled#
Returns the email sending status of the Amazon SES account for the current Region.
Type annotations and code completion for boto3.client("ses").get_account_sending_enabled
method.
boto3 documentation
# get_account_sending_enabled method definition
def get_account_sending_enabled(
self,
) -> GetAccountSendingEnabledResponseTypeDef: # (1)
...
get_custom_verification_email_template#
Returns the custom email verification template for the template name you specify.
Type annotations and code completion for boto3.client("ses").get_custom_verification_email_template
method.
boto3 documentation
# get_custom_verification_email_template method definition
def get_custom_verification_email_template(
self,
*,
TemplateName: str,
) -> GetCustomVerificationEmailTemplateResponseTypeDef: # (1)
...
# get_custom_verification_email_template method usage example with argument unpacking
kwargs: GetCustomVerificationEmailTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.get_custom_verification_email_template(**kwargs)
get_identity_dkim_attributes#
Returns the current status of Easy DKIM signing for an entity.
Type annotations and code completion for boto3.client("ses").get_identity_dkim_attributes
method.
boto3 documentation
# get_identity_dkim_attributes method definition
def get_identity_dkim_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityDkimAttributesResponseTypeDef: # (1)
...
# get_identity_dkim_attributes method usage example with argument unpacking
kwargs: GetIdentityDkimAttributesRequestRequestTypeDef = { # (1)
"Identities": ...,
}
parent.get_identity_dkim_attributes(**kwargs)
get_identity_mail_from_domain_attributes#
Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains).
Type annotations and code completion for boto3.client("ses").get_identity_mail_from_domain_attributes
method.
boto3 documentation
# get_identity_mail_from_domain_attributes method definition
def get_identity_mail_from_domain_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityMailFromDomainAttributesResponseTypeDef: # (1)
...
# get_identity_mail_from_domain_attributes method usage example with argument unpacking
kwargs: GetIdentityMailFromDomainAttributesRequestRequestTypeDef = { # (1)
"Identities": ...,
}
parent.get_identity_mail_from_domain_attributes(**kwargs)
get_identity_notification_attributes#
Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.
Type annotations and code completion for boto3.client("ses").get_identity_notification_attributes
method.
boto3 documentation
# get_identity_notification_attributes method definition
def get_identity_notification_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityNotificationAttributesResponseTypeDef: # (1)
...
# get_identity_notification_attributes method usage example with argument unpacking
kwargs: GetIdentityNotificationAttributesRequestRequestTypeDef = { # (1)
"Identities": ...,
}
parent.get_identity_notification_attributes(**kwargs)
get_identity_policies#
Returns the requested sending authorization policies for the given identity (an email address or a domain).
Type annotations and code completion for boto3.client("ses").get_identity_policies
method.
boto3 documentation
# get_identity_policies method definition
def get_identity_policies(
self,
*,
Identity: str,
PolicyNames: Sequence[str],
) -> GetIdentityPoliciesResponseTypeDef: # (1)
...
# get_identity_policies method usage example with argument unpacking
kwargs: GetIdentityPoliciesRequestRequestTypeDef = { # (1)
"Identity": ...,
"PolicyNames": ...,
}
parent.get_identity_policies(**kwargs)
get_identity_verification_attributes#
Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.
Type annotations and code completion for boto3.client("ses").get_identity_verification_attributes
method.
boto3 documentation
# get_identity_verification_attributes method definition
def get_identity_verification_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityVerificationAttributesResponseTypeDef: # (1)
...
# get_identity_verification_attributes method usage example with argument unpacking
kwargs: GetIdentityVerificationAttributesRequestRequestTypeDef = { # (1)
"Identities": ...,
}
parent.get_identity_verification_attributes(**kwargs)
get_send_quota#
Provides the sending limits for the Amazon SES account.
Type annotations and code completion for boto3.client("ses").get_send_quota
method.
boto3 documentation
# get_send_quota method definition
def get_send_quota(
self,
) -> GetSendQuotaResponseTypeDef: # (1)
...
get_send_statistics#
Provides sending statistics for the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").get_send_statistics
method.
boto3 documentation
# get_send_statistics method definition
def get_send_statistics(
self,
) -> GetSendStatisticsResponseTypeDef: # (1)
...
get_template#
Displays the template object (which includes the Subject line, HTML part and text part) for the template you specify.
Type annotations and code completion for boto3.client("ses").get_template
method.
boto3 documentation
# get_template method definition
def get_template(
self,
*,
TemplateName: str,
) -> GetTemplateResponseTypeDef: # (1)
...
# get_template method usage example with argument unpacking
kwargs: GetTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.get_template(**kwargs)
list_configuration_sets#
Provides a list of the configuration sets associated with your Amazon SES account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").list_configuration_sets
method.
boto3 documentation
# list_configuration_sets method definition
def list_configuration_sets(
self,
*,
NextToken: str = ...,
MaxItems: int = ...,
) -> ListConfigurationSetsResponseTypeDef: # (1)
...
# list_configuration_sets method usage example with argument unpacking
kwargs: ListConfigurationSetsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_configuration_sets(**kwargs)
list_custom_verification_email_templates#
Lists the existing custom verification email templates for your account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").list_custom_verification_email_templates
method.
boto3 documentation
# list_custom_verification_email_templates method definition
def list_custom_verification_email_templates(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListCustomVerificationEmailTemplatesResponseTypeDef: # (1)
...
# list_custom_verification_email_templates method usage example with argument unpacking
kwargs: ListCustomVerificationEmailTemplatesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_custom_verification_email_templates(**kwargs)
list_identities#
Returns a list containing all of the identities (email addresses and domains) for your Amazon Web Services account in the current Amazon Web Services Region, regardless of verification status.
Type annotations and code completion for boto3.client("ses").list_identities
method.
boto3 documentation
# list_identities method definition
def list_identities(
self,
*,
IdentityType: IdentityTypeType = ..., # (1)
NextToken: str = ...,
MaxItems: int = ...,
) -> ListIdentitiesResponseTypeDef: # (2)
...
# list_identities method usage example with argument unpacking
kwargs: ListIdentitiesRequestRequestTypeDef = { # (1)
"IdentityType": ...,
}
parent.list_identities(**kwargs)
list_identity_policies#
Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain).
Type annotations and code completion for boto3.client("ses").list_identity_policies
method.
boto3 documentation
# list_identity_policies method definition
def list_identity_policies(
self,
*,
Identity: str,
) -> ListIdentityPoliciesResponseTypeDef: # (1)
...
# list_identity_policies method usage example with argument unpacking
kwargs: ListIdentityPoliciesRequestRequestTypeDef = { # (1)
"Identity": ...,
}
parent.list_identity_policies(**kwargs)
list_receipt_filters#
Lists the IP address filters associated with your Amazon Web Services account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").list_receipt_filters
method.
boto3 documentation
# list_receipt_filters method definition
def list_receipt_filters(
self,
) -> ListReceiptFiltersResponseTypeDef: # (1)
...
list_receipt_rule_sets#
Lists the receipt rule sets that exist under your Amazon Web Services account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").list_receipt_rule_sets
method.
boto3 documentation
# list_receipt_rule_sets method definition
def list_receipt_rule_sets(
self,
*,
NextToken: str = ...,
) -> ListReceiptRuleSetsResponseTypeDef: # (1)
...
# list_receipt_rule_sets method usage example with argument unpacking
kwargs: ListReceiptRuleSetsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_receipt_rule_sets(**kwargs)
list_templates#
Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").list_templates
method.
boto3 documentation
# list_templates method definition
def list_templates(
self,
*,
NextToken: str = ...,
MaxItems: int = ...,
) -> ListTemplatesResponseTypeDef: # (1)
...
# list_templates method usage example with argument unpacking
kwargs: ListTemplatesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_templates(**kwargs)
list_verified_email_addresses#
Deprecated.
Type annotations and code completion for boto3.client("ses").list_verified_email_addresses
method.
boto3 documentation
# list_verified_email_addresses method definition
def list_verified_email_addresses(
self,
) -> ListVerifiedEmailAddressesResponseTypeDef: # (1)
...
put_configuration_set_delivery_options#
Adds or updates the delivery options for a configuration set.
Type annotations and code completion for boto3.client("ses").put_configuration_set_delivery_options
method.
boto3 documentation
# put_configuration_set_delivery_options method definition
def put_configuration_set_delivery_options(
self,
*,
ConfigurationSetName: str,
DeliveryOptions: DeliveryOptionsTypeDef = ..., # (1)
) -> dict[str, Any]:
...
# put_configuration_set_delivery_options method usage example with argument unpacking
kwargs: PutConfigurationSetDeliveryOptionsRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
}
parent.put_configuration_set_delivery_options(**kwargs)
put_identity_policy#
Adds or updates a sending authorization policy for the specified identity (an email address or a domain).
Type annotations and code completion for boto3.client("ses").put_identity_policy
method.
boto3 documentation
# put_identity_policy method definition
def put_identity_policy(
self,
*,
Identity: str,
PolicyName: str,
Policy: str,
) -> dict[str, Any]:
...
# put_identity_policy method usage example with argument unpacking
kwargs: PutIdentityPolicyRequestRequestTypeDef = { # (1)
"Identity": ...,
"PolicyName": ...,
"Policy": ...,
}
parent.put_identity_policy(**kwargs)
reorder_receipt_rule_set#
Reorders the receipt rules within a receipt rule set.
Type annotations and code completion for boto3.client("ses").reorder_receipt_rule_set
method.
boto3 documentation
# reorder_receipt_rule_set method definition
def reorder_receipt_rule_set(
self,
*,
RuleSetName: str,
RuleNames: Sequence[str],
) -> dict[str, Any]:
...
# reorder_receipt_rule_set method usage example with argument unpacking
kwargs: ReorderReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"RuleNames": ...,
}
parent.reorder_receipt_rule_set(**kwargs)
send_bounce#
Generates and sends a bounce message to the sender of an email you received through Amazon SES.
Type annotations and code completion for boto3.client("ses").send_bounce
method.
boto3 documentation
# send_bounce method definition
def send_bounce(
self,
*,
OriginalMessageId: str,
BounceSender: str,
BouncedRecipientInfoList: Sequence[BouncedRecipientInfoTypeDef], # (1)
Explanation: str = ...,
MessageDsn: MessageDsnTypeDef = ..., # (2)
BounceSenderArn: str = ...,
) -> SendBounceResponseTypeDef: # (3)
...
# send_bounce method usage example with argument unpacking
kwargs: SendBounceRequestRequestTypeDef = { # (1)
"OriginalMessageId": ...,
"BounceSender": ...,
"BouncedRecipientInfoList": ...,
}
parent.send_bounce(**kwargs)
send_bulk_templated_email#
Composes an email message to multiple destinations.
Type annotations and code completion for boto3.client("ses").send_bulk_templated_email
method.
boto3 documentation
# send_bulk_templated_email method definition
def send_bulk_templated_email(
self,
*,
Source: str,
Template: str,
DefaultTemplateData: str,
Destinations: Sequence[BulkEmailDestinationTypeDef], # (1)
SourceArn: str = ...,
ReplyToAddresses: Sequence[str] = ...,
ReturnPath: str = ...,
ReturnPathArn: str = ...,
ConfigurationSetName: str = ...,
DefaultTags: Sequence[MessageTagTypeDef] = ..., # (2)
TemplateArn: str = ...,
) -> SendBulkTemplatedEmailResponseTypeDef: # (3)
...
# send_bulk_templated_email method usage example with argument unpacking
kwargs: SendBulkTemplatedEmailRequestRequestTypeDef = { # (1)
"Source": ...,
"Template": ...,
"DefaultTemplateData": ...,
"Destinations": ...,
}
parent.send_bulk_templated_email(**kwargs)
send_custom_verification_email#
Adds an email address to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it.
Type annotations and code completion for boto3.client("ses").send_custom_verification_email
method.
boto3 documentation
# send_custom_verification_email method definition
def send_custom_verification_email(
self,
*,
EmailAddress: str,
TemplateName: str,
ConfigurationSetName: str = ...,
) -> SendCustomVerificationEmailResponseTypeDef: # (1)
...
# send_custom_verification_email method usage example with argument unpacking
kwargs: SendCustomVerificationEmailRequestRequestTypeDef = { # (1)
"EmailAddress": ...,
"TemplateName": ...,
}
parent.send_custom_verification_email(**kwargs)
send_email#
Composes an email message and immediately queues it for sending.
Type annotations and code completion for boto3.client("ses").send_email
method.
boto3 documentation
# send_email method definition
def send_email(
self,
*,
Source: str,
Destination: DestinationTypeDef, # (1)
Message: MessageTypeDef, # (2)
ReplyToAddresses: Sequence[str] = ...,
ReturnPath: str = ...,
SourceArn: str = ...,
ReturnPathArn: str = ...,
Tags: Sequence[MessageTagTypeDef] = ..., # (3)
ConfigurationSetName: str = ...,
) -> SendEmailResponseTypeDef: # (4)
...
- See DestinationTypeDef
- See MessageTypeDef
- See MessageTagTypeDef
- See SendEmailResponseTypeDef
# send_email method usage example with argument unpacking
kwargs: SendEmailRequestRequestTypeDef = { # (1)
"Source": ...,
"Destination": ...,
"Message": ...,
}
parent.send_email(**kwargs)
send_raw_email#
Composes an email message and immediately queues it for sending.
Type annotations and code completion for boto3.client("ses").send_raw_email
method.
boto3 documentation
# send_raw_email method definition
def send_raw_email(
self,
*,
RawMessage: RawMessageTypeDef, # (1)
Source: str = ...,
Destinations: Sequence[str] = ...,
FromArn: str = ...,
SourceArn: str = ...,
ReturnPathArn: str = ...,
Tags: Sequence[MessageTagTypeDef] = ..., # (2)
ConfigurationSetName: str = ...,
) -> SendRawEmailResponseTypeDef: # (3)
...
# send_raw_email method usage example with argument unpacking
kwargs: SendRawEmailRequestRequestTypeDef = { # (1)
"RawMessage": ...,
}
parent.send_raw_email(**kwargs)
send_templated_email#
Composes an email message using an email template and immediately queues it for sending.
Type annotations and code completion for boto3.client("ses").send_templated_email
method.
boto3 documentation
# send_templated_email method definition
def send_templated_email(
self,
*,
Source: str,
Destination: DestinationTypeDef, # (1)
Template: str,
TemplateData: str,
ReplyToAddresses: Sequence[str] = ...,
ReturnPath: str = ...,
SourceArn: str = ...,
ReturnPathArn: str = ...,
Tags: Sequence[MessageTagTypeDef] = ..., # (2)
ConfigurationSetName: str = ...,
TemplateArn: str = ...,
) -> SendTemplatedEmailResponseTypeDef: # (3)
...
# send_templated_email method usage example with argument unpacking
kwargs: SendTemplatedEmailRequestRequestTypeDef = { # (1)
"Source": ...,
"Destination": ...,
"Template": ...,
"TemplateData": ...,
}
parent.send_templated_email(**kwargs)
set_active_receipt_rule_set#
Sets the specified receipt rule set as the active receipt rule set.
Type annotations and code completion for boto3.client("ses").set_active_receipt_rule_set
method.
boto3 documentation
# set_active_receipt_rule_set method definition
def set_active_receipt_rule_set(
self,
*,
RuleSetName: str = ...,
) -> dict[str, Any]:
...
# set_active_receipt_rule_set method usage example with argument unpacking
kwargs: SetActiveReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.set_active_receipt_rule_set(**kwargs)
set_identity_dkim_enabled#
Enables or disables Easy DKIM signing of email sent from an identity.
Type annotations and code completion for boto3.client("ses").set_identity_dkim_enabled
method.
boto3 documentation
# set_identity_dkim_enabled method definition
def set_identity_dkim_enabled(
self,
*,
Identity: str,
DkimEnabled: bool,
) -> dict[str, Any]:
...
# set_identity_dkim_enabled method usage example with argument unpacking
kwargs: SetIdentityDkimEnabledRequestRequestTypeDef = { # (1)
"Identity": ...,
"DkimEnabled": ...,
}
parent.set_identity_dkim_enabled(**kwargs)
set_identity_feedback_forwarding_enabled#
Given an identity (an email address or a domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email.
Type annotations and code completion for boto3.client("ses").set_identity_feedback_forwarding_enabled
method.
boto3 documentation
# set_identity_feedback_forwarding_enabled method definition
def set_identity_feedback_forwarding_enabled(
self,
*,
Identity: str,
ForwardingEnabled: bool,
) -> dict[str, Any]:
...
# set_identity_feedback_forwarding_enabled method usage example with argument unpacking
kwargs: SetIdentityFeedbackForwardingEnabledRequestRequestTypeDef = { # (1)
"Identity": ...,
"ForwardingEnabled": ...,
}
parent.set_identity_feedback_forwarding_enabled(**kwargs)
set_identity_headers_in_notifications_enabled#
Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.
Type annotations and code completion for boto3.client("ses").set_identity_headers_in_notifications_enabled
method.
boto3 documentation
# set_identity_headers_in_notifications_enabled method definition
def set_identity_headers_in_notifications_enabled(
self,
*,
Identity: str,
NotificationType: NotificationTypeType, # (1)
Enabled: bool,
) -> dict[str, Any]:
...
# set_identity_headers_in_notifications_enabled method usage example with argument unpacking
kwargs: SetIdentityHeadersInNotificationsEnabledRequestRequestTypeDef = { # (1)
"Identity": ...,
"NotificationType": ...,
"Enabled": ...,
}
parent.set_identity_headers_in_notifications_enabled(**kwargs)
set_identity_mail_from_domain#
Enables or disables the custom MAIL FROM domain setup for a verified identity (an email address or a domain).
Type annotations and code completion for boto3.client("ses").set_identity_mail_from_domain
method.
boto3 documentation
# set_identity_mail_from_domain method definition
def set_identity_mail_from_domain(
self,
*,
Identity: str,
MailFromDomain: str = ...,
BehaviorOnMXFailure: BehaviorOnMXFailureType = ..., # (1)
) -> dict[str, Any]:
...
# set_identity_mail_from_domain method usage example with argument unpacking
kwargs: SetIdentityMailFromDomainRequestRequestTypeDef = { # (1)
"Identity": ...,
}
parent.set_identity_mail_from_domain(**kwargs)
set_identity_notification_topic#
Sets an Amazon Simple Notification Service (Amazon SNS) topic to use when delivering notifications.
Type annotations and code completion for boto3.client("ses").set_identity_notification_topic
method.
boto3 documentation
# set_identity_notification_topic method definition
def set_identity_notification_topic(
self,
*,
Identity: str,
NotificationType: NotificationTypeType, # (1)
SnsTopic: str = ...,
) -> dict[str, Any]:
...
# set_identity_notification_topic method usage example with argument unpacking
kwargs: SetIdentityNotificationTopicRequestRequestTypeDef = { # (1)
"Identity": ...,
"NotificationType": ...,
}
parent.set_identity_notification_topic(**kwargs)
set_receipt_rule_position#
Sets the position of the specified receipt rule in the receipt rule set.
Type annotations and code completion for boto3.client("ses").set_receipt_rule_position
method.
boto3 documentation
# set_receipt_rule_position method definition
def set_receipt_rule_position(
self,
*,
RuleSetName: str,
RuleName: str,
After: str = ...,
) -> dict[str, Any]:
...
# set_receipt_rule_position method usage example with argument unpacking
kwargs: SetReceiptRulePositionRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"RuleName": ...,
}
parent.set_receipt_rule_position(**kwargs)
test_render_template#
Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.
Type annotations and code completion for boto3.client("ses").test_render_template
method.
boto3 documentation
# test_render_template method definition
def test_render_template(
self,
*,
TemplateName: str,
TemplateData: str,
) -> TestRenderTemplateResponseTypeDef: # (1)
...
# test_render_template method usage example with argument unpacking
kwargs: TestRenderTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
"TemplateData": ...,
}
parent.test_render_template(**kwargs)
update_account_sending_enabled#
Enables or disables email sending across your entire Amazon SES account in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").update_account_sending_enabled
method.
boto3 documentation
# update_account_sending_enabled method definition
def update_account_sending_enabled(
self,
*,
Enabled: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# update_account_sending_enabled method usage example with argument unpacking
kwargs: UpdateAccountSendingEnabledRequestRequestTypeDef = { # (1)
"Enabled": ...,
}
parent.update_account_sending_enabled(**kwargs)
update_configuration_set_event_destination#
Updates the event destination of a configuration set.
Type annotations and code completion for boto3.client("ses").update_configuration_set_event_destination
method.
boto3 documentation
# update_configuration_set_event_destination method definition
def update_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestination: EventDestinationTypeDef, # (1)
) -> dict[str, Any]:
...
# update_configuration_set_event_destination method usage example with argument unpacking
kwargs: UpdateConfigurationSetEventDestinationRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"EventDestination": ...,
}
parent.update_configuration_set_event_destination(**kwargs)
update_configuration_set_reputation_metrics_enabled#
Enables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").update_configuration_set_reputation_metrics_enabled
method.
boto3 documentation
# update_configuration_set_reputation_metrics_enabled method definition
def update_configuration_set_reputation_metrics_enabled(
self,
*,
ConfigurationSetName: str,
Enabled: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# update_configuration_set_reputation_metrics_enabled method usage example with argument unpacking
kwargs: UpdateConfigurationSetReputationMetricsEnabledRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"Enabled": ...,
}
parent.update_configuration_set_reputation_metrics_enabled(**kwargs)
update_configuration_set_sending_enabled#
Enables or disables email sending for messages sent using a specific configuration set in a given Amazon Web Services Region.
Type annotations and code completion for boto3.client("ses").update_configuration_set_sending_enabled
method.
boto3 documentation
# update_configuration_set_sending_enabled method definition
def update_configuration_set_sending_enabled(
self,
*,
ConfigurationSetName: str,
Enabled: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# update_configuration_set_sending_enabled method usage example with argument unpacking
kwargs: UpdateConfigurationSetSendingEnabledRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"Enabled": ...,
}
parent.update_configuration_set_sending_enabled(**kwargs)
update_configuration_set_tracking_options#
Modifies an association between a configuration set and a custom domain for open and click event tracking.
Type annotations and code completion for boto3.client("ses").update_configuration_set_tracking_options
method.
boto3 documentation
# update_configuration_set_tracking_options method definition
def update_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
TrackingOptions: TrackingOptionsTypeDef, # (1)
) -> dict[str, Any]:
...
# update_configuration_set_tracking_options method usage example with argument unpacking
kwargs: UpdateConfigurationSetTrackingOptionsRequestRequestTypeDef = { # (1)
"ConfigurationSetName": ...,
"TrackingOptions": ...,
}
parent.update_configuration_set_tracking_options(**kwargs)
update_custom_verification_email_template#
Updates an existing custom verification email template.
Type annotations and code completion for boto3.client("ses").update_custom_verification_email_template
method.
boto3 documentation
# update_custom_verification_email_template method definition
def update_custom_verification_email_template(
self,
*,
TemplateName: str,
FromEmailAddress: str = ...,
TemplateSubject: str = ...,
TemplateContent: str = ...,
SuccessRedirectionURL: str = ...,
FailureRedirectionURL: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# update_custom_verification_email_template method usage example with argument unpacking
kwargs: UpdateCustomVerificationEmailTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.update_custom_verification_email_template(**kwargs)
update_receipt_rule#
Updates a receipt rule.
Type annotations and code completion for boto3.client("ses").update_receipt_rule
method.
boto3 documentation
# update_receipt_rule method definition
def update_receipt_rule(
self,
*,
RuleSetName: str,
Rule: ReceiptRuleTypeDef, # (1)
) -> dict[str, Any]:
...
# update_receipt_rule method usage example with argument unpacking
kwargs: UpdateReceiptRuleRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"Rule": ...,
}
parent.update_receipt_rule(**kwargs)
update_template#
Updates an email template.
Type annotations and code completion for boto3.client("ses").update_template
method.
boto3 documentation
# update_template method definition
def update_template(
self,
*,
Template: TemplateTypeDef, # (1)
) -> dict[str, Any]:
...
- See TemplateTypeDef
# update_template method usage example with argument unpacking
kwargs: UpdateTemplateRequestRequestTypeDef = { # (1)
"Template": ...,
}
parent.update_template(**kwargs)
verify_domain_dkim#
Returns a set of DKIM tokens for a domain identity.
Type annotations and code completion for boto3.client("ses").verify_domain_dkim
method.
boto3 documentation
# verify_domain_dkim method definition
def verify_domain_dkim(
self,
*,
Domain: str,
) -> VerifyDomainDkimResponseTypeDef: # (1)
...
# verify_domain_dkim method usage example with argument unpacking
kwargs: VerifyDomainDkimRequestRequestTypeDef = { # (1)
"Domain": ...,
}
parent.verify_domain_dkim(**kwargs)
verify_domain_identity#
Adds a domain to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it.
Type annotations and code completion for boto3.client("ses").verify_domain_identity
method.
boto3 documentation
# verify_domain_identity method definition
def verify_domain_identity(
self,
*,
Domain: str,
) -> VerifyDomainIdentityResponseTypeDef: # (1)
...
# verify_domain_identity method usage example with argument unpacking
kwargs: VerifyDomainIdentityRequestRequestTypeDef = { # (1)
"Domain": ...,
}
parent.verify_domain_identity(**kwargs)
verify_email_address#
Deprecated.
Type annotations and code completion for boto3.client("ses").verify_email_address
method.
boto3 documentation
# verify_email_address method definition
def verify_email_address(
self,
*,
EmailAddress: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# verify_email_address method usage example with argument unpacking
kwargs: VerifyEmailAddressRequestRequestTypeDef = { # (1)
"EmailAddress": ...,
}
parent.verify_email_address(**kwargs)
verify_email_identity#
Adds an email address to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it.
Type annotations and code completion for boto3.client("ses").verify_email_identity
method.
boto3 documentation
# verify_email_identity method definition
def verify_email_identity(
self,
*,
EmailAddress: str,
) -> dict[str, Any]:
...
# verify_email_identity method usage example with argument unpacking
kwargs: VerifyEmailIdentityRequestRequestTypeDef = { # (1)
"EmailAddress": ...,
}
parent.verify_email_identity(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("ses").get_paginator
method with overloads.
client.get_paginator("list_configuration_sets")
-> ListConfigurationSetsPaginatorclient.get_paginator("list_custom_verification_email_templates")
-> ListCustomVerificationEmailTemplatesPaginatorclient.get_paginator("list_identities")
-> ListIdentitiesPaginatorclient.get_paginator("list_receipt_rule_sets")
-> ListReceiptRuleSetsPaginatorclient.get_paginator("list_templates")
-> ListTemplatesPaginator
get_waiter#
Type annotations and code completion for boto3.client("ses").get_waiter
method with overloads.
client.get_waiter("identity_exists")
-> IdentityExistsWaiter