Skip to content

SESClient

Index > SES > 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

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.

Usage example
client = boto3.client("ses")

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)
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

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

Method definition
def clone_receipt_rule_set(
    self,
    *,
    RuleSetName: str,
    OriginalRuleSetName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: CloneReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
    "OriginalRuleSetName": ...,
}

parent.clone_receipt_rule_set(**kwargs)
  1. See CloneReceiptRuleSetRequestRequestTypeDef

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("ses").close method. boto3 documentation

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. boto3 documentation

Method definition
def create_configuration_set(
    self,
    *,
    ConfigurationSet: ConfigurationSetTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See ConfigurationSetTypeDef
Usage example with kwargs
kwargs: CreateConfigurationSetRequestRequestTypeDef = {  # (1)
    "ConfigurationSet": ...,
}

parent.create_configuration_set(**kwargs)
  1. See CreateConfigurationSetRequestRequestTypeDef

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

Method definition
def create_configuration_set_event_destination(
    self,
    *,
    ConfigurationSetName: str,
    EventDestination: EventDestinationTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See EventDestinationTypeDef
Usage example with kwargs
kwargs: CreateConfigurationSetEventDestinationRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
    "EventDestination": ...,
}

parent.create_configuration_set_event_destination(**kwargs)
  1. See CreateConfigurationSetEventDestinationRequestRequestTypeDef

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

Method definition
def create_configuration_set_tracking_options(
    self,
    *,
    ConfigurationSetName: str,
    TrackingOptions: TrackingOptionsTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See TrackingOptionsTypeDef
Usage example with kwargs
kwargs: CreateConfigurationSetTrackingOptionsRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
    "TrackingOptions": ...,
}

parent.create_configuration_set_tracking_options(**kwargs)
  1. See CreateConfigurationSetTrackingOptionsRequestRequestTypeDef

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

Method definition
def create_custom_verification_email_template(
    self,
    *,
    TemplateName: str,
    FromEmailAddress: str,
    TemplateSubject: str,
    TemplateContent: str,
    SuccessRedirectionURL: str,
    FailureRedirectionURL: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: CreateCustomVerificationEmailTemplateRequestRequestTypeDef = {  # (1)
    "TemplateName": ...,
    "FromEmailAddress": ...,
    "TemplateSubject": ...,
    "TemplateContent": ...,
    "SuccessRedirectionURL": ...,
    "FailureRedirectionURL": ...,
}

parent.create_custom_verification_email_template(**kwargs)
  1. See CreateCustomVerificationEmailTemplateRequestRequestTypeDef

create_receipt_filter

Creates a new IP address filter.

Type annotations and code completion for boto3.client("ses").create_receipt_filter method. boto3 documentation

Method definition
def create_receipt_filter(
    self,
    *,
    Filter: ReceiptFilterTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See ReceiptFilterTypeDef
Usage example with kwargs
kwargs: CreateReceiptFilterRequestRequestTypeDef = {  # (1)
    "Filter": ...,
}

parent.create_receipt_filter(**kwargs)
  1. See CreateReceiptFilterRequestRequestTypeDef

create_receipt_rule

Creates a receipt rule.

Type annotations and code completion for boto3.client("ses").create_receipt_rule method. boto3 documentation

Method definition
def create_receipt_rule(
    self,
    *,
    RuleSetName: str,
    Rule: ReceiptRuleTypeDef,  # (1)
    After: str = ...,
) -> Dict[str, Any]:
    ...
  1. See ReceiptRuleTypeDef
Usage example with kwargs
kwargs: CreateReceiptRuleRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
    "Rule": ...,
}

parent.create_receipt_rule(**kwargs)
  1. See CreateReceiptRuleRequestRequestTypeDef

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

Method definition
def create_receipt_rule_set(
    self,
    *,
    RuleSetName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: CreateReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
}

parent.create_receipt_rule_set(**kwargs)
  1. See CreateReceiptRuleSetRequestRequestTypeDef

create_template

Creates an email template.

Type annotations and code completion for boto3.client("ses").create_template method. boto3 documentation

Method definition
def create_template(
    self,
    *,
    Template: TemplateTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See TemplateTypeDef
Usage example with kwargs
kwargs: CreateTemplateRequestRequestTypeDef = {  # (1)
    "Template": ...,
}

parent.create_template(**kwargs)
  1. See CreateTemplateRequestRequestTypeDef

delete_configuration_set

Deletes a configuration set.

Type annotations and code completion for boto3.client("ses").delete_configuration_set method. boto3 documentation

Method definition
def delete_configuration_set(
    self,
    *,
    ConfigurationSetName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteConfigurationSetRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.delete_configuration_set(**kwargs)
  1. See DeleteConfigurationSetRequestRequestTypeDef

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

Method definition
def delete_configuration_set_event_destination(
    self,
    *,
    ConfigurationSetName: str,
    EventDestinationName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteConfigurationSetEventDestinationRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
    "EventDestinationName": ...,
}

parent.delete_configuration_set_event_destination(**kwargs)
  1. See DeleteConfigurationSetEventDestinationRequestRequestTypeDef

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

Method definition
def delete_configuration_set_tracking_options(
    self,
    *,
    ConfigurationSetName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteConfigurationSetTrackingOptionsRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.delete_configuration_set_tracking_options(**kwargs)
  1. See DeleteConfigurationSetTrackingOptionsRequestRequestTypeDef

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

Method definition
def delete_custom_verification_email_template(
    self,
    *,
    TemplateName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteCustomVerificationEmailTemplateRequestRequestTypeDef = {  # (1)
    "TemplateName": ...,
}

parent.delete_custom_verification_email_template(**kwargs)
  1. See DeleteCustomVerificationEmailTemplateRequestRequestTypeDef

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

Method definition
def delete_identity(
    self,
    *,
    Identity: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteIdentityRequestRequestTypeDef = {  # (1)
    "Identity": ...,
}

parent.delete_identity(**kwargs)
  1. See DeleteIdentityRequestRequestTypeDef

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

Method definition
def delete_identity_policy(
    self,
    *,
    Identity: str,
    PolicyName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteIdentityPolicyRequestRequestTypeDef = {  # (1)
    "Identity": ...,
    "PolicyName": ...,
}

parent.delete_identity_policy(**kwargs)
  1. See DeleteIdentityPolicyRequestRequestTypeDef

delete_receipt_filter

Deletes the specified IP address filter.

Type annotations and code completion for boto3.client("ses").delete_receipt_filter method. boto3 documentation

Method definition
def delete_receipt_filter(
    self,
    *,
    FilterName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteReceiptFilterRequestRequestTypeDef = {  # (1)
    "FilterName": ...,
}

parent.delete_receipt_filter(**kwargs)
  1. See DeleteReceiptFilterRequestRequestTypeDef

delete_receipt_rule

Deletes the specified receipt rule.

Type annotations and code completion for boto3.client("ses").delete_receipt_rule method. boto3 documentation

Method definition
def delete_receipt_rule(
    self,
    *,
    RuleSetName: str,
    RuleName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteReceiptRuleRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
    "RuleName": ...,
}

parent.delete_receipt_rule(**kwargs)
  1. See DeleteReceiptRuleRequestRequestTypeDef

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

Method definition
def delete_receipt_rule_set(
    self,
    *,
    RuleSetName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
}

parent.delete_receipt_rule_set(**kwargs)
  1. See DeleteReceiptRuleSetRequestRequestTypeDef

delete_template

Deletes an email template.

Type annotations and code completion for boto3.client("ses").delete_template method. boto3 documentation

Method definition
def delete_template(
    self,
    *,
    TemplateName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteTemplateRequestRequestTypeDef = {  # (1)
    "TemplateName": ...,
}

parent.delete_template(**kwargs)
  1. See DeleteTemplateRequestRequestTypeDef

delete_verified_email_address

Deprecated.

Type annotations and code completion for boto3.client("ses").delete_verified_email_address method. boto3 documentation

Method definition
def delete_verified_email_address(
    self,
    *,
    EmailAddress: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteVerifiedEmailAddressRequestRequestTypeDef = {  # (1)
    "EmailAddress": ...,
}

parent.delete_verified_email_address(**kwargs)
  1. See DeleteVerifiedEmailAddressRequestRequestTypeDef

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

Method definition
def describe_active_receipt_rule_set(
    self,
) -> DescribeActiveReceiptRuleSetResponseTypeDef:  # (1)
    ...
  1. See DescribeActiveReceiptRuleSetResponseTypeDef

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

Method definition
def describe_configuration_set(
    self,
    *,
    ConfigurationSetName: str,
    ConfigurationSetAttributeNames: Sequence[ConfigurationSetAttributeType] = ...,  # (1)
) -> DescribeConfigurationSetResponseTypeDef:  # (2)
    ...
  1. See ConfigurationSetAttributeType
  2. See DescribeConfigurationSetResponseTypeDef
Usage example with kwargs
kwargs: DescribeConfigurationSetRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.describe_configuration_set(**kwargs)
  1. See DescribeConfigurationSetRequestRequestTypeDef

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

Method definition
def describe_receipt_rule(
    self,
    *,
    RuleSetName: str,
    RuleName: str,
) -> DescribeReceiptRuleResponseTypeDef:  # (1)
    ...
  1. See DescribeReceiptRuleResponseTypeDef
Usage example with kwargs
kwargs: DescribeReceiptRuleRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
    "RuleName": ...,
}

parent.describe_receipt_rule(**kwargs)
  1. See DescribeReceiptRuleRequestRequestTypeDef

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

Method definition
def describe_receipt_rule_set(
    self,
    *,
    RuleSetName: str,
) -> DescribeReceiptRuleSetResponseTypeDef:  # (1)
    ...
  1. See DescribeReceiptRuleSetResponseTypeDef
Usage example with kwargs
kwargs: DescribeReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
}

parent.describe_receipt_rule_set(**kwargs)
  1. See DescribeReceiptRuleSetRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("ses").generate_presigned_url method. boto3 documentation

Method definition
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 boto3.client("ses").get_account_sending_enabled method. boto3 documentation

Method definition
def get_account_sending_enabled(
    self,
) -> GetAccountSendingEnabledResponseTypeDef:  # (1)
    ...
  1. See GetAccountSendingEnabledResponseTypeDef

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

Method definition
def get_custom_verification_email_template(
    self,
    *,
    TemplateName: str,
) -> GetCustomVerificationEmailTemplateResponseTypeDef:  # (1)
    ...
  1. See GetCustomVerificationEmailTemplateResponseTypeDef
Usage example with kwargs
kwargs: GetCustomVerificationEmailTemplateRequestRequestTypeDef = {  # (1)
    "TemplateName": ...,
}

parent.get_custom_verification_email_template(**kwargs)
  1. See GetCustomVerificationEmailTemplateRequestRequestTypeDef

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

Method definition
def get_identity_dkim_attributes(
    self,
    *,
    Identities: Sequence[str],
) -> GetIdentityDkimAttributesResponseTypeDef:  # (1)
    ...
  1. See GetIdentityDkimAttributesResponseTypeDef
Usage example with kwargs
kwargs: GetIdentityDkimAttributesRequestRequestTypeDef = {  # (1)
    "Identities": ...,
}

parent.get_identity_dkim_attributes(**kwargs)
  1. See GetIdentityDkimAttributesRequestRequestTypeDef

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

Method definition
def get_identity_mail_from_domain_attributes(
    self,
    *,
    Identities: Sequence[str],
) -> GetIdentityMailFromDomainAttributesResponseTypeDef:  # (1)
    ...
  1. See GetIdentityMailFromDomainAttributesResponseTypeDef
Usage example with kwargs
kwargs: GetIdentityMailFromDomainAttributesRequestRequestTypeDef = {  # (1)
    "Identities": ...,
}

parent.get_identity_mail_from_domain_attributes(**kwargs)
  1. See GetIdentityMailFromDomainAttributesRequestRequestTypeDef

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

Method definition
def get_identity_notification_attributes(
    self,
    *,
    Identities: Sequence[str],
) -> GetIdentityNotificationAttributesResponseTypeDef:  # (1)
    ...
  1. See GetIdentityNotificationAttributesResponseTypeDef
Usage example with kwargs
kwargs: GetIdentityNotificationAttributesRequestRequestTypeDef = {  # (1)
    "Identities": ...,
}

parent.get_identity_notification_attributes(**kwargs)
  1. See GetIdentityNotificationAttributesRequestRequestTypeDef

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

Method definition
def get_identity_policies(
    self,
    *,
    Identity: str,
    PolicyNames: Sequence[str],
) -> GetIdentityPoliciesResponseTypeDef:  # (1)
    ...
  1. See GetIdentityPoliciesResponseTypeDef
Usage example with kwargs
kwargs: GetIdentityPoliciesRequestRequestTypeDef = {  # (1)
    "Identity": ...,
    "PolicyNames": ...,
}

parent.get_identity_policies(**kwargs)
  1. See GetIdentityPoliciesRequestRequestTypeDef

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

Method definition
def get_identity_verification_attributes(
    self,
    *,
    Identities: Sequence[str],
) -> GetIdentityVerificationAttributesResponseTypeDef:  # (1)
    ...
  1. See GetIdentityVerificationAttributesResponseTypeDef
Usage example with kwargs
kwargs: GetIdentityVerificationAttributesRequestRequestTypeDef = {  # (1)
    "Identities": ...,
}

parent.get_identity_verification_attributes(**kwargs)
  1. See GetIdentityVerificationAttributesRequestRequestTypeDef

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

Method definition
def get_send_quota(
    self,
) -> GetSendQuotaResponseTypeDef:  # (1)
    ...
  1. See GetSendQuotaResponseTypeDef

get_send_statistics

Provides sending statistics for the current AWS Region.

Type annotations and code completion for boto3.client("ses").get_send_statistics method. boto3 documentation

Method definition
def get_send_statistics(
    self,
) -> GetSendStatisticsResponseTypeDef:  # (1)
    ...
  1. See GetSendStatisticsResponseTypeDef

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

Method definition
def get_template(
    self,
    *,
    TemplateName: str,
) -> GetTemplateResponseTypeDef:  # (1)
    ...
  1. See GetTemplateResponseTypeDef
Usage example with kwargs
kwargs: GetTemplateRequestRequestTypeDef = {  # (1)
    "TemplateName": ...,
}

parent.get_template(**kwargs)
  1. See GetTemplateRequestRequestTypeDef

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 boto3.client("ses").list_configuration_sets method. boto3 documentation

Method definition
def list_configuration_sets(
    self,
    *,
    NextToken: str = ...,
    MaxItems: int = ...,
) -> ListConfigurationSetsResponseTypeDef:  # (1)
    ...
  1. See ListConfigurationSetsResponseTypeDef
Usage example with kwargs
kwargs: ListConfigurationSetsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_configuration_sets(**kwargs)
  1. See ListConfigurationSetsRequestRequestTypeDef

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 boto3.client("ses").list_custom_verification_email_templates method. boto3 documentation

Method definition
def list_custom_verification_email_templates(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListCustomVerificationEmailTemplatesResponseTypeDef:  # (1)
    ...
  1. See ListCustomVerificationEmailTemplatesResponseTypeDef
Usage example with kwargs
kwargs: ListCustomVerificationEmailTemplatesRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_custom_verification_email_templates(**kwargs)
  1. See ListCustomVerificationEmailTemplatesRequestRequestTypeDef

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 boto3.client("ses").list_identities method. boto3 documentation

Method definition
def list_identities(
    self,
    *,
    IdentityType: IdentityTypeType = ...,  # (1)
    NextToken: str = ...,
    MaxItems: int = ...,
) -> ListIdentitiesResponseTypeDef:  # (2)
    ...
  1. See IdentityTypeType
  2. See ListIdentitiesResponseTypeDef
Usage example with kwargs
kwargs: ListIdentitiesRequestRequestTypeDef = {  # (1)
    "IdentityType": ...,
}

parent.list_identities(**kwargs)
  1. See ListIdentitiesRequestRequestTypeDef

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

Method definition
def list_identity_policies(
    self,
    *,
    Identity: str,
) -> ListIdentityPoliciesResponseTypeDef:  # (1)
    ...
  1. See ListIdentityPoliciesResponseTypeDef
Usage example with kwargs
kwargs: ListIdentityPoliciesRequestRequestTypeDef = {  # (1)
    "Identity": ...,
}

parent.list_identity_policies(**kwargs)
  1. See ListIdentityPoliciesRequestRequestTypeDef

list_receipt_filters

Lists the IP address filters associated with your AWS account in the current AWS Region.

Type annotations and code completion for boto3.client("ses").list_receipt_filters method. boto3 documentation

Method definition
def list_receipt_filters(
    self,
) -> ListReceiptFiltersResponseTypeDef:  # (1)
    ...
  1. See ListReceiptFiltersResponseTypeDef

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 boto3.client("ses").list_receipt_rule_sets method. boto3 documentation

Method definition
def list_receipt_rule_sets(
    self,
    *,
    NextToken: str = ...,
) -> ListReceiptRuleSetsResponseTypeDef:  # (1)
    ...
  1. See ListReceiptRuleSetsResponseTypeDef
Usage example with kwargs
kwargs: ListReceiptRuleSetsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_receipt_rule_sets(**kwargs)
  1. See ListReceiptRuleSetsRequestRequestTypeDef

list_templates

Lists the email templates present in your Amazon SES account in the current AWS Region.

Type annotations and code completion for boto3.client("ses").list_templates method. boto3 documentation

Method definition
def list_templates(
    self,
    *,
    NextToken: str = ...,
    MaxItems: int = ...,
) -> ListTemplatesResponseTypeDef:  # (1)
    ...
  1. See ListTemplatesResponseTypeDef
Usage example with kwargs
kwargs: ListTemplatesRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_templates(**kwargs)
  1. See ListTemplatesRequestRequestTypeDef

list_verified_email_addresses

Deprecated.

Type annotations and code completion for boto3.client("ses").list_verified_email_addresses method. boto3 documentation

Method definition
def list_verified_email_addresses(
    self,
) -> ListVerifiedEmailAddressesResponseTypeDef:  # (1)
    ...
  1. See ListVerifiedEmailAddressesResponseTypeDef

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

Method definition
def put_configuration_set_delivery_options(
    self,
    *,
    ConfigurationSetName: str,
    DeliveryOptions: DeliveryOptionsTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See DeliveryOptionsTypeDef
Usage example with kwargs
kwargs: PutConfigurationSetDeliveryOptionsRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.put_configuration_set_delivery_options(**kwargs)
  1. See PutConfigurationSetDeliveryOptionsRequestRequestTypeDef

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

Method definition
def put_identity_policy(
    self,
    *,
    Identity: str,
    PolicyName: str,
    Policy: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: PutIdentityPolicyRequestRequestTypeDef = {  # (1)
    "Identity": ...,
    "PolicyName": ...,
    "Policy": ...,
}

parent.put_identity_policy(**kwargs)
  1. See PutIdentityPolicyRequestRequestTypeDef

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

Method definition
def reorder_receipt_rule_set(
    self,
    *,
    RuleSetName: str,
    RuleNames: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: ReorderReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
    "RuleNames": ...,
}

parent.reorder_receipt_rule_set(**kwargs)
  1. See ReorderReceiptRuleSetRequestRequestTypeDef

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

Method definition
def send_bounce(
    self,
    *,
    OriginalMessageId: str,
    BounceSender: str,
    BouncedRecipientInfoList: Sequence[BouncedRecipientInfoTypeDef],  # (1)
    Explanation: str = ...,
    MessageDsn: MessageDsnTypeDef = ...,  # (2)
    BounceSenderArn: str = ...,
) -> SendBounceResponseTypeDef:  # (3)
    ...
  1. See BouncedRecipientInfoTypeDef
  2. See MessageDsnTypeDef
  3. See SendBounceResponseTypeDef
Usage example with kwargs
kwargs: SendBounceRequestRequestTypeDef = {  # (1)
    "OriginalMessageId": ...,
    "BounceSender": ...,
    "BouncedRecipientInfoList": ...,
}

parent.send_bounce(**kwargs)
  1. See SendBounceRequestRequestTypeDef

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

Method definition
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)
    ...
  1. See BulkEmailDestinationTypeDef
  2. See MessageTagTypeDef
  3. See SendBulkTemplatedEmailResponseTypeDef
Usage example with kwargs
kwargs: SendBulkTemplatedEmailRequestRequestTypeDef = {  # (1)
    "Source": ...,
    "Template": ...,
    "Destinations": ...,
}

parent.send_bulk_templated_email(**kwargs)
  1. See SendBulkTemplatedEmailRequestRequestTypeDef

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 boto3.client("ses").send_custom_verification_email method. boto3 documentation

Method definition
def send_custom_verification_email(
    self,
    *,
    EmailAddress: str,
    TemplateName: str,
    ConfigurationSetName: str = ...,
) -> SendCustomVerificationEmailResponseTypeDef:  # (1)
    ...
  1. See SendCustomVerificationEmailResponseTypeDef
Usage example with kwargs
kwargs: SendCustomVerificationEmailRequestRequestTypeDef = {  # (1)
    "EmailAddress": ...,
    "TemplateName": ...,
}

parent.send_custom_verification_email(**kwargs)
  1. See SendCustomVerificationEmailRequestRequestTypeDef

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

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)
    ...
  1. See DestinationTypeDef
  2. See MessageTypeDef
  3. See MessageTagTypeDef
  4. See SendEmailResponseTypeDef
Usage example with kwargs
kwargs: SendEmailRequestRequestTypeDef = {  # (1)
    "Source": ...,
    "Destination": ...,
    "Message": ...,
}

parent.send_email(**kwargs)
  1. See SendEmailRequestRequestTypeDef

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

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)
    ...
  1. See RawMessageTypeDef
  2. See MessageTagTypeDef
  3. See SendRawEmailResponseTypeDef
Usage example with kwargs
kwargs: SendRawEmailRequestRequestTypeDef = {  # (1)
    "RawMessage": ...,
}

parent.send_raw_email(**kwargs)
  1. See SendRawEmailRequestRequestTypeDef

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

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)
    ...
  1. See DestinationTypeDef
  2. See MessageTagTypeDef
  3. See SendTemplatedEmailResponseTypeDef
Usage example with kwargs
kwargs: SendTemplatedEmailRequestRequestTypeDef = {  # (1)
    "Source": ...,
    "Destination": ...,
    "Template": ...,
    "TemplateData": ...,
}

parent.send_templated_email(**kwargs)
  1. See SendTemplatedEmailRequestRequestTypeDef

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

Method definition
def set_active_receipt_rule_set(
    self,
    *,
    RuleSetName: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: SetActiveReceiptRuleSetRequestRequestTypeDef = {  # (1)
    "RuleSetName": ...,
}

parent.set_active_receipt_rule_set(**kwargs)
  1. See SetActiveReceiptRuleSetRequestRequestTypeDef

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

Method definition
def set_identity_dkim_enabled(
    self,
    *,
    Identity: str,
    DkimEnabled: bool,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: SetIdentityDkimEnabledRequestRequestTypeDef = {  # (1)
    "Identity": ...,
    "DkimEnabled": ...,
}

parent.set_identity_dkim_enabled(**kwargs)
  1. See SetIdentityDkimEnabledRequestRequestTypeDef

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.