SESClient
Auto-generated documentation for SES type annotations stubs module types-aiobotocore-ses.
SESClient
Type annotations and code completion for session.client("ses")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_ses.client import SESClient
session = Session()
async with session.client("ses") as client:
client: SESClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("ses").exceptions
structure.
async with session.client("ses") as client:
try:
do_something(client)
except (
client.AccountSendingPausedException,
client.AlreadyExistsException,
client.CannotDeleteException,
client.ClientError,
client.ConfigurationSetAlreadyExistsException,
client.ConfigurationSetDoesNotExistException,
client.ConfigurationSetSendingPausedException,
client.CustomVerificationEmailInvalidContentException,
client.CustomVerificationEmailTemplateAlreadyExistsException,
client.CustomVerificationEmailTemplateDoesNotExistException,
client.EventDestinationAlreadyExistsException,
client.EventDestinationDoesNotExistException,
client.FromEmailAddressNotVerifiedException,
client.InvalidCloudWatchDestinationException,
client.InvalidConfigurationSetException,
client.InvalidDeliveryOptionsException,
client.InvalidFirehoseDestinationException,
client.InvalidLambdaFunctionException,
client.InvalidPolicyException,
client.InvalidRenderingParameterException,
client.InvalidS3ConfigurationException,
client.InvalidSNSDestinationException,
client.InvalidSnsTopicException,
client.InvalidTemplateException,
client.InvalidTrackingOptionsException,
client.LimitExceededException,
client.MailFromDomainNotVerifiedException,
client.MessageRejected,
client.MissingRenderingAttributeException,
client.ProductionAccessNotGrantedException,
client.RuleDoesNotExistException,
client.RuleSetDoesNotExistException,
client.TemplateDoesNotExistException,
client.TrackingOptionsAlreadyExistsException,
client.TrackingOptionsDoesNotExistException,
) as e:
print(e)
from types_aiobotocore_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 session.client("ses").can_paginate
method.
boto3 documentation
clone_receipt_rule_set
Creates a receipt rule set by cloning an existing one.
Type annotations and code completion for session.client("ses").clone_receipt_rule_set
method.
boto3 documentation
await def clone_receipt_rule_set(
self,
*,
RuleSetName: str,
OriginalRuleSetName: str,
) -> Dict[str, Any]:
...
kwargs: CloneReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"OriginalRuleSetName": ...,
}
parent.clone_receipt_rule_set(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("ses").close
method.
boto3 documentation
create_configuration_set
Creates a configuration set.
Type annotations and code completion for session.client("ses").create_configuration_set
method.
boto3 documentation
await def create_configuration_set(
self,
*,
ConfigurationSet: ConfigurationSetTypeDef, # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").create_configuration_set_event_destination
method.
boto3 documentation
await def create_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestination: EventDestinationTypeDef, # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").create_configuration_set_tracking_options
method.
boto3 documentation
await def create_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
TrackingOptions: TrackingOptionsTypeDef, # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").create_custom_verification_email_template
method.
boto3 documentation
await def create_custom_verification_email_template(
self,
*,
TemplateName: str,
FromEmailAddress: str,
TemplateSubject: str,
TemplateContent: str,
SuccessRedirectionURL: str,
FailureRedirectionURL: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 session.client("ses").create_receipt_filter
method.
boto3 documentation
await def create_receipt_filter(
self,
*,
Filter: ReceiptFilterTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: CreateReceiptFilterRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.create_receipt_filter(**kwargs)
create_receipt_rule
Creates a receipt rule.
Type annotations and code completion for session.client("ses").create_receipt_rule
method.
boto3 documentation
await def create_receipt_rule(
self,
*,
RuleSetName: str,
Rule: ReceiptRuleTypeDef, # (1)
After: str = ...,
) -> Dict[str, Any]:
...
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 session.client("ses").create_receipt_rule_set
method.
boto3 documentation
await def create_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> Dict[str, Any]:
...
kwargs: CreateReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.create_receipt_rule_set(**kwargs)
create_template
Creates an email template.
Type annotations and code completion for session.client("ses").create_template
method.
boto3 documentation
await def create_template(
self,
*,
Template: TemplateTypeDef, # (1)
) -> Dict[str, Any]:
...
- See TemplateTypeDef
kwargs: CreateTemplateRequestRequestTypeDef = { # (1)
"Template": ...,
}
parent.create_template(**kwargs)
delete_configuration_set
Deletes a configuration set.
Type annotations and code completion for session.client("ses").delete_configuration_set
method.
boto3 documentation
await def delete_configuration_set(
self,
*,
ConfigurationSetName: str,
) -> Dict[str, Any]:
...
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 session.client("ses").delete_configuration_set_event_destination
method.
boto3 documentation
await def delete_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestinationName: str,
) -> Dict[str, Any]:
...
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 session.client("ses").delete_configuration_set_tracking_options
method.
boto3 documentation
await def delete_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
) -> Dict[str, Any]:
...
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 session.client("ses").delete_custom_verification_email_template
method.
boto3 documentation
await def delete_custom_verification_email_template(
self,
*,
TemplateName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 session.client("ses").delete_identity
method.
boto3 documentation
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 session.client("ses").delete_identity_policy
method.
boto3 documentation
await def delete_identity_policy(
self,
*,
Identity: str,
PolicyName: str,
) -> Dict[str, Any]:
...
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 session.client("ses").delete_receipt_filter
method.
boto3 documentation
await def delete_receipt_filter(
self,
*,
FilterName: str,
) -> Dict[str, Any]:
...
kwargs: DeleteReceiptFilterRequestRequestTypeDef = { # (1)
"FilterName": ...,
}
parent.delete_receipt_filter(**kwargs)
delete_receipt_rule
Deletes the specified receipt rule.
Type annotations and code completion for session.client("ses").delete_receipt_rule
method.
boto3 documentation
await def delete_receipt_rule(
self,
*,
RuleSetName: str,
RuleName: str,
) -> Dict[str, Any]:
...
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 session.client("ses").delete_receipt_rule_set
method.
boto3 documentation
await def delete_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> Dict[str, Any]:
...
kwargs: DeleteReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.delete_receipt_rule_set(**kwargs)
delete_template
Deletes an email template.
Type annotations and code completion for session.client("ses").delete_template
method.
boto3 documentation
kwargs: DeleteTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.delete_template(**kwargs)
delete_verified_email_address
Deprecated.
Type annotations and code completion for session.client("ses").delete_verified_email_address
method.
boto3 documentation
await def delete_verified_email_address(
self,
*,
EmailAddress: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 session.client("ses").describe_active_receipt_rule_set
method.
boto3 documentation
await 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 session.client("ses").describe_configuration_set
method.
boto3 documentation
await def describe_configuration_set(
self,
*,
ConfigurationSetName: str,
ConfigurationSetAttributeNames: Sequence[ConfigurationSetAttributeType] = ..., # (1)
) -> DescribeConfigurationSetResponseTypeDef: # (2)
...
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 session.client("ses").describe_receipt_rule
method.
boto3 documentation
await def describe_receipt_rule(
self,
*,
RuleSetName: str,
RuleName: str,
) -> DescribeReceiptRuleResponseTypeDef: # (1)
...
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 session.client("ses").describe_receipt_rule_set
method.
boto3 documentation
await def describe_receipt_rule_set(
self,
*,
RuleSetName: str,
) -> DescribeReceiptRuleSetResponseTypeDef: # (1)
...
kwargs: DescribeReceiptRuleSetRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
}
parent.describe_receipt_rule_set(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("ses").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_account_sending_enabled
Returns the email sending status of the Amazon SES account for the current region.
Type annotations and code completion for session.client("ses").get_account_sending_enabled
method.
boto3 documentation
await 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 session.client("ses").get_custom_verification_email_template
method.
boto3 documentation
await def get_custom_verification_email_template(
self,
*,
TemplateName: str,
) -> GetCustomVerificationEmailTemplateResponseTypeDef: # (1)
...
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 session.client("ses").get_identity_dkim_attributes
method.
boto3 documentation
await def get_identity_dkim_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityDkimAttributesResponseTypeDef: # (1)
...
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 session.client("ses").get_identity_mail_from_domain_attributes
method.
boto3 documentation
await def get_identity_mail_from_domain_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityMailFromDomainAttributesResponseTypeDef: # (1)
...
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 session.client("ses").get_identity_notification_attributes
method.
boto3 documentation
await def get_identity_notification_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityNotificationAttributesResponseTypeDef: # (1)
...
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 session.client("ses").get_identity_policies
method.
boto3 documentation
await def get_identity_policies(
self,
*,
Identity: str,
PolicyNames: Sequence[str],
) -> GetIdentityPoliciesResponseTypeDef: # (1)
...
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 session.client("ses").get_identity_verification_attributes
method.
boto3 documentation
await def get_identity_verification_attributes(
self,
*,
Identities: Sequence[str],
) -> GetIdentityVerificationAttributesResponseTypeDef: # (1)
...
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 session.client("ses").get_send_quota
method.
boto3 documentation
get_send_statistics
Provides sending statistics for the current AWS Region.
Type annotations and code completion for session.client("ses").get_send_statistics
method.
boto3 documentation
await 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 session.client("ses").get_template
method.
boto3 documentation
await def get_template(
self,
*,
TemplateName: str,
) -> GetTemplateResponseTypeDef: # (1)
...
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 AWS Region.
Type annotations and code completion for session.client("ses").list_configuration_sets
method.
boto3 documentation
await def list_configuration_sets(
self,
*,
NextToken: str = ...,
MaxItems: int = ...,
) -> ListConfigurationSetsResponseTypeDef: # (1)
...
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 AWS Region.
Type annotations and code completion for session.client("ses").list_custom_verification_email_templates
method.
boto3 documentation
await def list_custom_verification_email_templates(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListCustomVerificationEmailTemplatesResponseTypeDef: # (1)
...
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 AWS account in the current AWS Region, regardless of verification status.
Type annotations and code completion for session.client("ses").list_identities
method.
boto3 documentation
await def list_identities(
self,
*,
IdentityType: IdentityTypeType = ..., # (1)
NextToken: str = ...,
MaxItems: int = ...,
) -> ListIdentitiesResponseTypeDef: # (2)
...
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 session.client("ses").list_identity_policies
method.
boto3 documentation
await def list_identity_policies(
self,
*,
Identity: str,
) -> ListIdentityPoliciesResponseTypeDef: # (1)
...
kwargs: ListIdentityPoliciesRequestRequestTypeDef = { # (1)
"Identity": ...,
}
parent.list_identity_policies(**kwargs)
list_receipt_filters
Lists the IP address filters associated with your AWS account in the current AWS Region.
Type annotations and code completion for session.client("ses").list_receipt_filters
method.
boto3 documentation
await def list_receipt_filters(
self,
) -> ListReceiptFiltersResponseTypeDef: # (1)
...
list_receipt_rule_sets
Lists the receipt rule sets that exist under your AWS account in the current AWS Region.
Type annotations and code completion for session.client("ses").list_receipt_rule_sets
method.
boto3 documentation
await def list_receipt_rule_sets(
self,
*,
NextToken: str = ...,
) -> ListReceiptRuleSetsResponseTypeDef: # (1)
...
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 AWS Region.
Type annotations and code completion for session.client("ses").list_templates
method.
boto3 documentation
await def list_templates(
self,
*,
NextToken: str = ...,
MaxItems: int = ...,
) -> ListTemplatesResponseTypeDef: # (1)
...
kwargs: ListTemplatesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_templates(**kwargs)
list_verified_email_addresses
Deprecated.
Type annotations and code completion for session.client("ses").list_verified_email_addresses
method.
boto3 documentation
await 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 session.client("ses").put_configuration_set_delivery_options
method.
boto3 documentation
await def put_configuration_set_delivery_options(
self,
*,
ConfigurationSetName: str,
DeliveryOptions: DeliveryOptionsTypeDef = ..., # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").put_identity_policy
method.
boto3 documentation
await def put_identity_policy(
self,
*,
Identity: str,
PolicyName: str,
Policy: str,
) -> Dict[str, Any]:
...
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 session.client("ses").reorder_receipt_rule_set
method.
boto3 documentation
await def reorder_receipt_rule_set(
self,
*,
RuleSetName: str,
RuleNames: Sequence[str],
) -> Dict[str, Any]:
...
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 session.client("ses").send_bounce
method.
boto3 documentation
await def send_bounce(
self,
*,
OriginalMessageId: str,
BounceSender: str,
BouncedRecipientInfoList: Sequence[BouncedRecipientInfoTypeDef], # (1)
Explanation: str = ...,
MessageDsn: MessageDsnTypeDef = ..., # (2)
BounceSenderArn: str = ...,
) -> SendBounceResponseTypeDef: # (3)
...
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 session.client("ses").send_bulk_templated_email
method.
boto3 documentation
await def send_bulk_templated_email(
self,
*,
Source: str,
Template: str,
Destinations: Sequence[BulkEmailDestinationTypeDef], # (1)
SourceArn: str = ...,
ReplyToAddresses: Sequence[str] = ...,
ReturnPath: str = ...,
ReturnPathArn: str = ...,
ConfigurationSetName: str = ...,
DefaultTags: Sequence[MessageTagTypeDef] = ..., # (2)
TemplateArn: str = ...,
DefaultTemplateData: str = ...,
) -> SendBulkTemplatedEmailResponseTypeDef: # (3)
...
kwargs: SendBulkTemplatedEmailRequestRequestTypeDef = { # (1)
"Source": ...,
"Template": ...,
"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 AWS Region and attempts to verify it.
Type annotations and code completion for session.client("ses").send_custom_verification_email
method.
boto3 documentation
await def send_custom_verification_email(
self,
*,
EmailAddress: str,
TemplateName: str,
ConfigurationSetName: str = ...,
) -> SendCustomVerificationEmailResponseTypeDef: # (1)
...
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 session.client("ses").send_email
method.
boto3 documentation
await 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
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 session.client("ses").send_raw_email
method.
boto3 documentation
await 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)
...
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 session.client("ses").send_templated_email
method.
boto3 documentation
await 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)
...
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 session.client("ses").set_active_receipt_rule_set
method.
boto3 documentation
await def set_active_receipt_rule_set(
self,
*,
RuleSetName: str = ...,
) -> Dict[str, Any]:
...
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 session.client("ses").set_identity_dkim_enabled
method.
boto3 documentation
await def set_identity_dkim_enabled(
self,
*,
Identity: str,
DkimEnabled: bool,
) -> Dict[str, Any]:
...
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 session.client("ses").set_identity_feedback_forwarding_enabled
method.
boto3 documentation
await def set_identity_feedback_forwarding_enabled(
self,
*,
Identity: str,
ForwardingEnabled: bool,
) -> Dict[str, Any]:
...
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 session.client("ses").set_identity_headers_in_notifications_enabled
method.
boto3 documentation
await def set_identity_headers_in_notifications_enabled(
self,
*,
Identity: str,
NotificationType: NotificationTypeType, # (1)
Enabled: bool,
) -> Dict[str, Any]:
...
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 session.client("ses").set_identity_mail_from_domain
method.
boto3 documentation
await def set_identity_mail_from_domain(
self,
*,
Identity: str,
MailFromDomain: str = ...,
BehaviorOnMXFailure: BehaviorOnMXFailureType = ..., # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").set_identity_notification_topic
method.
boto3 documentation
await def set_identity_notification_topic(
self,
*,
Identity: str,
NotificationType: NotificationTypeType, # (1)
SnsTopic: str = ...,
) -> Dict[str, Any]:
...
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 session.client("ses").set_receipt_rule_position
method.
boto3 documentation
await def set_receipt_rule_position(
self,
*,
RuleSetName: str,
RuleName: str,
After: str = ...,
) -> Dict[str, Any]:
...
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 session.client("ses").test_render_template
method.
boto3 documentation
await def test_render_template(
self,
*,
TemplateName: str,
TemplateData: str,
) -> TestRenderTemplateResponseTypeDef: # (1)
...
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 AWS Region.
Type annotations and code completion for session.client("ses").update_account_sending_enabled
method.
boto3 documentation
await def update_account_sending_enabled(
self,
*,
Enabled: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 session.client("ses").update_configuration_set_event_destination
method.
boto3 documentation
await def update_configuration_set_event_destination(
self,
*,
ConfigurationSetName: str,
EventDestination: EventDestinationTypeDef, # (1)
) -> Dict[str, Any]:
...
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 AWS Region.
Type annotations and code completion for session.client("ses").update_configuration_set_reputation_metrics_enabled
method.
boto3 documentation
await def update_configuration_set_reputation_metrics_enabled(
self,
*,
ConfigurationSetName: str,
Enabled: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 AWS Region.
Type annotations and code completion for session.client("ses").update_configuration_set_sending_enabled
method.
boto3 documentation
await def update_configuration_set_sending_enabled(
self,
*,
ConfigurationSetName: str,
Enabled: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 session.client("ses").update_configuration_set_tracking_options
method.
boto3 documentation
await def update_configuration_set_tracking_options(
self,
*,
ConfigurationSetName: str,
TrackingOptions: TrackingOptionsTypeDef, # (1)
) -> Dict[str, Any]:
...
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 session.client("ses").update_custom_verification_email_template
method.
boto3 documentation
await def update_custom_verification_email_template(
self,
*,
TemplateName: str,
FromEmailAddress: str = ...,
TemplateSubject: str = ...,
TemplateContent: str = ...,
SuccessRedirectionURL: str = ...,
FailureRedirectionURL: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: UpdateCustomVerificationEmailTemplateRequestRequestTypeDef = { # (1)
"TemplateName": ...,
}
parent.update_custom_verification_email_template(**kwargs)
update_receipt_rule
Updates a receipt rule.
Type annotations and code completion for session.client("ses").update_receipt_rule
method.
boto3 documentation
await def update_receipt_rule(
self,
*,
RuleSetName: str,
Rule: ReceiptRuleTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: UpdateReceiptRuleRequestRequestTypeDef = { # (1)
"RuleSetName": ...,
"Rule": ...,
}
parent.update_receipt_rule(**kwargs)
update_template
Updates an email template.
Type annotations and code completion for session.client("ses").update_template
method.
boto3 documentation
await def update_template(
self,
*,
Template: TemplateTypeDef, # (1)
) -> Dict[str, Any]:
...
- See TemplateTypeDef
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 session.client("ses").verify_domain_dkim
method.
boto3 documentation
await def verify_domain_dkim(
self,
*,
Domain: str,
) -> VerifyDomainDkimResponseTypeDef: # (1)
...
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 AWS Region and attempts to verify it.
Type annotations and code completion for session.client("ses").verify_domain_identity
method.
boto3 documentation
await def verify_domain_identity(
self,
*,
Domain: str,
) -> VerifyDomainIdentityResponseTypeDef: # (1)
...
kwargs: VerifyDomainIdentityRequestRequestTypeDef = { # (1)
"Domain": ...,
}
parent.verify_domain_identity(**kwargs)
verify_email_address
Deprecated.
Type annotations and code completion for session.client("ses").verify_email_address
method.
boto3 documentation
await def verify_email_address(
self,
*,
EmailAddress: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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 AWS region and attempts to verify it.
Type annotations and code completion for session.client("ses").verify_email_identity
method.
boto3 documentation
await def verify_email_identity(
self,
*,
EmailAddress: str,
) -> Dict[str, Any]:
...
kwargs: VerifyEmailIdentityRequestRequestTypeDef = { # (1)
"EmailAddress": ...,
}
parent.verify_email_identity(**kwargs)
__aenter__
Type annotations and code completion for session.client("ses").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("ses").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.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 session.client("ses").get_waiter
method with overloads.
client.get_waiter("identity_exists")
-> IdentityExistsWaiter