SESV2 ***** Client ====== class SESV2.Client A low-level client representing Amazon Simple Email Service (SES V2) Amazon SES is an Amazon Web Services service that you can use to send email messages to your customers. If you're new to Amazon SES API v2, you might find it helpful to review the Amazon Simple Email Service Developer Guide. The *Amazon SES Developer Guide* provides information and code samples that demonstrate how to use Amazon SES API v2 features programmatically. import boto3 client = boto3.client('sesv2') These are the available methods: * batch_get_metric_data * can_paginate * cancel_export_job * close * create_configuration_set * create_configuration_set_event_destination * create_contact * create_contact_list * create_custom_verification_email_template * create_dedicated_ip_pool * create_deliverability_test_report * create_email_identity * create_email_identity_policy * create_email_template * create_export_job * create_import_job * create_multi_region_endpoint * create_tenant * create_tenant_resource_association * delete_configuration_set * delete_configuration_set_event_destination * delete_contact * delete_contact_list * delete_custom_verification_email_template * delete_dedicated_ip_pool * delete_email_identity * delete_email_identity_policy * delete_email_template * delete_multi_region_endpoint * delete_suppressed_destination * delete_tenant * delete_tenant_resource_association * get_account * get_blacklist_reports * get_configuration_set * get_configuration_set_event_destinations * get_contact * get_contact_list * get_custom_verification_email_template * get_dedicated_ip * get_dedicated_ip_pool * get_dedicated_ips * get_deliverability_dashboard_options * get_deliverability_test_report * get_domain_deliverability_campaign * get_domain_statistics_report * get_email_identity * get_email_identity_policies * get_email_template * get_export_job * get_import_job * get_message_insights * get_multi_region_endpoint * get_paginator * get_reputation_entity * get_suppressed_destination * get_tenant * get_waiter * list_configuration_sets * list_contact_lists * list_contacts * list_custom_verification_email_templates * list_dedicated_ip_pools * list_deliverability_test_reports * list_domain_deliverability_campaigns * list_email_identities * list_email_templates * list_export_jobs * list_import_jobs * list_multi_region_endpoints * list_recommendations * list_reputation_entities * list_resource_tenants * list_suppressed_destinations * list_tags_for_resource * list_tenant_resources * list_tenants * put_account_dedicated_ip_warmup_attributes * put_account_details * put_account_sending_attributes * put_account_suppression_attributes * put_account_vdm_attributes * put_configuration_set_archiving_options * put_configuration_set_delivery_options * put_configuration_set_reputation_options * put_configuration_set_sending_options * put_configuration_set_suppression_options * put_configuration_set_tracking_options * put_configuration_set_vdm_options * put_dedicated_ip_in_pool * put_dedicated_ip_pool_scaling_attributes * put_dedicated_ip_warmup_attributes * put_deliverability_dashboard_option * put_email_identity_configuration_set_attributes * put_email_identity_dkim_attributes * put_email_identity_dkim_signing_attributes * put_email_identity_feedback_attributes * put_email_identity_mail_from_attributes * put_suppressed_destination * send_bulk_email * send_custom_verification_email * send_email * tag_resource * test_render_email_template * untag_resource * update_configuration_set_event_destination * update_contact * update_contact_list * update_custom_verification_email_template * update_email_identity_policy * update_email_template * update_reputation_entity_customer_managed_status * update_reputation_entity_policy Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListMultiRegionEndpoints * ListReputationEntities * ListResourceTenants * ListTenantResources * ListTenants SESV2 / Paginator / ListResourceTenants ListResourceTenants ******************* class SESV2.Paginator.ListResourceTenants paginator = client.get_paginator('list_resource_tenants') paginate(**kwargs) Creates an iterator that will paginate through responses from "SESV2.Client.list_resource_tenants()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( ResourceArn='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to list associated tenants for. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ResourceTenants': [ { 'TenantName': 'string', 'TenantId': 'string', 'ResourceArn': 'string', 'AssociatedTimestamp': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* Information about tenants associated with a specific resource. * **ResourceTenants** *(list) --* An array that contains information about each tenant associated with the resource. * *(dict) --* A structure that contains information about a tenant associated with a resource. * **TenantName** *(string) --* The name of the tenant associated with the resource. * **TenantId** *(string) --* A unique identifier for the tenant associated with the resource. * **ResourceArn** *(string) --* The Amazon Resource Name (ARN) of the resource. * **AssociatedTimestamp** *(datetime) --* The date and time when the resource was associated with the tenant. SESV2 / Paginator / ListTenants ListTenants *********** class SESV2.Paginator.ListTenants paginator = client.get_paginator('list_tenants') paginate(**kwargs) Creates an iterator that will paginate through responses from "SESV2.Client.list_tenants()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Tenants': [ { 'TenantName': 'string', 'TenantId': 'string', 'TenantArn': 'string', 'CreatedTimestamp': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* Information about tenants associated with your account. * **Tenants** *(list) --* An array that contains basic information about each tenant. * *(dict) --* A structure that contains basic information about a tenant. * **TenantName** *(string) --* The name of the tenant. * **TenantId** *(string) --* A unique identifier for the tenant. * **TenantArn** *(string) --* The Amazon Resource Name (ARN) of the tenant. * **CreatedTimestamp** *(datetime) --* The date and time when the tenant was created. SESV2 / Paginator / ListReputationEntities ListReputationEntities ********************** class SESV2.Paginator.ListReputationEntities paginator = client.get_paginator('list_reputation_entities') paginate(**kwargs) Creates an iterator that will paginate through responses from "SESV2.Client.list_reputation_entities()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( Filter={ 'string': 'string' }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **Filter** (*dict*) -- An object that contains filters to apply when listing reputation entities. You can filter by entity type, reputation impact, sending status, or entity reference prefix. * *(string) --* The filter key to use when listing reputation entities. This can be one of the following: * "ENTITY_TYPE" – Filter by entity type. * "REPUTATION_IMPACT" – Filter by reputation impact level. * "SENDING_STATUS" – Filter by aggregate sending status. * "ENTITY_REFERENCE_PREFIX" – Filter by entity reference prefix. * *(string) --* The filter value to match against the specified filter key. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ReputationEntities': [ { 'ReputationEntityReference': 'string', 'ReputationEntityType': 'RESOURCE', 'ReputationManagementPolicy': 'string', 'CustomerManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'AwsSesManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'SendingStatusAggregate': 'ENABLED'|'REINSTATED'|'DISABLED', 'ReputationImpact': 'LOW'|'HIGH' }, ], } **Response Structure** * *(dict) --* A list of reputation entities in your account. * **ReputationEntities** *(list) --* An array that contains information about the reputation entities in your account. * *(dict) --* An object that contains information about a reputation entity, including its reference, type, policy, status records, and reputation impact. * **ReputationEntityReference** *(string) --* The unique identifier for the reputation entity. For resource-type entities, this is the Amazon Resource Name (ARN) of the resource. * **ReputationEntityType** *(string) --* The type of reputation entity. Currently, only "RESOURCE" type entities are supported. * **ReputationManagementPolicy** *(string) --* The Amazon Resource Name (ARN) of the reputation management policy applied to this entity. This is an Amazon Web Services Amazon SES-managed policy. * **CustomerManagedStatus** *(dict) --* The customer-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **AwsSesManagedStatus** *(dict) --* The Amazon Web Services Amazon SES-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **SendingStatusAggregate** *(string) --* The aggregate sending status that determines whether the entity is allowed to send emails. This status is derived from both the customer-managed and Amazon Web Services Amazon SES-managed statuses. If either the customer-managed status or the Amazon Web Services Amazon SES-managed status is "DISABLED", the aggregate status will be "DISABLED" and the entity will not be allowed to send emails. When the customer-managed status is set to "REINSTATED", the entity can continue sending even if there are active reputation findings, provided the Amazon Web Services Amazon SES-managed status also permits sending. The entity can only send emails when both statuses permit sending. * **ReputationImpact** *(string) --* The reputation impact level for this entity, representing the highest impact reputation finding currently active. Reputation findings can be retrieved using the "ListRecommendations" operation. SESV2 / Paginator / ListTenantResources ListTenantResources ******************* class SESV2.Paginator.ListTenantResources paginator = client.get_paginator('list_tenant_resources') paginate(**kwargs) Creates an iterator that will paginate through responses from "SESV2.Client.list_tenant_resources()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( TenantName='string', Filter={ 'string': 'string' }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to list resources for. * **Filter** (*dict*) -- A map of filter keys and values for filtering the list of tenant resources. Currently, the only supported filter key is "RESOURCE_TYPE". * *(string) --* The key used to filter tenant resources. Currently, the only supported filter key is "RESOURCE_TYPE". * *(string) --* The value used to filter tenant resources. When filtering by "RESOURCE_TYPE", valid values are "EMAIL_IDENTITY", "CONFIGURATION_SET", or "EMAIL_TEMPLATE". * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'TenantResources': [ { 'ResourceType': 'EMAIL_IDENTITY'|'CONFIGURATION_SET'|'EMAIL_TEMPLATE', 'ResourceArn': 'string' }, ], } **Response Structure** * *(dict) --* Information about resources associated with a specific tenant. * **TenantResources** *(list) --* An array that contains information about each resource associated with the tenant. * *(dict) --* A structure that contains information about a resource associated with a tenant. * **ResourceType** *(string) --* The type of resource associated with the tenant. Valid values are "EMAIL_IDENTITY", "CONFIGURATION_SET", or "EMAIL_TEMPLATE". * **ResourceArn** *(string) --* The Amazon Resource Name (ARN) of the resource associated with the tenant. SESV2 / Paginator / ListMultiRegionEndpoints ListMultiRegionEndpoints ************************ class SESV2.Paginator.ListMultiRegionEndpoints paginator = client.get_paginator('list_multi_region_endpoints') paginate(**kwargs) Creates an iterator that will paginate through responses from "SESV2.Client.list_multi_region_endpoints()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'MultiRegionEndpoints': [ { 'EndpointName': 'string', 'Status': 'CREATING'|'READY'|'FAILED'|'DELETING', 'EndpointId': 'string', 'Regions': [ 'string', ], 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* The following elements are returned by the service. * **MultiRegionEndpoints** *(list) --* An array that contains key multi-region endpoint (global- endpoint) properties. * *(dict) --* An object that contains multi-region endpoint (global- endpoint) properties. * **EndpointName** *(string) --* The name of the multi-region endpoint (global- endpoint). * **Status** *(string) --* The status of the multi-region endpoint (global- endpoint). * "CREATING" – The resource is being provisioned. * "READY" – The resource is ready to use. * "FAILED" – The resource failed to be provisioned. * "DELETING" – The resource is being deleted as requested. * **EndpointId** *(string) --* The ID of the multi-region endpoint (global- endpoint). * **Regions** *(list) --* Primary and secondary regions between which multi- region endpoint splits sending traffic. * *(string) --* The name of an AWS-Region. * **CreatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global-endpoint) was created. * **LastUpdatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global-endpoint) was last updated. SESV2 / Client / update_contact_list update_contact_list ******************* SESV2.Client.update_contact_list(**kwargs) Updates contact list metadata. This operation does a complete replacement. See also: AWS API Documentation **Request Syntax** response = client.update_contact_list( ContactListName='string', Topics=[ { 'TopicName': 'string', 'DisplayName': 'string', 'Description': 'string', 'DefaultSubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], Description='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. * **Topics** (*list*) -- An interest group, theme, or label within a list. A contact list can have multiple topics. * *(dict) --* An interest group, theme, or label within a list. Lists can have multiple topics. * **TopicName** *(string) --* **[REQUIRED]** The name of the topic. * **DisplayName** *(string) --* **[REQUIRED]** The name of the topic the contact will see. * **Description** *(string) --* A description of what the topic is about, which the contact will see. * **DefaultSubscriptionStatus** *(string) --* **[REQUIRED]** The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic. * **Description** (*string*) -- A description of what the contact list is about. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / get_email_identity get_email_identity ****************** SESV2.Client.get_email_identity(**kwargs) Provides information about a specific identity, including the identity's verification status, sending authorization policies, its DKIM authentication status, and its custom Mail-From settings. See also: AWS API Documentation **Request Syntax** response = client.get_email_identity( EmailIdentity='string' ) Parameters: **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. Return type: dict Returns: **Response Syntax** { 'IdentityType': 'EMAIL_ADDRESS'|'DOMAIN'|'MANAGED_DOMAIN', 'FeedbackForwardingStatus': True|False, 'VerifiedForSendingStatus': True|False, 'DkimAttributes': { 'SigningEnabled': True|False, 'Status': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE'|'NOT_STARTED', 'Tokens': [ 'string', ], 'SigningAttributesOrigin': 'AWS_SES'|'EXTERNAL'|'AWS_SES_AF_SOUTH_1'|'AWS_SES_EU_NORTH_1'|'AWS_SES_AP_SOUTH_1'|'AWS_SES_EU_WEST_3'|'AWS_SES_EU_WEST_2'|'AWS_SES_EU_SOUTH_1'|'AWS_SES_EU_WEST_1'|'AWS_SES_AP_NORTHEAST_3'|'AWS_SES_AP_NORTHEAST_2'|'AWS_SES_ME_SOUTH_1'|'AWS_SES_AP_NORTHEAST_1'|'AWS_SES_IL_CENTRAL_1'|'AWS_SES_SA_EAST_1'|'AWS_SES_CA_CENTRAL_1'|'AWS_SES_AP_SOUTHEAST_1'|'AWS_SES_AP_SOUTHEAST_2'|'AWS_SES_AP_SOUTHEAST_3'|'AWS_SES_EU_CENTRAL_1'|'AWS_SES_US_EAST_1'|'AWS_SES_US_EAST_2'|'AWS_SES_US_WEST_1'|'AWS_SES_US_WEST_2'|'AWS_SES_ME_CENTRAL_1'|'AWS_SES_AP_SOUTH_2'|'AWS_SES_EU_CENTRAL_2', 'NextSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'CurrentSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'LastKeyGenerationTimestamp': datetime(2015, 1, 1) }, 'MailFromAttributes': { 'MailFromDomain': 'string', 'MailFromDomainStatus': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE', 'BehaviorOnMxFailure': 'USE_DEFAULT_VALUE'|'REJECT_MESSAGE' }, 'Policies': { 'string': 'string' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ConfigurationSetName': 'string', 'VerificationStatus': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE'|'NOT_STARTED', 'VerificationInfo': { 'LastCheckedTimestamp': datetime(2015, 1, 1), 'LastSuccessTimestamp': datetime(2015, 1, 1), 'ErrorType': 'SERVICE_ERROR'|'DNS_SERVER_ERROR'|'HOST_NOT_FOUND'|'TYPE_NOT_FOUND'|'INVALID_VALUE'|'REPLICATION_ACCESS_DENIED'|'REPLICATION_PRIMARY_NOT_FOUND'|'REPLICATION_PRIMARY_BYO_DKIM_NOT_SUPPORTED'|'REPLICATION_REPLICA_AS_PRIMARY_NOT_SUPPORTED'|'REPLICATION_PRIMARY_INVALID_REGION', 'SOARecord': { 'PrimaryNameServer': 'string', 'AdminEmail': 'string', 'SerialNumber': 123 } } } **Response Structure** * *(dict) --* Details about an email identity. * **IdentityType** *(string) --* The email identity type. Note: the "MANAGED_DOMAIN" identity type is not supported. * **FeedbackForwardingStatus** *(boolean) --* The feedback forwarding configuration for the identity. If the value is "true", you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the "Return-Path" header of the original email. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled). * **VerifiedForSendingStatus** *(boolean) --* Specifies whether or not the identity is verified. You can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide. * **DkimAttributes** *(dict) --* An object that contains information about the DKIM attributes for the identity. * **SigningEnabled** *(boolean) --* If the value is "true", then the messages that you send from the identity are signed using DKIM. If the value is "false", then the messages that you send from the identity aren't DKIM-signed. * **Status** *(string) --* Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. The status can be one of the following: * "PENDING" – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain. * "SUCCESS" – The verification process completed successfully. * "FAILED" – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain. * "TEMPORARY_FAILURE" – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain. * "NOT_STARTED" – The DKIM verification process hasn't been initiated for the domain. * **Tokens** *(list) --* If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key. Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours. * *(string) --* * **SigningAttributesOrigin** *(string) --* A string that indicates how DKIM was configured for the identity. These are the possible values: * "AWS_SES" – Indicates that DKIM was configured for the identity by using Easy DKIM. * "EXTERNAL" – Indicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM). * "AWS_SES_AF_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Africa (Cape Town) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_NORTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Stockholm) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Mumbai) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Hyderabad) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Paris) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (London) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Milan) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Ireland) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Osaka) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Seoul) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Middle East (UAE) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Middle East (Bahrain) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Tokyo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_IL_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Israel (Tel Aviv) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_SA_EAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in South America (São Paulo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_CA_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Canada (Central) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Singapore) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Sydney) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Jakarta) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Frankfurt) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Zurich) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US East (N. Virginia) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US East (Ohio) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US West (N. California) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US West (Oregon) region using Deterministic Easy-DKIM (DEED). * **NextSigningKeyLength** *(string) --* [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. * **CurrentSigningKeyLength** *(string) --* [Easy DKIM] The key length of the DKIM key pair in use. * **LastKeyGenerationTimestamp** *(datetime) --* [Easy DKIM] The last time a key pair was generated for this identity. * **MailFromAttributes** *(dict) --* An object that contains information about the Mail-From attributes for the email identity. * **MailFromDomain** *(string) --* The name of a domain that an email identity uses as a custom MAIL FROM domain. * **MailFromDomainStatus** *(string) --* The status of the MAIL FROM domain. This status can have the following values: * "PENDING" – Amazon SES hasn't started searching for the MX record yet. * "SUCCESS" – Amazon SES detected the required MX record for the MAIL FROM domain. * "FAILED" – Amazon SES can't find the required MX record, or the record no longer exists. * "TEMPORARY_FAILURE" – A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain. * **BehaviorOnMxFailure** *(string) --* The action to take if the required MX record can't be found when you send an email. When you set this value to "USE_DEFAULT_VALUE", the mail is sent using *amazonses.com* as the MAIL FROM domain. When you set this value to "REJECT_MESSAGE", the Amazon SES API v2 returns a "MailFromDomainNotVerified" error, and doesn't attempt to deliver the email. These behaviors are taken when the custom MAIL FROM domain configuration is in the "Pending", "Failed", and "TemporaryFailure" states. * **Policies** *(dict) --* A map of policy names to policies. * *(string) --* The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores. * *(string) --* The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide. * **Tags** *(list) --* An array of objects that define the tags (keys and values) that are associated with the email identity. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **ConfigurationSetName** *(string) --* The configuration set used by default when sending from this identity. * **VerificationStatus** *(string) --* The verification status of the identity. The status can be one of the following: * "PENDING" – The verification process was initiated, but Amazon SES hasn't yet been able to verify the identity. * "SUCCESS" – The verification process completed successfully. * "FAILED" – The verification process failed. * "TEMPORARY_FAILURE" – A temporary issue is preventing Amazon SES from determining the verification status of the identity. * "NOT_STARTED" – The verification process hasn't been initiated for the identity. * **VerificationInfo** *(dict) --* An object that contains additional information about the verification status for the identity. * **LastCheckedTimestamp** *(datetime) --* The last time a verification attempt was made for this identity. * **LastSuccessTimestamp** *(datetime) --* The last time a successful verification was made for this identity. * **ErrorType** *(string) --* Provides the reason for the failure describing why Amazon SES was not able to successfully verify the identity. Below are the possible values: * "INVALID_VALUE" – Amazon SES was able to find the record, but the value contained within the record was invalid. Ensure you have published the correct values for the record. * "TYPE_NOT_FOUND" – The queried hostname exists but does not have the requested type of DNS record. Ensure that you have published the correct type of DNS record. * "HOST_NOT_FOUND" – The queried hostname does not exist or was not reachable at the time of the request. Ensure that you have published the required DNS record(s). * "SERVICE_ERROR" – A temporary issue is preventing Amazon SES from determining the verification status of the domain. * "DNS_SERVER_ERROR" – The DNS server encountered an issue and was unable to complete the request. * "REPLICATION_ACCESS_DENIED" – The verification failed because the user does not have the required permissions to replicate the DKIM key from the primary region. Ensure you have the necessary permissions in both primary and replica regions. * "REPLICATION_PRIMARY_NOT_FOUND" – The verification failed because no corresponding identity was found in the specified primary region. Ensure the identity exists in the primary region before attempting replication. * "REPLICATION_PRIMARY_BYO_DKIM_NOT_SUPPORTED" – The verification failed because the identity in the primary region is configured with Bring Your Own DKIM (BYODKIM). DKIM key replication is only supported for identities using Easy DKIM. * "REPLICATION_REPLICA_AS_PRIMARY_NOT_SUPPORTED" – The verification failed because the specified primary identity is a replica of another identity, and multi- level replication is not supported; the primary identity must be a non-replica identity. * "REPLICATION_PRIMARY_INVALID_REGION" – The verification failed due to an invalid primary region specified. Ensure you provide a valid Amazon Web Services region where Amazon SES is available and different from the replica region. * **SOARecord** *(dict) --* An object that contains information about the start of authority (SOA) record associated with the identity. * **PrimaryNameServer** *(string) --* Primary name server specified in the SOA record. * **AdminEmail** *(string) --* Administrative contact email from the SOA record. * **SerialNumber** *(integer) --* Serial number from the SOA record. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_export_job create_export_job ***************** SESV2.Client.create_export_job(**kwargs) Creates an export job for a data source and destination. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.create_export_job( ExportDataSource={ 'MetricsDataSource': { 'Dimensions': { 'string': [ 'string', ] }, 'Namespace': 'VDM', 'Metrics': [ { 'Name': 'SEND'|'COMPLAINT'|'PERMANENT_BOUNCE'|'TRANSIENT_BOUNCE'|'OPEN'|'CLICK'|'DELIVERY'|'DELIVERY_OPEN'|'DELIVERY_CLICK'|'DELIVERY_COMPLAINT', 'Aggregation': 'RATE'|'VOLUME' }, ], 'StartDate': datetime(2015, 1, 1), 'EndDate': datetime(2015, 1, 1) }, 'MessageInsightsDataSource': { 'StartDate': datetime(2015, 1, 1), 'EndDate': datetime(2015, 1, 1), 'Include': { 'FromEmailAddress': [ 'string', ], 'Destination': [ 'string', ], 'Subject': [ 'string', ], 'Isp': [ 'string', ], 'LastDeliveryEvent': [ 'SEND'|'DELIVERY'|'TRANSIENT_BOUNCE'|'PERMANENT_BOUNCE'|'UNDETERMINED_BOUNCE'|'COMPLAINT', ], 'LastEngagementEvent': [ 'OPEN'|'CLICK', ] }, 'Exclude': { 'FromEmailAddress': [ 'string', ], 'Destination': [ 'string', ], 'Subject': [ 'string', ], 'Isp': [ 'string', ], 'LastDeliveryEvent': [ 'SEND'|'DELIVERY'|'TRANSIENT_BOUNCE'|'PERMANENT_BOUNCE'|'UNDETERMINED_BOUNCE'|'COMPLAINT', ], 'LastEngagementEvent': [ 'OPEN'|'CLICK', ] }, 'MaxResults': 123 } }, ExportDestination={ 'DataFormat': 'CSV'|'JSON', 'S3Url': 'string' } ) Parameters: * **ExportDataSource** (*dict*) -- **[REQUIRED]** The data source for the export job. * **MetricsDataSource** *(dict) --* An object that contains details about the data source for the metrics export. * **Dimensions** *(dict) --* **[REQUIRED]** An object that contains a mapping between a "MetricDimensionName" and "MetricDimensionValue" to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones. * *(string) --* The "BatchGetMetricDataQuery" dimension name. This can be one of the following: * "EMAIL_IDENTITY" – The email identity used when sending messages. * "CONFIGURATION_SET" – The configuration set used when sending messages (if one was used). * "ISP" – The recipient ISP (e.g. "Gmail", "Yahoo", etc.). * *(list) --* * *(string) --* A list of values associated with the "MetricDimensionName" to filter metrics by. Can either be "*" as a wildcard for all values or a list of up to 10 specific values. If one "Dimension" has the "*" value, other dimensions can only contain one value. * **Namespace** *(string) --* **[REQUIRED]** The metrics namespace - e.g., "VDM". * **Metrics** *(list) --* **[REQUIRED]** A list of "ExportMetric" objects to export. * *(dict) --* An object that contains a mapping between a "Metric" and "MetricAggregation". * **Name** *(string) --* The metric to export, can be one of the following: * "SEND" - Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient. * "COMPLAINT" - Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient * "PERMANENT_BOUNCE" - Permanent bounces - i.e., feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Transient bounces - i.e., feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient. * "OPEN" - Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * "DELIVERY" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient. * "DELIVERY_OPEN" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers. * "DELIVERY_CLICK" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers. * "DELIVERY_COMPLAINT" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement. * **Aggregation** *(string) --* The aggregation to apply to a metric, can be one of the following: * "VOLUME" - The volume of events for this metric. * "RATE" - The rate for this metric relative to the "SEND" metric volume. * **StartDate** *(datetime) --* **[REQUIRED]** Represents the start date for the export interval as a timestamp. * **EndDate** *(datetime) --* **[REQUIRED]** Represents the end date for the export interval as a timestamp. * **MessageInsightsDataSource** *(dict) --* An object that contains filters applied when performing the Message Insights export. * **StartDate** *(datetime) --* **[REQUIRED]** Represents the start date for the export interval as a timestamp. The start date is inclusive. * **EndDate** *(datetime) --* **[REQUIRED]** Represents the end date for the export interval as a timestamp. The end date is inclusive. * **Include** *(dict) --* Filters for results to be included in the export file. * **FromEmailAddress** *(list) --* The from address used to send the message. * *(string) --* * **Destination** *(list) --* The recipient's email address. * *(string) --* * **Subject** *(list) --* The subject line of the message. * *(string) --* * **Isp** *(list) --* The recipient's ISP (e.g., "Gmail", "Yahoo", etc.). * *(string) --* * **LastDeliveryEvent** *(list) --* The last delivery-related event for the email, where the ordering is as follows: "SEND" < "BOUNCE" < "DELIVERY" < "COMPLAINT". * *(string) --* The type of delivery events: * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator and emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. * "PERMANENT_BOUNCE" - Feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * "UNDETERMINED_BOUNCE" - SES was unable to determine the bounce reason. * "COMPLAINT" - Complaint received for the email. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * **LastEngagementEvent** *(list) --* The last engagement-related event for the email, where the ordering is as follows: "OPEN" < "CLICK". Engagement events are only available if Engagement tracking is enabled. * *(string) --* The type of delivery events: * "OPEN" - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * **Exclude** *(dict) --* Filters for results to be excluded from the export file. * **FromEmailAddress** *(list) --* The from address used to send the message. * *(string) --* * **Destination** *(list) --* The recipient's email address. * *(string) --* * **Subject** *(list) --* The subject line of the message. * *(string) --* * **Isp** *(list) --* The recipient's ISP (e.g., "Gmail", "Yahoo", etc.). * *(string) --* * **LastDeliveryEvent** *(list) --* The last delivery-related event for the email, where the ordering is as follows: "SEND" < "BOUNCE" < "DELIVERY" < "COMPLAINT". * *(string) --* The type of delivery events: * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator and emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. * "PERMANENT_BOUNCE" - Feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * "UNDETERMINED_BOUNCE" - SES was unable to determine the bounce reason. * "COMPLAINT" - Complaint received for the email. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * **LastEngagementEvent** *(list) --* The last engagement-related event for the email, where the ordering is as follows: "OPEN" < "CLICK". Engagement events are only available if Engagement tracking is enabled. * *(string) --* The type of delivery events: * "OPEN" - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * **MaxResults** *(integer) --* The maximum number of results. * **ExportDestination** (*dict*) -- **[REQUIRED]** The destination for the export job. * **DataFormat** *(string) --* **[REQUIRED]** The data format of the final export job file, can be one of the following: * "CSV" - A comma-separated values file. * "JSON" - A Json file. * **S3Url** *(string) --* An Amazon S3 pre-signed URL that points to the generated export file. Return type: dict Returns: **Response Syntax** { 'JobId': 'string' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **JobId** *(string) --* A string that represents the export job ID. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.LimitExceededException" SESV2 / Client / put_email_identity_configuration_set_attributes put_email_identity_configuration_set_attributes *********************************************** SESV2.Client.put_email_identity_configuration_set_attributes(**kwargs) Used to associate a configuration set with an email identity. See also: AWS API Documentation **Request Syntax** response = client.put_email_identity_configuration_set_attributes( EmailIdentity='string', ConfigurationSetName='string' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email address or domain to associate with a configuration set. * **ConfigurationSetName** (*string*) -- The configuration set to associate with an email identity. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / update_contact update_contact ************** SESV2.Client.update_contact(**kwargs) Updates a contact's preferences for a list. Note: You must specify all existing topic preferences in the "TopicPreferences" object, not just the ones that need updating; otherwise, all your existing preferences will be removed. See also: AWS API Documentation **Request Syntax** response = client.update_contact( ContactListName='string', EmailAddress='string', TopicPreferences=[ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], UnsubscribeAll=True|False, AttributesData='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. * **EmailAddress** (*string*) -- **[REQUIRED]** The contact's email address. * **TopicPreferences** (*list*) -- The contact's preference for being opted-in to or opted-out of a topic. * *(dict) --* The contact's preference for being opted-in to or opted-out of a topic. * **TopicName** *(string) --* **[REQUIRED]** The name of the topic. * **SubscriptionStatus** *(string) --* **[REQUIRED]** The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **UnsubscribeAll** (*boolean*) -- A boolean value status noting if the contact is unsubscribed from all contact list topics. * **AttributesData** (*string*) -- The attribute data attached to a contact. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / list_multi_region_endpoints list_multi_region_endpoints *************************** SESV2.Client.list_multi_region_endpoints(**kwargs) List the multi-region endpoints (global-endpoints). Only multi-region endpoints (global-endpoints) whose primary region is the AWS-Region where operation is executed will be listed. See also: AWS API Documentation **Request Syntax** response = client.list_multi_region_endpoints( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListMultiRegionEndpoints" to indicate the position in the list of multi-region endpoints (global-endpoints). * **PageSize** (*integer*) -- The number of results to show in a single call to "ListMultiRegionEndpoints". If the number of results is larger than the number you specified in this parameter, the response includes a "NextToken" element that you can use to retrieve the next page of results. Return type: dict Returns: **Response Syntax** { 'MultiRegionEndpoints': [ { 'EndpointName': 'string', 'Status': 'CREATING'|'READY'|'FAILED'|'DELETING', 'EndpointId': 'string', 'Regions': [ 'string', ], 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* The following elements are returned by the service. * **MultiRegionEndpoints** *(list) --* An array that contains key multi-region endpoint (global- endpoint) properties. * *(dict) --* An object that contains multi-region endpoint (global- endpoint) properties. * **EndpointName** *(string) --* The name of the multi-region endpoint (global-endpoint). * **Status** *(string) --* The status of the multi-region endpoint (global- endpoint). * "CREATING" – The resource is being provisioned. * "READY" – The resource is ready to use. * "FAILED" – The resource failed to be provisioned. * "DELETING" – The resource is being deleted as requested. * **EndpointId** *(string) --* The ID of the multi-region endpoint (global-endpoint). * **Regions** *(list) --* Primary and secondary regions between which multi-region endpoint splits sending traffic. * *(string) --* The name of an AWS-Region. * **CreatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global-endpoint) was created. * **LastUpdatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global-endpoint) was last updated. * **NextToken** *(string) --* A token indicating that there are additional multi-region endpoints (global-endpoints) available to be listed. Pass this token to a subsequent "ListMultiRegionEndpoints" call to retrieve the next page. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_paginator get_paginator ************* SESV2.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. SESV2 / Client / list_contact_lists list_contact_lists ****************** SESV2.Client.list_contact_lists(**kwargs) Lists all of the contact lists available. If your output includes a "NextToken" field with a string value, this indicates there may be additional contacts on the filtered list - regardless of the number of contacts returned. See also: AWS API Documentation **Request Syntax** response = client.list_contact_lists( PageSize=123, NextToken='string' ) Parameters: * **PageSize** (*integer*) -- Maximum number of contact lists to return at once. Use this parameter to paginate results. If additional contact lists exist beyond the specified limit, the "NextToken" element is sent in the response. Use the "NextToken" value in subsequent requests to retrieve additional lists. * **NextToken** (*string*) -- A string token indicating that there might be additional contact lists available to be listed. Use the token provided in the Response to use in the subsequent call to ListContactLists with the same parameters to retrieve the next page of contact lists. Return type: dict Returns: **Response Syntax** { 'ContactLists': [ { 'ContactListName': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ContactLists** *(list) --* The available contact lists. * *(dict) --* A list that contains contacts that have subscribed to a particular topic or topics. * **ContactListName** *(string) --* The name of the contact list. * **LastUpdatedTimestamp** *(datetime) --* A timestamp noting the last time the contact list was updated. * **NextToken** *(string) --* A string token indicating that there might be additional contact lists available to be listed. Copy this token to a subsequent call to "ListContactLists" with the same parameters to retrieve the next page of contact lists. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / update_email_template update_email_template ********************* SESV2.Client.update_email_template(**kwargs) Updates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.update_email_template( TemplateName='string', TemplateContent={ 'Subject': 'string', 'Text': 'string', 'Html': 'string' } ) Parameters: * **TemplateName** (*string*) -- **[REQUIRED]** The name of the template. * **TemplateContent** (*dict*) -- **[REQUIRED]** The content of the email template, composed of a subject line, an HTML part, and a text-only part. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_configuration_set_archiving_options put_configuration_set_archiving_options *************************************** SESV2.Client.put_configuration_set_archiving_options(**kwargs) Associate the configuration set with a MailManager archive. When you send email using the "SendEmail" or "SendBulkEmail" operations the message as it will be given to the receiving SMTP server will be archived, along with the recipient information. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_archiving_options( ConfigurationSetName='string', ArchiveArn='string' ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set to associate with a MailManager archive. * **ArchiveArn** (*string*) -- The Amazon Resource Name (ARN) of the MailManager archive that the Amazon SES API v2 sends email to. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_reputation_entities list_reputation_entities ************************ SESV2.Client.list_reputation_entities(**kwargs) List reputation entities in your Amazon SES account in the current Amazon Web Services Region. You can filter the results by entity type, reputation impact, sending status, or entity reference prefix. *Reputation entities* represent resources in your account that have reputation tracking and management capabilities. Use this operation to get an overview of all entities and their current reputation status. See also: AWS API Documentation **Request Syntax** response = client.list_reputation_entities( Filter={ 'string': 'string' }, NextToken='string', PageSize=123 ) Parameters: * **Filter** (*dict*) -- An object that contains filters to apply when listing reputation entities. You can filter by entity type, reputation impact, sending status, or entity reference prefix. * *(string) --* The filter key to use when listing reputation entities. This can be one of the following: * "ENTITY_TYPE" – Filter by entity type. * "REPUTATION_IMPACT" – Filter by reputation impact level. * "SENDING_STATUS" – Filter by aggregate sending status. * "ENTITY_REFERENCE_PREFIX" – Filter by entity reference prefix. * *(string) --* The filter value to match against the specified filter key. * **NextToken** (*string*) -- A token returned from a previous call to "ListReputationEntities" to indicate the position in the list of reputation entities. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListReputationEntities". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'ReputationEntities': [ { 'ReputationEntityReference': 'string', 'ReputationEntityType': 'RESOURCE', 'ReputationManagementPolicy': 'string', 'CustomerManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'AwsSesManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'SendingStatusAggregate': 'ENABLED'|'REINSTATED'|'DISABLED', 'ReputationImpact': 'LOW'|'HIGH' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of reputation entities in your account. * **ReputationEntities** *(list) --* An array that contains information about the reputation entities in your account. * *(dict) --* An object that contains information about a reputation entity, including its reference, type, policy, status records, and reputation impact. * **ReputationEntityReference** *(string) --* The unique identifier for the reputation entity. For resource-type entities, this is the Amazon Resource Name (ARN) of the resource. * **ReputationEntityType** *(string) --* The type of reputation entity. Currently, only "RESOURCE" type entities are supported. * **ReputationManagementPolicy** *(string) --* The Amazon Resource Name (ARN) of the reputation management policy applied to this entity. This is an Amazon Web Services Amazon SES-managed policy. * **CustomerManagedStatus** *(dict) --* The customer-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **AwsSesManagedStatus** *(dict) --* The Amazon Web Services Amazon SES-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **SendingStatusAggregate** *(string) --* The aggregate sending status that determines whether the entity is allowed to send emails. This status is derived from both the customer-managed and Amazon Web Services Amazon SES-managed statuses. If either the customer- managed status or the Amazon Web Services Amazon SES- managed status is "DISABLED", the aggregate status will be "DISABLED" and the entity will not be allowed to send emails. When the customer-managed status is set to "REINSTATED", the entity can continue sending even if there are active reputation findings, provided the Amazon Web Services Amazon SES-managed status also permits sending. The entity can only send emails when both statuses permit sending. * **ReputationImpact** *(string) --* The reputation impact level for this entity, representing the highest impact reputation finding currently active. Reputation findings can be retrieved using the "ListRecommendations" operation. * **NextToken** *(string) --* A token that indicates that there are additional reputation entities to list. To view additional reputation entities, issue another request to "ListReputationEntities", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / test_render_email_template test_render_email_template ************************** SESV2.Client.test_render_email_template(**kwargs) Creates a preview of the MIME content of an email when provided with a template and a set of replacement data. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.test_render_email_template( TemplateName='string', TemplateData='string' ) Parameters: * **TemplateName** (*string*) -- **[REQUIRED]** The name of the template. * **TemplateData** (*string*) -- **[REQUIRED]** A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template. Return type: dict Returns: **Response Syntax** { 'RenderedTemplate': 'string' } **Response Structure** * *(dict) --* The following element is returned by the service. * **RenderedTemplate** *(string) --* The complete MIME message rendered by applying the data in the "TemplateData" parameter to the template specified in the TemplateName parameter. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_dedicated_ip get_dedicated_ip **************** SESV2.Client.get_dedicated_ip(**kwargs) Get information about a dedicated IP address, including the name of the dedicated IP pool that it's associated with, as well information about the automatic warm-up process for the address. See also: AWS API Documentation **Request Syntax** response = client.get_dedicated_ip( Ip='string' ) Parameters: **Ip** (*string*) -- **[REQUIRED]** The IP address that you want to obtain more information about. The value you specify has to be a dedicated IP address that's assocaited with your Amazon Web Services account. Return type: dict Returns: **Response Syntax** { 'DedicatedIp': { 'Ip': 'string', 'WarmupStatus': 'IN_PROGRESS'|'DONE'|'NOT_APPLICABLE', 'WarmupPercentage': 123, 'PoolName': 'string' } } **Response Structure** * *(dict) --* Information about a dedicated IP address. * **DedicatedIp** *(dict) --* An object that contains information about a dedicated IP address. * **Ip** *(string) --* An IPv4 address. * **WarmupStatus** *(string) --* The warm-up status of a dedicated IP address. The status can have one of the following values: * "IN_PROGRESS" – The IP address isn't ready to use because the dedicated IP warm-up process is ongoing. * "DONE" – The dedicated IP warm-up process is complete, and the IP address is ready to use. * "NOT_APPLICABLE" – The warm-up status doesn't apply to this IP address. This status is used for IP addresses in managed dedicated IP pools, where Amazon SES automatically handles the warm-up process. * **WarmupPercentage** *(integer) --* Indicates the progress of your dedicated IP warm-up: * "0-100" – For standard dedicated IP addresses, this shows the warm-up completion percentage. A value of 100 means the IP address is fully warmed up and ready for use. * "-1" – Appears for IP addresses in managed dedicated pools where Amazon SES automatically handles the warm-up process, making the percentage not applicable. * **PoolName** *(string) --* The name of the dedicated IP pool that the IP address is associated with. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_email_identity_mail_from_attributes put_email_identity_mail_from_attributes *************************************** SESV2.Client.put_email_identity_mail_from_attributes(**kwargs) Used to enable or disable the custom Mail-From domain configuration for an email identity. See also: AWS API Documentation **Request Syntax** response = client.put_email_identity_mail_from_attributes( EmailIdentity='string', MailFromDomain='string', BehaviorOnMxFailure='USE_DEFAULT_VALUE'|'REJECT_MESSAGE' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The verified email identity. * **MailFromDomain** (*string*) -- The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria: * It has to be a subdomain of the verified identity. * It can't be used to receive email. * It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails. * **BehaviorOnMxFailure** (*string*) -- The action to take if the required MX record isn't found when you send an email. When you set this value to "UseDefaultValue", the mail is sent using *amazonses.com* as the MAIL FROM domain. When you set this value to "RejectMessage", the Amazon SES API v2 returns a "MailFromDomainNotVerified" error, and doesn't attempt to deliver the email. These behaviors are taken when the custom MAIL FROM domain configuration is in the "Pending", "Failed", and "TemporaryFailure" states. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_configuration_set_event_destination delete_configuration_set_event_destination ****************************************** SESV2.Client.delete_configuration_set_event_destination(**kwargs) Delete an event destination. *Events* include message sends, deliveries, opens, clicks, bounces, and complaints. *Event destinations* are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target. See also: AWS API Documentation **Request Syntax** response = client.delete_configuration_set_event_destination( ConfigurationSetName='string', EventDestinationName='string' ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set that contains the event destination to delete. * **EventDestinationName** (*string*) -- **[REQUIRED]** The name of the event destination to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_dedicated_ip_pool get_dedicated_ip_pool ********************* SESV2.Client.get_dedicated_ip_pool(**kwargs) Retrieve information about the dedicated pool. See also: AWS API Documentation **Request Syntax** response = client.get_dedicated_ip_pool( PoolName='string' ) Parameters: **PoolName** (*string*) -- **[REQUIRED]** The name of the dedicated IP pool to retrieve. Return type: dict Returns: **Response Syntax** { 'DedicatedIpPool': { 'PoolName': 'string', 'ScalingMode': 'STANDARD'|'MANAGED' } } **Response Structure** * *(dict) --* The following element is returned by the service. * **DedicatedIpPool** *(dict) --* An object that contains information about a dedicated IP pool. * **PoolName** *(string) --* The name of the dedicated IP pool. * **ScalingMode** *(string) --* The type of the dedicated IP pool. * "STANDARD" – A dedicated IP pool where you can control which IPs are part of the pool. * "MANAGED" – A dedicated IP pool where the reputation and number of IPs are automatically managed by Amazon SES. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / can_paginate can_paginate ************ SESV2.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. SESV2 / Client / cancel_export_job cancel_export_job ***************** SESV2.Client.cancel_export_job(**kwargs) Cancels an export job. See also: AWS API Documentation **Request Syntax** response = client.cancel_export_job( JobId='string' ) Parameters: **JobId** (*string*) -- **[REQUIRED]** The export job ID. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / list_tenants list_tenants ************ SESV2.Client.list_tenants(**kwargs) List all tenants associated with your account in the current Amazon Web Services Region. This operation returns basic information about each tenant, such as tenant name, ID, ARN, and creation timestamp. See also: AWS API Documentation **Request Syntax** response = client.list_tenants( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListTenants" to indicate the position in the list of tenants. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListTenants". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'Tenants': [ { 'TenantName': 'string', 'TenantId': 'string', 'TenantArn': 'string', 'CreatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Information about tenants associated with your account. * **Tenants** *(list) --* An array that contains basic information about each tenant. * *(dict) --* A structure that contains basic information about a tenant. * **TenantName** *(string) --* The name of the tenant. * **TenantId** *(string) --* A unique identifier for the tenant. * **TenantArn** *(string) --* The Amazon Resource Name (ARN) of the tenant. * **CreatedTimestamp** *(datetime) --* The date and time when the tenant was created. * **NextToken** *(string) --* A token that indicates that there are additional tenants to list. To view additional tenants, issue another request to "ListTenants", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_domain_statistics_report get_domain_statistics_report **************************** SESV2.Client.get_domain_statistics_report(**kwargs) Retrieve inbox placement and engagement rates for the domains that you use to send email. See also: AWS API Documentation **Request Syntax** response = client.get_domain_statistics_report( Domain='string', StartDate=datetime(2015, 1, 1), EndDate=datetime(2015, 1, 1) ) Parameters: * **Domain** (*string*) -- **[REQUIRED]** The domain that you want to obtain deliverability metrics for. * **StartDate** (*datetime*) -- **[REQUIRED]** The first day (in Unix time) that you want to obtain domain deliverability metrics for. * **EndDate** (*datetime*) -- **[REQUIRED]** The last day (in Unix time) that you want to obtain domain deliverability metrics for. The "EndDate" that you specify has to be less than or equal to 30 days after the "StartDate". Return type: dict Returns: **Response Syntax** { 'OverallVolume': { 'VolumeStatistics': { 'InboxRawCount': 123, 'SpamRawCount': 123, 'ProjectedInbox': 123, 'ProjectedSpam': 123 }, 'ReadRatePercent': 123.0, 'DomainIspPlacements': [ { 'IspName': 'string', 'InboxRawCount': 123, 'SpamRawCount': 123, 'InboxPercentage': 123.0, 'SpamPercentage': 123.0 }, ] }, 'DailyVolumes': [ { 'StartDate': datetime(2015, 1, 1), 'VolumeStatistics': { 'InboxRawCount': 123, 'SpamRawCount': 123, 'ProjectedInbox': 123, 'ProjectedSpam': 123 }, 'DomainIspPlacements': [ { 'IspName': 'string', 'InboxRawCount': 123, 'SpamRawCount': 123, 'InboxPercentage': 123.0, 'SpamPercentage': 123.0 }, ] }, ] } **Response Structure** * *(dict) --* An object that includes statistics that are related to the domain that you specified. * **OverallVolume** *(dict) --* An object that contains deliverability metrics for the domain that you specified. The data in this object is a summary of all of the data that was collected from the "StartDate" to the "EndDate". * **VolumeStatistics** *(dict) --* An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk mail folders. * **InboxRawCount** *(integer) --* The total number of emails that arrived in recipients' inboxes. * **SpamRawCount** *(integer) --* The total number of emails that arrived in recipients' spam or junk mail folders. * **ProjectedInbox** *(integer) --* An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes. * **ProjectedSpam** *(integer) --* An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders. * **ReadRatePercent** *(float) --* The percentage of emails that were sent from the domain that were read by their recipients. * **DomainIspPlacements** *(list) --* An object that contains inbox and junk mail placement metrics for individual email providers. * *(dict) --* An object that contains inbox placement data for email sent from one of your email domains to a specific email provider. * **IspName** *(string) --* The name of the email provider that the inbox placement data applies to. * **InboxRawCount** *(integer) --* The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes. * **SpamRawCount** *(integer) --* The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders. * **InboxPercentage** *(float) --* The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes. * **SpamPercentage** *(float) --* The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders. * **DailyVolumes** *(list) --* An object that contains deliverability metrics for the domain that you specified. This object contains data for each day, starting on the "StartDate" and ending on the "EndDate". * *(dict) --* An object that contains information about the volume of email sent on each day of the analysis period. * **StartDate** *(datetime) --* The date that the DailyVolume metrics apply to, in Unix time. * **VolumeStatistics** *(dict) --* An object that contains inbox placement metrics for a specific day in the analysis period. * **InboxRawCount** *(integer) --* The total number of emails that arrived in recipients' inboxes. * **SpamRawCount** *(integer) --* The total number of emails that arrived in recipients' spam or junk mail folders. * **ProjectedInbox** *(integer) --* An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes. * **ProjectedSpam** *(integer) --* An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders. * **DomainIspPlacements** *(list) --* An object that contains inbox placement metrics for a specified day in the analysis period, broken out by the recipient's email provider. * *(dict) --* An object that contains inbox placement data for email sent from one of your email domains to a specific email provider. * **IspName** *(string) --* The name of the email provider that the inbox placement data applies to. * **InboxRawCount** *(integer) --* The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes. * **SpamRawCount** *(integer) --* The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders. * **InboxPercentage** *(float) --* The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes. * **SpamPercentage** *(float) --* The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_configuration_set delete_configuration_set ************************ SESV2.Client.delete_configuration_set(**kwargs) Delete an existing configuration set. *Configuration sets* are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email. See also: AWS API Documentation **Request Syntax** response = client.delete_configuration_set( ConfigurationSetName='string' ) Parameters: **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / create_import_job create_import_job ***************** SESV2.Client.create_import_job(**kwargs) Creates an import job for a data destination. See also: AWS API Documentation **Request Syntax** response = client.create_import_job( ImportDestination={ 'SuppressionListDestination': { 'SuppressionListImportAction': 'DELETE'|'PUT' }, 'ContactListDestination': { 'ContactListName': 'string', 'ContactListImportAction': 'DELETE'|'PUT' } }, ImportDataSource={ 'S3Url': 'string', 'DataFormat': 'CSV'|'JSON' } ) Parameters: * **ImportDestination** (*dict*) -- **[REQUIRED]** The destination for the import job. * **SuppressionListDestination** *(dict) --* An object that contains the action of the import job towards suppression list. * **SuppressionListImportAction** *(string) --* **[REQUIRED]** The type of action to perform on the address. The following are possible values: * PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the suppression list. * **ContactListDestination** *(dict) --* An object that contains the action of the import job towards a contact list. * **ContactListName** *(string) --* **[REQUIRED]** The name of the contact list. * **ContactListImportAction** *(string) --* **[REQUIRED]** >The type of action to perform on the addresses. The following are the possible values: * PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the contact list. * **ImportDataSource** (*dict*) -- **[REQUIRED]** The data source for the import job. * **S3Url** *(string) --* **[REQUIRED]** An Amazon S3 URL in the format s3://**/**. * **DataFormat** *(string) --* **[REQUIRED]** The data format of the import job's data source. Return type: dict Returns: **Response Syntax** { 'JobId': 'string' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **JobId** *(string) --* A string that represents the import job ID. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / list_configuration_sets list_configuration_sets *********************** SESV2.Client.list_configuration_sets(**kwargs) List all of the configuration sets associated with your account in the current region. *Configuration sets* are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email. See also: AWS API Documentation **Request Syntax** response = client.list_configuration_sets( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListConfigurationSets" to indicate the position in the list of configuration sets. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListConfigurationSets". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'ConfigurationSets': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of configuration sets in your Amazon SES account in the current Amazon Web Services Region. * **ConfigurationSets** *(list) --* An array that contains all of the configuration sets in your Amazon SES account in the current Amazon Web Services Region. * *(string) --* The name of a configuration set. *Configuration sets* are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email. * **NextToken** *(string) --* A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to "ListConfigurationSets", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_deliverability_dashboard_option put_deliverability_dashboard_option *********************************** SESV2.Client.put_deliverability_dashboard_option(**kwargs) Enable or disable the Deliverability dashboard. When you enable the Deliverability dashboard, you gain access to reputation, deliverability, and other metrics for the domains that you use to send email. You also gain the ability to perform predictive inbox placement tests. When you use the Deliverability dashboard, you pay a monthly subscription charge, in addition to any other fees that you accrue by using Amazon SES and other Amazon Web Services services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing. See also: AWS API Documentation **Request Syntax** response = client.put_deliverability_dashboard_option( DashboardEnabled=True|False, SubscribedDomains=[ { 'Domain': 'string', 'SubscriptionStartDate': datetime(2015, 1, 1), 'InboxPlacementTrackingOption': { 'Global': True|False, 'TrackedIsps': [ 'string', ] } }, ] ) Parameters: * **DashboardEnabled** (*boolean*) -- **[REQUIRED]** Specifies whether to enable the Deliverability dashboard. To enable the dashboard, set this value to "true". * **SubscribedDomains** (*list*) -- An array of objects, one for each verified domain that you use to send email and enabled the Deliverability dashboard for. * *(dict) --* An object that contains information about the Deliverability dashboard subscription for a verified domain that you use to send email and currently has an active Deliverability dashboard subscription. If a Deliverability dashboard subscription is active for a domain, you gain access to reputation, inbox placement, and other metrics for the domain. * **Domain** *(string) --* A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription. * **SubscriptionStartDate** *(datetime) --* The date when you enabled the Deliverability dashboard for the domain. * **InboxPlacementTrackingOption** *(dict) --* An object that contains information about the inbox placement data settings for the domain. * **Global** *(boolean) --* Specifies whether inbox placement data is being tracked for the domain. * **TrackedIsps** *(list) --* An array of strings, one for each major email provider that the inbox placement data applies to. * *(string) --* The name of an email provider. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* A response that indicates whether the Deliverability dashboard is enabled. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_dedicated_ip_pool delete_dedicated_ip_pool ************************ SESV2.Client.delete_dedicated_ip_pool(**kwargs) Delete a dedicated IP pool. See also: AWS API Documentation **Request Syntax** response = client.delete_dedicated_ip_pool( PoolName='string' ) Parameters: **PoolName** (*string*) -- **[REQUIRED]** The name of the dedicated IP pool that you want to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / get_configuration_set get_configuration_set ********************* SESV2.Client.get_configuration_set(**kwargs) Get information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more. *Configuration sets* are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email. See also: AWS API Documentation **Request Syntax** response = client.get_configuration_set( ConfigurationSetName='string' ) Parameters: **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. Return type: dict Returns: **Response Syntax** { 'ConfigurationSetName': 'string', 'TrackingOptions': { 'CustomRedirectDomain': 'string', 'HttpsPolicy': 'REQUIRE'|'REQUIRE_OPEN_ONLY'|'OPTIONAL' }, 'DeliveryOptions': { 'TlsPolicy': 'REQUIRE'|'OPTIONAL', 'SendingPoolName': 'string', 'MaxDeliverySeconds': 123 }, 'ReputationOptions': { 'ReputationMetricsEnabled': True|False, 'LastFreshStart': datetime(2015, 1, 1) }, 'SendingOptions': { 'SendingEnabled': True|False }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'SuppressionOptions': { 'SuppressedReasons': [ 'BOUNCE'|'COMPLAINT', ] }, 'VdmOptions': { 'DashboardOptions': { 'EngagementMetrics': 'ENABLED'|'DISABLED' }, 'GuardianOptions': { 'OptimizedSharedDelivery': 'ENABLED'|'DISABLED' } }, 'ArchivingOptions': { 'ArchiveArn': 'string' } } **Response Structure** * *(dict) --* Information about a configuration set. * **ConfigurationSetName** *(string) --* The name of the configuration set. * **TrackingOptions** *(dict) --* An object that defines the open and click tracking options for emails that you send using the configuration set. * **CustomRedirectDomain** *(string) --* The domain to use for tracking open and click events. * **HttpsPolicy** *(string) --* The https policy to use for tracking open and click events. * **DeliveryOptions** *(dict) --* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. * **TlsPolicy** *(string) --* Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is "Require", messages are only delivered if a TLS connection can be established. If the value is "Optional", messages can be delivered in plain text if a TLS connection can't be established. * **SendingPoolName** *(string) --* The name of the dedicated IP pool to associate with the configuration set. * **MaxDeliverySeconds** *(integer) --* The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email. If specified, the value must greater than or equal to 300 seconds (5 minutes) and less than or equal to 50400 seconds (840 minutes). * **ReputationOptions** *(dict) --* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. * **ReputationMetricsEnabled** *(boolean) --* If "true", tracking of reputation metrics is enabled for the configuration set. If "false", tracking of reputation metrics is disabled for the configuration set. * **LastFreshStart** *(datetime) --* The date and time (in Unix time) when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start. * **SendingOptions** *(dict) --* An object that defines whether or not Amazon SES can send email that you send using the configuration set. * **SendingEnabled** *(boolean) --* If "true", email sending is enabled for the configuration set. If "false", email sending is disabled for the configuration set. * **Tags** *(list) --* An array of objects that define the tags (keys and values) that are associated with the configuration set. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **SuppressionOptions** *(dict) --* An object that contains information about the suppression list preferences for your account. * **SuppressedReasons** *(list) --* A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following: * "COMPLAINT" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. * **VdmOptions** *(dict) --* An object that contains information about the VDM preferences for your configuration set. * **DashboardOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Dashboard. * **EngagementMetrics** *(string) --* Specifies the status of your VDM engagement metrics collection. Can be one of the following: * "ENABLED" – Amazon SES enables engagement metrics for the configuration set. * "DISABLED" – Amazon SES disables engagement metrics for the configuration set. * **GuardianOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Guardian. * **OptimizedSharedDelivery** *(string) --* Specifies the status of your VDM optimized shared delivery. Can be one of the following: * "ENABLED" – Amazon SES enables optimized shared delivery for the configuration set. * "DISABLED" – Amazon SES disables optimized shared delivery for the configuration set. * **ArchivingOptions** *(dict) --* An object that defines the MailManager archive where sent emails are archived that you send using the configuration set. * **ArchiveArn** *(string) --* The Amazon Resource Name (ARN) of the MailManager archive where the Amazon SES API v2 will archive sent emails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_deliverability_test_report create_deliverability_test_report ********************************* SESV2.Client.create_deliverability_test_report(**kwargs) Create a new predictive inbox placement test. Predictive inbox placement tests can help you predict how your messages will be handled by various email providers around the world. When you perform a predictive inbox placement test, you provide a sample message that contains the content that you plan to send to your customers. Amazon SES then sends that message to special email addresses spread across several major email providers. After about 24 hours, the test is complete, and you can use the "GetDeliverabilityTestReport" operation to view the results of the test. See also: AWS API Documentation **Request Syntax** response = client.create_deliverability_test_report( ReportName='string', FromEmailAddress='string', Content={ 'Simple': { 'Subject': { 'Data': 'string', 'Charset': 'string' }, 'Body': { 'Text': { 'Data': 'string', 'Charset': 'string' }, 'Html': { 'Data': 'string', 'Charset': 'string' } }, 'Headers': [ { 'Name': 'string', 'Value': 'string' }, ], 'Attachments': [ { 'RawContent': b'bytes', 'ContentDisposition': 'ATTACHMENT'|'INLINE', 'FileName': 'string', 'ContentDescription': 'string', 'ContentId': 'string', 'ContentTransferEncoding': 'BASE64'|'QUOTED_PRINTABLE'|'SEVEN_BIT', 'ContentType': 'string' }, ] }, 'Raw': { 'Data': b'bytes' }, 'Template': { 'TemplateName': 'string', 'TemplateArn': 'string', 'TemplateContent': { 'Subject': 'string', 'Text': 'string', 'Html': 'string' }, 'TemplateData': 'string', 'Headers': [ { 'Name': 'string', 'Value': 'string' }, ], 'Attachments': [ { 'RawContent': b'bytes', 'ContentDisposition': 'ATTACHMENT'|'INLINE', 'FileName': 'string', 'ContentDescription': 'string', 'ContentId': 'string', 'ContentTransferEncoding': 'BASE64'|'QUOTED_PRINTABLE'|'SEVEN_BIT', 'ContentType': 'string' }, ] } }, Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ReportName** (*string*) -- A unique name that helps you to identify the predictive inbox placement test when you retrieve the results. * **FromEmailAddress** (*string*) -- **[REQUIRED]** The email address that the predictive inbox placement test email was sent from. * **Content** (*dict*) -- **[REQUIRED]** The HTML body of the message that you sent when you performed the predictive inbox placement test. * **Simple** *(dict) --* The simple email message. The message consists of a subject, message body and attachments list. * **Subject** *(dict) --* **[REQUIRED]** The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded- word syntax, as described in RFC 2047. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Body** *(dict) --* **[REQUIRED]** The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both. * **Text** *(dict) --* An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Html** *(dict) --* An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Headers** *(list) --* The list of message headers that will be added to the email message. * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **Attachments** *(list) --* The List of attachments to include in your email. All recipients will receive the same attachments. * *(dict) --* Contains metadata and attachment raw content. * **RawContent** *(bytes) --* **[REQUIRED]** The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * **ContentDisposition** *(string) --* A standard descriptor indicating how the attachment should be rendered in the email. Supported values: "ATTACHMENT" or "INLINE". * **FileName** *(string) --* **[REQUIRED]** The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide. * **ContentDescription** *(string) --* A brief description of the attachment content. * **ContentId** *(string) --* Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content. * **ContentTransferEncoding** *(string) --* Specifies how the attachment is encoded. Supported values: "BASE64", "QUOTED_PRINTABLE", "SEVEN_BIT". * **ContentType** *(string) --* The MIME type of the attachment. Note: Example: "application/pdf", "image/jpeg" * **Raw** *(dict) --* The raw email message. The message has to meet the following criteria: * The message has to contain a header and a body, separated by one blank line. * All of the required header fields must be present in the message. * Each part of a multipart MIME message must be formatted properly. * If you include attachments, they must be in a file format that the Amazon SES API v2 supports. * The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly. * The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321. * **Data** *(bytes) --* **[REQUIRED]** The raw email message. The message has to meet the following criteria: * The message has to contain a header and a body, separated by one blank line. * All of the required header fields must be present in the message. * Each part of a multipart MIME message must be formatted properly. * Attachments must be in a file format that the Amazon SES supports. * The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly. * The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321. * **Template** *(dict) --* The template to use for the email message. * **TemplateName** *(string) --* The name of the template. You will refer to this name when you send email using the "SendEmail" or "SendBulkEmail" operations. * **TemplateArn** *(string) --* The Amazon Resource Name (ARN) of the template. * **TemplateContent** *(dict) --* The content of the template. Note: Amazon SES supports only simple substitions when you send email using the "SendEmail" or "SendBulkEmail" operations and you provide the full template content in the request. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. * **TemplateData** *(string) --* An object that defines the values to use for message variables in the template. This object is a set of key- value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable. * **Headers** *(list) --* The list of message headers that will be added to the email message. * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **Attachments** *(list) --* The List of attachments to include in your email. All recipients will receive the same attachments. * *(dict) --* Contains metadata and attachment raw content. * **RawContent** *(bytes) --* **[REQUIRED]** The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * **ContentDisposition** *(string) --* A standard descriptor indicating how the attachment should be rendered in the email. Supported values: "ATTACHMENT" or "INLINE". * **FileName** *(string) --* **[REQUIRED]** The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide. * **ContentDescription** *(string) --* A brief description of the attachment content. * **ContentId** *(string) --* Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content. * **ContentTransferEncoding** *(string) --* Specifies how the attachment is encoded. Supported values: "BASE64", "QUOTED_PRINTABLE", "SEVEN_BIT". * **ContentType** *(string) --* The MIME type of the attachment. Note: Example: "application/pdf", "image/jpeg" * **Tags** (*list*) -- An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. Return type: dict Returns: **Response Syntax** { 'ReportId': 'string', 'DeliverabilityTestStatus': 'IN_PROGRESS'|'COMPLETED' } **Response Structure** * *(dict) --* Information about the predictive inbox placement test that you created. * **ReportId** *(string) --* A unique string that identifies the predictive inbox placement test. * **DeliverabilityTestStatus** *(string) --* The status of the predictive inbox placement test. If the status is "IN_PROGRESS", then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is "COMPLETE", then the test is finished, and you can use the "GetDeliverabilityTestReport" to view the results of the test. **Exceptions** * "SESV2.Client.exceptions.AccountSuspendedException" * "SESV2.Client.exceptions.SendingPausedException" * "SESV2.Client.exceptions.MessageRejected" * "SESV2.Client.exceptions.MailFromDomainNotVerifiedException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / get_email_identity_policies get_email_identity_policies *************************** SESV2.Client.get_email_identity_policies(**kwargs) Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time. Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.get_email_identity_policies( EmailIdentity='string' ) Parameters: **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. Return type: dict Returns: **Response Syntax** { 'Policies': { 'string': 'string' } } **Response Structure** * *(dict) --* Identity policies associated with email identity. * **Policies** *(dict) --* A map of policy names to policies. * *(string) --* The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores. * *(string) --* The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_email_identities list_email_identities ********************* SESV2.Client.list_email_identities(**kwargs) Returns a list of all of the email identities that are associated with your Amazon Web Services account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't. This operation returns identities that are associated with Amazon SES and Amazon Pinpoint. See also: AWS API Documentation **Request Syntax** response = client.list_email_identities( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListEmailIdentities" to indicate the position in the list of identities. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListEmailIdentities". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. Return type: dict Returns: **Response Syntax** { 'EmailIdentities': [ { 'IdentityType': 'EMAIL_ADDRESS'|'DOMAIN'|'MANAGED_DOMAIN', 'IdentityName': 'string', 'SendingEnabled': True|False, 'VerificationStatus': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE'|'NOT_STARTED' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of all of the identities that you've attempted to verify, regardless of whether or not those identities were successfully verified. * **EmailIdentities** *(list) --* An array that includes all of the email identities associated with your Amazon Web Services account. * *(dict) --* Information about an email identity. * **IdentityType** *(string) --* The email identity type. Note: the "MANAGED_DOMAIN" type is not supported for email identity types. * **IdentityName** *(string) --* The address or domain of the identity. * **SendingEnabled** *(boolean) --* Indicates whether or not you can send email from the identity. An *identity* is an email address or domain that you send email from. Before you can send email from an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from that identity. * **VerificationStatus** *(string) --* The verification status of the identity. The status can be one of the following: * "PENDING" – The verification process was initiated, but Amazon SES hasn't yet been able to verify the identity. * "SUCCESS" – The verification process completed successfully. * "FAILED" – The verification process failed. * "TEMPORARY_FAILURE" – A temporary issue is preventing Amazon SES from determining the verification status of the identity. * "NOT_STARTED" – The verification process hasn't been initiated for the identity. * **NextToken** *(string) --* A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to "ListEmailIdentities", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_contact_list create_contact_list ******************* SESV2.Client.create_contact_list(**kwargs) Creates a contact list. See also: AWS API Documentation **Request Syntax** response = client.create_contact_list( ContactListName='string', Topics=[ { 'TopicName': 'string', 'DisplayName': 'string', 'Description': 'string', 'DefaultSubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], Description='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. * **Topics** (*list*) -- An interest group, theme, or label within a list. A contact list can have multiple topics. * *(dict) --* An interest group, theme, or label within a list. Lists can have multiple topics. * **TopicName** *(string) --* **[REQUIRED]** The name of the topic. * **DisplayName** *(string) --* **[REQUIRED]** The name of the topic the contact will see. * **Description** *(string) --* A description of what the topic is about, which the contact will see. * **DefaultSubscriptionStatus** *(string) --* **[REQUIRED]** The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic. * **Description** (*string*) -- A description of what the contact list is about. * **Tags** (*list*) -- The tags associated with a contact list. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.LimitExceededException" SESV2 / Client / create_custom_verification_email_template create_custom_verification_email_template ***************************************** SESV2.Client.create_custom_verification_email_template(**kwargs) Creates a new custom verification email template. For more information about custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.create_custom_verification_email_template( TemplateName='string', FromEmailAddress='string', TemplateSubject='string', TemplateContent='string', SuccessRedirectionURL='string', FailureRedirectionURL='string' ) Parameters: * **TemplateName** (*string*) -- **[REQUIRED]** The name of the custom verification email template. * **FromEmailAddress** (*string*) -- **[REQUIRED]** The email address that the custom verification email is sent from. * **TemplateSubject** (*string*) -- **[REQUIRED]** The subject line of the custom verification email. * **TemplateContent** (*string*) -- **[REQUIRED]** The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom verification email frequently asked questions in the *Amazon SES Developer Guide*. * **SuccessRedirectionURL** (*string*) -- **[REQUIRED]** The URL that the recipient of the verification email is sent to if his or her address is successfully verified. * **FailureRedirectionURL** (*string*) -- **[REQUIRED]** The URL that the recipient of the verification email is sent to if his or her address is not successfully verified. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" SESV2 / Client / get_custom_verification_email_template get_custom_verification_email_template ************************************** SESV2.Client.get_custom_verification_email_template(**kwargs) Returns the custom email verification template for the template name you specify. For more information about custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.get_custom_verification_email_template( TemplateName='string' ) Parameters: **TemplateName** (*string*) -- **[REQUIRED]** The name of the custom verification email template that you want to retrieve. Return type: dict Returns: **Response Syntax** { 'TemplateName': 'string', 'FromEmailAddress': 'string', 'TemplateSubject': 'string', 'TemplateContent': 'string', 'SuccessRedirectionURL': 'string', 'FailureRedirectionURL': 'string' } **Response Structure** * *(dict) --* The following elements are returned by the service. * **TemplateName** *(string) --* The name of the custom verification email template. * **FromEmailAddress** *(string) --* The email address that the custom verification email is sent from. * **TemplateSubject** *(string) --* The subject line of the custom verification email. * **TemplateContent** *(string) --* The content of the custom verification email. * **SuccessRedirectionURL** *(string) --* The URL that the recipient of the verification email is sent to if his or her address is successfully verified. * **FailureRedirectionURL** *(string) --* The URL that the recipient of the verification email is sent to if his or her address is not successfully verified. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_dedicated_ips get_dedicated_ips ***************** SESV2.Client.get_dedicated_ips(**kwargs) List the dedicated IP addresses that are associated with your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.get_dedicated_ips( PoolName='string', NextToken='string', PageSize=123 ) Parameters: * **PoolName** (*string*) -- The name of the IP pool that the dedicated IP address is associated with. * **NextToken** (*string*) -- A token returned from a previous call to "GetDedicatedIps" to indicate the position of the dedicated IP pool in the list of IP pools. * **PageSize** (*integer*) -- The number of results to show in a single call to "GetDedicatedIpsRequest". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'DedicatedIps': [ { 'Ip': 'string', 'WarmupStatus': 'IN_PROGRESS'|'DONE'|'NOT_APPLICABLE', 'WarmupPercentage': 123, 'PoolName': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Information about the dedicated IP addresses that are associated with your Amazon Web Services account. * **DedicatedIps** *(list) --* A list of dedicated IP addresses that are associated with your Amazon Web Services account. * *(dict) --* Contains information about a dedicated IP address that is associated with your Amazon SES account. To learn more about requesting dedicated IP addresses, see Requesting and Relinquishing Dedicated IP Addresses in the *Amazon SES Developer Guide*. * **Ip** *(string) --* An IPv4 address. * **WarmupStatus** *(string) --* The warm-up status of a dedicated IP address. The status can have one of the following values: * "IN_PROGRESS" – The IP address isn't ready to use because the dedicated IP warm-up process is ongoing. * "DONE" – The dedicated IP warm-up process is complete, and the IP address is ready to use. * "NOT_APPLICABLE" – The warm-up status doesn't apply to this IP address. This status is used for IP addresses in managed dedicated IP pools, where Amazon SES automatically handles the warm-up process. * **WarmupPercentage** *(integer) --* Indicates the progress of your dedicated IP warm-up: * "0-100" – For standard dedicated IP addresses, this shows the warm-up completion percentage. A value of 100 means the IP address is fully warmed up and ready for use. * "-1" – Appears for IP addresses in managed dedicated pools where Amazon SES automatically handles the warm- up process, making the percentage not applicable. * **PoolName** *(string) --* The name of the dedicated IP pool that the IP address is associated with. * **NextToken** *(string) --* A token that indicates that there are additional dedicated IP addresses to list. To view additional addresses, issue another request to "GetDedicatedIps", passing this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_contact_list get_contact_list **************** SESV2.Client.get_contact_list(**kwargs) Returns contact list metadata. It does not return any information about the contacts present in the list. See also: AWS API Documentation **Request Syntax** response = client.get_contact_list( ContactListName='string' ) Parameters: **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. Return type: dict Returns: **Response Syntax** { 'ContactListName': 'string', 'Topics': [ { 'TopicName': 'string', 'DisplayName': 'string', 'Description': 'string', 'DefaultSubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], 'Description': 'string', 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1), 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **ContactListName** *(string) --* The name of the contact list. * **Topics** *(list) --* An interest group, theme, or label within a list. A contact list can have multiple topics. * *(dict) --* An interest group, theme, or label within a list. Lists can have multiple topics. * **TopicName** *(string) --* The name of the topic. * **DisplayName** *(string) --* The name of the topic the contact will see. * **Description** *(string) --* A description of what the topic is about, which the contact will see. * **DefaultSubscriptionStatus** *(string) --* The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic. * **Description** *(string) --* A description of what the contact list is about. * **CreatedTimestamp** *(datetime) --* A timestamp noting when the contact list was created. * **LastUpdatedTimestamp** *(datetime) --* A timestamp noting the last time the contact list was updated. * **Tags** *(list) --* The tags associated with a contact list. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_tenant_resource_association create_tenant_resource_association ********************************** SESV2.Client.create_tenant_resource_association(**kwargs) Associate a resource with a tenant. *Resources* can be email identities, configuration sets, or email templates. When you associate a resource with a tenant, you can use that resource when sending emails on behalf of that tenant. A single resource can be associated with multiple tenants, allowing for resource sharing across different tenants while maintaining isolation in email sending operations. See also: AWS API Documentation **Request Syntax** response = client.create_tenant_resource_association( TenantName='string', ResourceArn='string' ) Parameters: * **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to associate the resource with. * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to associate with the tenant. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_tags_for_resource list_tags_for_resource ********************** SESV2.Client.list_tags_for_resource(**kwargs) Retrieve a list of the tags (keys and values) that are associated with a specified resource. A *tag* is a label that you optionally define and associate with a resource. Each tag consists of a required *tag key* and an optional associated *tag value*. A tag key is a general label that acts as a category for more specific tag values. A tag value acts as a descriptor within a tag key. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( ResourceArn='string' ) Parameters: **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to retrieve tag information for. Return type: dict Returns: **Response Syntax** { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **Tags** *(list) --* An array that lists all the tags that are associated with the resource. Each tag consists of a required tag key ( "Key") and an associated tag value ( "Value") * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / list_import_jobs list_import_jobs **************** SESV2.Client.list_import_jobs(**kwargs) Lists all of the import jobs. See also: AWS API Documentation **Request Syntax** response = client.list_import_jobs( ImportDestinationType='SUPPRESSION_LIST'|'CONTACT_LIST', NextToken='string', PageSize=123 ) Parameters: * **ImportDestinationType** (*string*) -- The destination of the import job, which can be used to list import jobs that have a certain "ImportDestinationType". * **NextToken** (*string*) -- A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to "ListImportJobs" with the same parameters to retrieve the next page of import jobs. * **PageSize** (*integer*) -- Maximum number of import jobs to return at once. Use this parameter to paginate results. If additional import jobs exist beyond the specified limit, the "NextToken" element is sent in the response. Use the "NextToken" value in subsequent requests to retrieve additional addresses. Return type: dict Returns: **Response Syntax** { 'ImportJobs': [ { 'JobId': 'string', 'ImportDestination': { 'SuppressionListDestination': { 'SuppressionListImportAction': 'DELETE'|'PUT' }, 'ContactListDestination': { 'ContactListName': 'string', 'ContactListImportAction': 'DELETE'|'PUT' } }, 'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED', 'CreatedTimestamp': datetime(2015, 1, 1), 'ProcessedRecordsCount': 123, 'FailedRecordsCount': 123 }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **ImportJobs** *(list) --* A list of the import job summaries. * *(dict) --* A summary of the import job. * **JobId** *(string) --* A string that represents a job ID. * **ImportDestination** *(dict) --* An object that contains details about the resource destination the import job is going to target. * **SuppressionListDestination** *(dict) --* An object that contains the action of the import job towards suppression list. * **SuppressionListImportAction** *(string) --* The type of action to perform on the address. The following are possible values: * PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the suppression list. * **ContactListDestination** *(dict) --* An object that contains the action of the import job towards a contact list. * **ContactListName** *(string) --* The name of the contact list. * **ContactListImportAction** *(string) --* >The type of action to perform on the addresses. The following are the possible values: * PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the contact list. * **JobStatus** *(string) --* The status of a job. * "CREATED" – Job has just been created. * "PROCESSING" – Job is processing. * "ERROR" – An error occurred during processing. * "COMPLETED" – Job has completed processing successfully. * **CreatedTimestamp** *(datetime) --* The date and time when the import job was created. * **ProcessedRecordsCount** *(integer) --* The current number of records processed. * **FailedRecordsCount** *(integer) --* The number of records that failed processing because of invalid input or other reasons. * **NextToken** *(string) --* A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to "ListImportJobs" with the same parameters to retrieve the next page of import jobs. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_configuration_set_vdm_options put_configuration_set_vdm_options ********************************* SESV2.Client.put_configuration_set_vdm_options(**kwargs) Specify VDM preferences for email that you send using the configuration set. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_vdm_options( ConfigurationSetName='string', VdmOptions={ 'DashboardOptions': { 'EngagementMetrics': 'ENABLED'|'DISABLED' }, 'GuardianOptions': { 'OptimizedSharedDelivery': 'ENABLED'|'DISABLED' } } ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. * **VdmOptions** (*dict*) -- The VDM options to apply to the configuration set. * **DashboardOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Dashboard. * **EngagementMetrics** *(string) --* Specifies the status of your VDM engagement metrics collection. Can be one of the following: * "ENABLED" – Amazon SES enables engagement metrics for the configuration set. * "DISABLED" – Amazon SES disables engagement metrics for the configuration set. * **GuardianOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Guardian. * **OptimizedSharedDelivery** *(string) --* Specifies the status of your VDM optimized shared delivery. Can be one of the following: * "ENABLED" – Amazon SES enables optimized shared delivery for the configuration set. * "DISABLED" – Amazon SES disables optimized shared delivery for the configuration set. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_export_job get_export_job ************** SESV2.Client.get_export_job(**kwargs) Provides information about an export job. See also: AWS API Documentation **Request Syntax** response = client.get_export_job( JobId='string' ) Parameters: **JobId** (*string*) -- **[REQUIRED]** The export job ID. Return type: dict Returns: **Response Syntax** { 'JobId': 'string', 'ExportSourceType': 'METRICS_DATA'|'MESSAGE_INSIGHTS', 'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED', 'ExportDestination': { 'DataFormat': 'CSV'|'JSON', 'S3Url': 'string' }, 'ExportDataSource': { 'MetricsDataSource': { 'Dimensions': { 'string': [ 'string', ] }, 'Namespace': 'VDM', 'Metrics': [ { 'Name': 'SEND'|'COMPLAINT'|'PERMANENT_BOUNCE'|'TRANSIENT_BOUNCE'|'OPEN'|'CLICK'|'DELIVERY'|'DELIVERY_OPEN'|'DELIVERY_CLICK'|'DELIVERY_COMPLAINT', 'Aggregation': 'RATE'|'VOLUME' }, ], 'StartDate': datetime(2015, 1, 1), 'EndDate': datetime(2015, 1, 1) }, 'MessageInsightsDataSource': { 'StartDate': datetime(2015, 1, 1), 'EndDate': datetime(2015, 1, 1), 'Include': { 'FromEmailAddress': [ 'string', ], 'Destination': [ 'string', ], 'Subject': [ 'string', ], 'Isp': [ 'string', ], 'LastDeliveryEvent': [ 'SEND'|'DELIVERY'|'TRANSIENT_BOUNCE'|'PERMANENT_BOUNCE'|'UNDETERMINED_BOUNCE'|'COMPLAINT', ], 'LastEngagementEvent': [ 'OPEN'|'CLICK', ] }, 'Exclude': { 'FromEmailAddress': [ 'string', ], 'Destination': [ 'string', ], 'Subject': [ 'string', ], 'Isp': [ 'string', ], 'LastDeliveryEvent': [ 'SEND'|'DELIVERY'|'TRANSIENT_BOUNCE'|'PERMANENT_BOUNCE'|'UNDETERMINED_BOUNCE'|'COMPLAINT', ], 'LastEngagementEvent': [ 'OPEN'|'CLICK', ] }, 'MaxResults': 123 } }, 'CreatedTimestamp': datetime(2015, 1, 1), 'CompletedTimestamp': datetime(2015, 1, 1), 'FailureInfo': { 'FailedRecordsS3Url': 'string', 'ErrorMessage': 'string' }, 'Statistics': { 'ProcessedRecordsCount': 123, 'ExportedRecordsCount': 123 } } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **JobId** *(string) --* The export job ID. * **ExportSourceType** *(string) --* The type of source of the export job. * **JobStatus** *(string) --* The status of the export job. * **ExportDestination** *(dict) --* The destination of the export job. * **DataFormat** *(string) --* The data format of the final export job file, can be one of the following: * "CSV" - A comma-separated values file. * "JSON" - A Json file. * **S3Url** *(string) --* An Amazon S3 pre-signed URL that points to the generated export file. * **ExportDataSource** *(dict) --* The data source of the export job. * **MetricsDataSource** *(dict) --* An object that contains details about the data source for the metrics export. * **Dimensions** *(dict) --* An object that contains a mapping between a "MetricDimensionName" and "MetricDimensionValue" to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones. * *(string) --* The "BatchGetMetricDataQuery" dimension name. This can be one of the following: * "EMAIL_IDENTITY" – The email identity used when sending messages. * "CONFIGURATION_SET" – The configuration set used when sending messages (if one was used). * "ISP" – The recipient ISP (e.g. "Gmail", "Yahoo", etc.). * *(list) --* * *(string) --* A list of values associated with the "MetricDimensionName" to filter metrics by. Can either be "*" as a wildcard for all values or a list of up to 10 specific values. If one "Dimension" has the "*" value, other dimensions can only contain one value. * **Namespace** *(string) --* The metrics namespace - e.g., "VDM". * **Metrics** *(list) --* A list of "ExportMetric" objects to export. * *(dict) --* An object that contains a mapping between a "Metric" and "MetricAggregation". * **Name** *(string) --* The metric to export, can be one of the following: * "SEND" - Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient. * "COMPLAINT" - Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account- level suppression list (if enabled), and those for emails addressed to more than one recipient * "PERMANENT_BOUNCE" - Permanent bounces - i.e., feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account- level suppression list (if enabled), and those for emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Transient bounces - i.e., feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient. * "OPEN" - Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * "DELIVERY" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient. * "DELIVERY_OPEN" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers. * "DELIVERY_CLICK" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers. * "DELIVERY_COMPLAINT" - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement. * **Aggregation** *(string) --* The aggregation to apply to a metric, can be one of the following: * "VOLUME" - The volume of events for this metric. * "RATE" - The rate for this metric relative to the "SEND" metric volume. * **StartDate** *(datetime) --* Represents the start date for the export interval as a timestamp. * **EndDate** *(datetime) --* Represents the end date for the export interval as a timestamp. * **MessageInsightsDataSource** *(dict) --* An object that contains filters applied when performing the Message Insights export. * **StartDate** *(datetime) --* Represents the start date for the export interval as a timestamp. The start date is inclusive. * **EndDate** *(datetime) --* Represents the end date for the export interval as a timestamp. The end date is inclusive. * **Include** *(dict) --* Filters for results to be included in the export file. * **FromEmailAddress** *(list) --* The from address used to send the message. * *(string) --* * **Destination** *(list) --* The recipient's email address. * *(string) --* * **Subject** *(list) --* The subject line of the message. * *(string) --* * **Isp** *(list) --* The recipient's ISP (e.g., "Gmail", "Yahoo", etc.). * *(string) --* * **LastDeliveryEvent** *(list) --* The last delivery-related event for the email, where the ordering is as follows: "SEND" < "BOUNCE" < "DELIVERY" < "COMPLAINT". * *(string) --* The type of delivery events: * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator and emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Feedback received for delivery failures excluding issues with non- existent mailboxes. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. * "PERMANENT_BOUNCE" - Feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * "UNDETERMINED_BOUNCE" - SES was unable to determine the bounce reason. * "COMPLAINT" - Complaint received for the email. This excludes complaints from the mailbox simulator, those originating from your account- level suppression list (if enabled), and those from emails addressed to more than one recipient. * **LastEngagementEvent** *(list) --* The last engagement-related event for the email, where the ordering is as follows: "OPEN" < "CLICK". Engagement events are only available if Engagement tracking is enabled. * *(string) --* The type of delivery events: * "OPEN" - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * **Exclude** *(dict) --* Filters for results to be excluded from the export file. * **FromEmailAddress** *(list) --* The from address used to send the message. * *(string) --* * **Destination** *(list) --* The recipient's email address. * *(string) --* * **Subject** *(list) --* The subject line of the message. * *(string) --* * **Isp** *(list) --* The recipient's ISP (e.g., "Gmail", "Yahoo", etc.). * *(string) --* * **LastDeliveryEvent** *(list) --* The last delivery-related event for the email, where the ordering is as follows: "SEND" < "BOUNCE" < "DELIVERY" < "COMPLAINT". * *(string) --* The type of delivery events: * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator and emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" - Feedback received for delivery failures excluding issues with non- existent mailboxes. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. * "PERMANENT_BOUNCE" - Feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * "UNDETERMINED_BOUNCE" - SES was unable to determine the bounce reason. * "COMPLAINT" - Complaint received for the email. This excludes complaints from the mailbox simulator, those originating from your account- level suppression list (if enabled), and those from emails addressed to more than one recipient. * **LastEngagementEvent** *(list) --* The last engagement-related event for the email, where the ordering is as follows: "OPEN" < "CLICK". Engagement events are only available if Engagement tracking is enabled. * *(string) --* The type of delivery events: * "OPEN" - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * **MaxResults** *(integer) --* The maximum number of results. * **CreatedTimestamp** *(datetime) --* The timestamp of when the export job was created. * **CompletedTimestamp** *(datetime) --* The timestamp of when the export job was completed. * **FailureInfo** *(dict) --* The failure details about an export job. * **FailedRecordsS3Url** *(string) --* An Amazon S3 pre-signed URL that contains all the failed records and related information. * **ErrorMessage** *(string) --* A message about why the job failed. * **Statistics** *(dict) --* The statistics about the export job. * **ProcessedRecordsCount** *(integer) --* The number of records that were processed to generate the final export file. * **ExportedRecordsCount** *(integer) --* The number of records that were exported to the final export file. This value might not be available for all export source types **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / put_configuration_set_delivery_options put_configuration_set_delivery_options ************************************** SESV2.Client.put_configuration_set_delivery_options(**kwargs) Associate a configuration set with a dedicated IP pool. You can use dedicated IP pools to create groups of dedicated IP addresses for sending specific types of email. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_delivery_options( ConfigurationSetName='string', TlsPolicy='REQUIRE'|'OPTIONAL', SendingPoolName='string', MaxDeliverySeconds=123 ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set to associate with a dedicated IP pool. * **TlsPolicy** (*string*) -- Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is "Require", messages are only delivered if a TLS connection can be established. If the value is "Optional", messages can be delivered in plain text if a TLS connection can't be established. * **SendingPoolName** (*string*) -- The name of the dedicated IP pool to associate with the configuration set. * **MaxDeliverySeconds** (*integer*) -- The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email. If specified, the value must greater than or equal to 300 seconds (5 minutes) and less than or equal to 50400 seconds (840 minutes). Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / untag_resource untag_resource ************** SESV2.Client.untag_resource(**kwargs) Remove one or more tags (keys and values) from a specified resource. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to remove one or more tags from. * **TagKeys** (*list*) -- **[REQUIRED]** The tags (tag keys) that you want to remove from the resource. When you specify a tag key, the action removes both that key and its associated tag value. To remove more than one tag from the resource, append the "TagKeys" parameter and argument for each additional tag to remove, separated by an ampersand. For example: "/v2/email/ta gs?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2" * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / get_message_insights get_message_insights ******************** SESV2.Client.get_message_insights(**kwargs) Provides information about a specific message, including the from address, the subject, the recipient address, email tags, as well as events associated with the message. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.get_message_insights( MessageId='string' ) Parameters: **MessageId** (*string*) -- **[REQUIRED]** A "MessageId" is a unique identifier for a message, and is returned when sending emails through Amazon SES. Return type: dict Returns: **Response Syntax** { 'MessageId': 'string', 'FromEmailAddress': 'string', 'Subject': 'string', 'EmailTags': [ { 'Name': 'string', 'Value': 'string' }, ], 'Insights': [ { 'Destination': 'string', 'Isp': 'string', 'Events': [ { 'Timestamp': datetime(2015, 1, 1), 'Type': 'SEND'|'REJECT'|'BOUNCE'|'COMPLAINT'|'DELIVERY'|'OPEN'|'CLICK'|'RENDERING_FAILURE'|'DELIVERY_DELAY'|'SUBSCRIPTION', 'Details': { 'Bounce': { 'BounceType': 'UNDETERMINED'|'TRANSIENT'|'PERMANENT', 'BounceSubType': 'string', 'DiagnosticCode': 'string' }, 'Complaint': { 'ComplaintSubType': 'string', 'ComplaintFeedbackType': 'string' } } }, ] }, ] } **Response Structure** * *(dict) --* Information about a message. * **MessageId** *(string) --* A unique identifier for the message. * **FromEmailAddress** *(string) --* The from address used to send the message. * **Subject** *(string) --* The subject line of the message. * **EmailTags** *(list) --* A list of tags, in the form of name/value pairs, that were applied to the email you sent, along with Amazon SES Auto- Tags. * *(dict) --* Contains the name and value of a tag that you apply to an email. You can use message tags when you publish email sending events. * **Name** *(string) --* The name of the message tag. The message tag name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **Value** *(string) --* The value of the message tag. The message tag value has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **Insights** *(list) --* A set of insights associated with the message. * *(dict) --* An email's insights contain metadata and delivery information about a specific email. * **Destination** *(string) --* The recipient of the email. * **Isp** *(string) --* The recipient's ISP (e.g., "Gmail", "Yahoo", etc.). * **Events** *(list) --* A list of events associated with the sent email. * *(dict) --* An object containing details about a specific event. * **Timestamp** *(datetime) --* The timestamp of the event. * **Type** *(string) --* The type of event: * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator, and those from emails addressed to more than one recipient. * "BOUNCE" - Feedback received for delivery failures. Additional details about the bounce are provided in the "Details" object. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. * "COMPLAINT" - Complaint received for the email. Additional details about the complaint are provided in the "Details" object. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. * "OPEN" - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * **Details** *(dict) --* Details about bounce or complaint events. * **Bounce** *(dict) --* Information about a "Bounce" event. * **BounceType** *(string) --* The type of the bounce, as determined by SES. Can be one of "UNDETERMINED", "TRANSIENT", or "PERMANENT" * **BounceSubType** *(string) --* The subtype of the bounce, as determined by SES. * **DiagnosticCode** *(string) --* The status code issued by the reporting Message Transfer Authority (MTA). This field only appears if a delivery status notification (DSN) was attached to the bounce and the "Diagnostic- Code" was provided in the DSN. * **Complaint** *(dict) --* Information about a "Complaint" event. * **ComplaintSubType** *(string) --* Can either be "null" or "OnAccountSuppressionList". If the value is "OnAccountSuppressionList", SES accepted the message, but didn't attempt to send it because it was on the account-level suppression list. * **ComplaintFeedbackType** *(string) --* The value of the "Feedback-Type" field from the feedback report received from the ISP. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_contact create_contact ************** SESV2.Client.create_contact(**kwargs) Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list. See also: AWS API Documentation **Request Syntax** response = client.create_contact( ContactListName='string', EmailAddress='string', TopicPreferences=[ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], UnsubscribeAll=True|False, AttributesData='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list to which the contact should be added. * **EmailAddress** (*string*) -- **[REQUIRED]** The contact's email address. * **TopicPreferences** (*list*) -- The contact's preferences for being opted-in to or opted-out of topics. * *(dict) --* The contact's preference for being opted-in to or opted-out of a topic. * **TopicName** *(string) --* **[REQUIRED]** The name of the topic. * **SubscriptionStatus** *(string) --* **[REQUIRED]** The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **UnsubscribeAll** (*boolean*) -- A boolean value status noting if the contact is unsubscribed from all contact list topics. * **AttributesData** (*string*) -- The attribute data attached to a contact. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.AlreadyExistsException" SESV2 / Client / get_email_template get_email_template ****************** SESV2.Client.get_email_template(**kwargs) Displays the template object (which includes the subject line, HTML part and text part) for the template you specify. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.get_email_template( TemplateName='string' ) Parameters: **TemplateName** (*string*) -- **[REQUIRED]** The name of the template. Return type: dict Returns: **Response Syntax** { 'TemplateName': 'string', 'TemplateContent': { 'Subject': 'string', 'Text': 'string', 'Html': 'string' } } **Response Structure** * *(dict) --* The following element is returned by the service. * **TemplateName** *(string) --* The name of the template. * **TemplateContent** *(dict) --* The content of the email template, composed of a subject line, an HTML part, and a text-only part. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_configuration_set_tracking_options put_configuration_set_tracking_options ************************************** SESV2.Client.put_configuration_set_tracking_options(**kwargs) Specify a custom domain to use for open and click tracking elements in email that you send. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_tracking_options( ConfigurationSetName='string', CustomRedirectDomain='string', HttpsPolicy='REQUIRE'|'REQUIRE_OPEN_ONLY'|'OPTIONAL' ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. * **CustomRedirectDomain** (*string*) -- The domain to use to track open and click events. * **HttpsPolicy** (*string*) -- The https policy to use for tracking open and click events. If the value is OPTIONAL or HttpsPolicy is not specified, the open trackers use HTTP and click tracker use the original protocol of the link. If the value is REQUIRE, both open and click tracker uses HTTPS and if the value is REQUIRE_OPEN_ONLY open tracker uses HTTPS and link tracker is same as original protocol of the link. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / update_reputation_entity_customer_managed_status update_reputation_entity_customer_managed_status ************************************************ SESV2.Client.update_reputation_entity_customer_managed_status(**kwargs) Update the customer-managed sending status for a reputation entity. This allows you to enable, disable, or reinstate sending for the entity. The customer-managed status works in conjunction with the Amazon Web Services Amazon SES-managed status to determine the overall sending capability. When you update the customer-managed status, the Amazon Web Services Amazon SES-managed status remains unchanged. If Amazon Web Services Amazon SES has disabled the entity, it will not be allowed to send regardless of the customer- managed status setting. When you reinstate an entity through the customer-managed status, it can continue sending only if the Amazon Web Services Amazon SES-managed status also permits sending, even if there are active reputation findings, until the findings are resolved or new violations occur. See also: AWS API Documentation **Request Syntax** response = client.update_reputation_entity_customer_managed_status( ReputationEntityType='RESOURCE', ReputationEntityReference='string', SendingStatus='ENABLED'|'REINSTATED'|'DISABLED' ) Parameters: * **ReputationEntityType** (*string*) -- **[REQUIRED]** The type of reputation entity. Currently, only "RESOURCE" type entities are supported. * **ReputationEntityReference** (*string*) -- **[REQUIRED]** The unique identifier for the reputation entity. For resource- type entities, this is the Amazon Resource Name (ARN) of the resource. * **SendingStatus** (*string*) -- **[REQUIRED]** The new customer-managed sending status for the reputation entity. This can be one of the following: * "ENABLED" – Allow sending for this entity. * "DISABLED" – Prevent sending for this entity. * "REINSTATED" – Allow sending even if there are active reputation findings. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConflictException" SESV2 / Client / get_suppressed_destination get_suppressed_destination ************************** SESV2.Client.get_suppressed_destination(**kwargs) Retrieves information about a specific email address that's on the suppression list for your account. See also: AWS API Documentation **Request Syntax** response = client.get_suppressed_destination( EmailAddress='string' ) Parameters: **EmailAddress** (*string*) -- **[REQUIRED]** The email address that's on the account suppression list. Return type: dict Returns: **Response Syntax** { 'SuppressedDestination': { 'EmailAddress': 'string', 'Reason': 'BOUNCE'|'COMPLAINT', 'LastUpdateTime': datetime(2015, 1, 1), 'Attributes': { 'MessageId': 'string', 'FeedbackId': 'string' } } } **Response Structure** * *(dict) --* Information about the suppressed email address. * **SuppressedDestination** *(dict) --* An object containing information about the suppressed email address. * **EmailAddress** *(string) --* The email address that is on the suppression list for your account. * **Reason** *(string) --* The reason that the address was added to the suppression list for your account. * **LastUpdateTime** *(datetime) --* The date and time when the suppressed destination was last updated, shown in Unix time format. * **Attributes** *(dict) --* An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account. * **MessageId** *(string) --* The unique identifier of the email message that caused the email address to be added to the suppression list for your account. * **FeedbackId** *(string) --* A unique identifier that's generated when an email address is added to the suppression list for your account. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / get_multi_region_endpoint get_multi_region_endpoint ************************* SESV2.Client.get_multi_region_endpoint(**kwargs) Displays the multi-region endpoint (global-endpoint) configuration. Only multi-region endpoints (global-endpoints) whose primary region is the AWS-Region where operation is executed can be displayed. See also: AWS API Documentation **Request Syntax** response = client.get_multi_region_endpoint( EndpointName='string' ) Parameters: **EndpointName** (*string*) -- **[REQUIRED]** The name of the multi-region endpoint (global-endpoint). Return type: dict Returns: **Response Syntax** { 'EndpointName': 'string', 'EndpointId': 'string', 'Routes': [ { 'Region': 'string' }, ], 'Status': 'CREATING'|'READY'|'FAILED'|'DELETING', 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **EndpointName** *(string) --* The name of the multi-region endpoint (global-endpoint). * **EndpointId** *(string) --* The ID of the multi-region endpoint (global-endpoint). * **Routes** *(list) --* Contains routes information for the multi-region endpoint (global-endpoint). * *(dict) --* An object which contains an AWS-Region and routing status. * **Region** *(string) --* The name of an AWS-Region. * **Status** *(string) --* The status of the multi-region endpoint (global-endpoint). * "CREATING" – The resource is being provisioned. * "READY" – The resource is ready to use. * "FAILED" – The resource failed to be provisioned. * "DELETING" – The resource is being deleted as requested. * **CreatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global- endpoint) was created. * **LastUpdatedTimestamp** *(datetime) --* The time stamp of when the multi-region endpoint (global- endpoint) was last updated. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_tenant_resources list_tenant_resources ********************* SESV2.Client.list_tenant_resources(**kwargs) List all resources associated with a specific tenant. This operation returns a list of resources (email identities, configuration sets, or email templates) that are associated with the specified tenant. You can optionally filter the results by resource type. See also: AWS API Documentation **Request Syntax** response = client.list_tenant_resources( TenantName='string', Filter={ 'string': 'string' }, PageSize=123, NextToken='string' ) Parameters: * **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to list resources for. * **Filter** (*dict*) -- A map of filter keys and values for filtering the list of tenant resources. Currently, the only supported filter key is "RESOURCE_TYPE". * *(string) --* The key used to filter tenant resources. Currently, the only supported filter key is "RESOURCE_TYPE". * *(string) --* The value used to filter tenant resources. When filtering by "RESOURCE_TYPE", valid values are "EMAIL_IDENTITY", "CONFIGURATION_SET", or "EMAIL_TEMPLATE". * **PageSize** (*integer*) -- The number of results to show in a single call to "ListTenantResources". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. * **NextToken** (*string*) -- A token returned from a previous call to "ListTenantResources" to indicate the position in the list of tenant resources. Return type: dict Returns: **Response Syntax** { 'TenantResources': [ { 'ResourceType': 'EMAIL_IDENTITY'|'CONFIGURATION_SET'|'EMAIL_TEMPLATE', 'ResourceArn': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Information about resources associated with a specific tenant. * **TenantResources** *(list) --* An array that contains information about each resource associated with the tenant. * *(dict) --* A structure that contains information about a resource associated with a tenant. * **ResourceType** *(string) --* The type of resource associated with the tenant. Valid values are "EMAIL_IDENTITY", "CONFIGURATION_SET", or "EMAIL_TEMPLATE". * **ResourceArn** *(string) --* The Amazon Resource Name (ARN) of the resource associated with the tenant. * **NextToken** *(string) --* A token that indicates that there are additional resources to list. To view additional resources, issue another request to "ListTenantResources", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_dedicated_ip_warmup_attributes put_dedicated_ip_warmup_attributes ********************************** SESV2.Client.put_dedicated_ip_warmup_attributes(**kwargs) See also: AWS API Documentation **Request Syntax** response = client.put_dedicated_ip_warmup_attributes( Ip='string', WarmupPercentage=123 ) Parameters: * **Ip** (*string*) -- **[REQUIRED]** The dedicated IP address that you want to update the warm-up attributes for. * **WarmupPercentage** (*integer*) -- **[REQUIRED]** The warm-up percentage that you want to associate with the dedicated IP address. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_waiter get_waiter ********** SESV2.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" SESV2 / Client / get_deliverability_dashboard_options get_deliverability_dashboard_options ************************************ SESV2.Client.get_deliverability_dashboard_options() Retrieve information about the status of the Deliverability dashboard for your account. When the Deliverability dashboard is enabled, you gain access to reputation, deliverability, and other metrics for the domains that you use to send email. You also gain the ability to perform predictive inbox placement tests. When you use the Deliverability dashboard, you pay a monthly subscription charge, in addition to any other fees that you accrue by using Amazon SES and other Amazon Web Services services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing. See also: AWS API Documentation **Request Syntax** response = client.get_deliverability_dashboard_options() Return type: dict Returns: **Response Syntax** { 'DashboardEnabled': True|False, 'SubscriptionExpiryDate': datetime(2015, 1, 1), 'AccountStatus': 'ACTIVE'|'PENDING_EXPIRATION'|'DISABLED', 'ActiveSubscribedDomains': [ { 'Domain': 'string', 'SubscriptionStartDate': datetime(2015, 1, 1), 'InboxPlacementTrackingOption': { 'Global': True|False, 'TrackedIsps': [ 'string', ] } }, ], 'PendingExpirationSubscribedDomains': [ { 'Domain': 'string', 'SubscriptionStartDate': datetime(2015, 1, 1), 'InboxPlacementTrackingOption': { 'Global': True|False, 'TrackedIsps': [ 'string', ] } }, ] } **Response Structure** * *(dict) --* An object that shows the status of the Deliverability dashboard. * **DashboardEnabled** *(boolean) --* Specifies whether the Deliverability dashboard is enabled. If this value is "true", the dashboard is enabled. * **SubscriptionExpiryDate** *(datetime) --* The date when your current subscription to the Deliverability dashboard is scheduled to expire, if your subscription is scheduled to expire at the end of the current calendar month. This value is null if you have an active subscription that isn’t due to expire at the end of the month. * **AccountStatus** *(string) --* The current status of your Deliverability dashboard subscription. If this value is "PENDING_EXPIRATION", your subscription is scheduled to expire at the end of the current calendar month. * **ActiveSubscribedDomains** *(list) --* An array of objects, one for each verified domain that you use to send email and currently has an active Deliverability dashboard subscription that isn’t scheduled to expire at the end of the current calendar month. * *(dict) --* An object that contains information about the Deliverability dashboard subscription for a verified domain that you use to send email and currently has an active Deliverability dashboard subscription. If a Deliverability dashboard subscription is active for a domain, you gain access to reputation, inbox placement, and other metrics for the domain. * **Domain** *(string) --* A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription. * **SubscriptionStartDate** *(datetime) --* The date when you enabled the Deliverability dashboard for the domain. * **InboxPlacementTrackingOption** *(dict) --* An object that contains information about the inbox placement data settings for the domain. * **Global** *(boolean) --* Specifies whether inbox placement data is being tracked for the domain. * **TrackedIsps** *(list) --* An array of strings, one for each major email provider that the inbox placement data applies to. * *(string) --* The name of an email provider. * **PendingExpirationSubscribedDomains** *(list) --* An array of objects, one for each verified domain that you use to send email and currently has an active Deliverability dashboard subscription that's scheduled to expire at the end of the current calendar month. * *(dict) --* An object that contains information about the Deliverability dashboard subscription for a verified domain that you use to send email and currently has an active Deliverability dashboard subscription. If a Deliverability dashboard subscription is active for a domain, you gain access to reputation, inbox placement, and other metrics for the domain. * **Domain** *(string) --* A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription. * **SubscriptionStartDate** *(datetime) --* The date when you enabled the Deliverability dashboard for the domain. * **InboxPlacementTrackingOption** *(dict) --* An object that contains information about the inbox placement data settings for the domain. * **Global** *(boolean) --* Specifies whether inbox placement data is being tracked for the domain. * **TrackedIsps** *(list) --* An array of strings, one for each major email provider that the inbox placement data applies to. * *(string) --* The name of an email provider. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_account_suppression_attributes put_account_suppression_attributes ********************************** SESV2.Client.put_account_suppression_attributes(**kwargs) Change the settings for the account-level suppression list. See also: AWS API Documentation **Request Syntax** response = client.put_account_suppression_attributes( SuppressedReasons=[ 'BOUNCE'|'COMPLAINT', ] ) Parameters: **SuppressedReasons** (*list*) -- A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following: * "COMPLAINT" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_tenant get_tenant ********** SESV2.Client.get_tenant(**kwargs) Get information about a specific tenant, including the tenant's name, ID, ARN, creation timestamp, tags, and sending status. See also: AWS API Documentation **Request Syntax** response = client.get_tenant( TenantName='string' ) Parameters: **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to retrieve information about. Return type: dict Returns: **Response Syntax** { 'Tenant': { 'TenantName': 'string', 'TenantId': 'string', 'TenantArn': 'string', 'CreatedTimestamp': datetime(2015, 1, 1), 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'SendingStatus': 'ENABLED'|'REINSTATED'|'DISABLED' } } **Response Structure** * *(dict) --* Information about a specific tenant. * **Tenant** *(dict) --* A structure that contains details about the tenant. * **TenantName** *(string) --* The name of the tenant. * **TenantId** *(string) --* A unique identifier for the tenant. * **TenantArn** *(string) --* The Amazon Resource Name (ARN) of the tenant. * **CreatedTimestamp** *(datetime) --* The date and time when the tenant was created. * **Tags** *(list) --* An array of objects that define the tags (keys and values) associated with the tenant. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **SendingStatus** *(string) --* The status of sending capability for the tenant. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_import_job get_import_job ************** SESV2.Client.get_import_job(**kwargs) Provides information about an import job. See also: AWS API Documentation **Request Syntax** response = client.get_import_job( JobId='string' ) Parameters: **JobId** (*string*) -- **[REQUIRED]** The ID of the import job. Return type: dict Returns: **Response Syntax** { 'JobId': 'string', 'ImportDestination': { 'SuppressionListDestination': { 'SuppressionListImportAction': 'DELETE'|'PUT' }, 'ContactListDestination': { 'ContactListName': 'string', 'ContactListImportAction': 'DELETE'|'PUT' } }, 'ImportDataSource': { 'S3Url': 'string', 'DataFormat': 'CSV'|'JSON' }, 'FailureInfo': { 'FailedRecordsS3Url': 'string', 'ErrorMessage': 'string' }, 'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED', 'CreatedTimestamp': datetime(2015, 1, 1), 'CompletedTimestamp': datetime(2015, 1, 1), 'ProcessedRecordsCount': 123, 'FailedRecordsCount': 123 } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **JobId** *(string) --* A string that represents the import job ID. * **ImportDestination** *(dict) --* The destination of the import job. * **SuppressionListDestination** *(dict) --* An object that contains the action of the import job towards suppression list. * **SuppressionListImportAction** *(string) --* The type of action to perform on the address. The following are possible values: * PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the suppression list. * **ContactListDestination** *(dict) --* An object that contains the action of the import job towards a contact list. * **ContactListName** *(string) --* The name of the contact list. * **ContactListImportAction** *(string) --* >The type of action to perform on the addresses. The following are the possible values: * PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value. * DELETE: remove the addresses from the contact list. * **ImportDataSource** *(dict) --* The data source of the import job. * **S3Url** *(string) --* An Amazon S3 URL in the format s3://**/**. * **DataFormat** *(string) --* The data format of the import job's data source. * **FailureInfo** *(dict) --* The failure details about an import job. * **FailedRecordsS3Url** *(string) --* An Amazon S3 pre-signed URL that contains all the failed records and related information. * **ErrorMessage** *(string) --* A message about why the job failed. * **JobStatus** *(string) --* The status of the import job. * **CreatedTimestamp** *(datetime) --* The time stamp of when the import job was created. * **CompletedTimestamp** *(datetime) --* The time stamp of when the import job was completed. * **ProcessedRecordsCount** *(integer) --* The current number of records processed. * **FailedRecordsCount** *(integer) --* The number of records that failed processing because of invalid input or other reasons. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / delete_contact delete_contact ************** SESV2.Client.delete_contact(**kwargs) Removes a contact from a contact list. See also: AWS API Documentation **Request Syntax** response = client.delete_contact( ContactListName='string', EmailAddress='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list from which the contact should be removed. * **EmailAddress** (*string*) -- **[REQUIRED]** The contact's email address. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / send_bulk_email send_bulk_email *************** SESV2.Client.send_bulk_email(**kwargs) Composes an email message to multiple destinations. See also: AWS API Documentation **Request Syntax** response = client.send_bulk_email( FromEmailAddress='string', FromEmailAddressIdentityArn='string', ReplyToAddresses=[ 'string', ], FeedbackForwardingEmailAddress='string', FeedbackForwardingEmailAddressIdentityArn='string', DefaultEmailTags=[ { 'Name': 'string', 'Value': 'string' }, ], DefaultContent={ 'Template': { 'TemplateName': 'string', 'TemplateArn': 'string', 'TemplateContent': { 'Subject': 'string', 'Text': 'string', 'Html': 'string' }, 'TemplateData': 'string', 'Headers': [ { 'Name': 'string', 'Value': 'string' }, ], 'Attachments': [ { 'RawContent': b'bytes', 'ContentDisposition': 'ATTACHMENT'|'INLINE', 'FileName': 'string', 'ContentDescription': 'string', 'ContentId': 'string', 'ContentTransferEncoding': 'BASE64'|'QUOTED_PRINTABLE'|'SEVEN_BIT', 'ContentType': 'string' }, ] } }, BulkEmailEntries=[ { 'Destination': { 'ToAddresses': [ 'string', ], 'CcAddresses': [ 'string', ], 'BccAddresses': [ 'string', ] }, 'ReplacementTags': [ { 'Name': 'string', 'Value': 'string' }, ], 'ReplacementEmailContent': { 'ReplacementTemplate': { 'ReplacementTemplateData': 'string' } }, 'ReplacementHeaders': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], ConfigurationSetName='string', EndpointId='string', TenantName='string' ) Parameters: * **FromEmailAddress** (*string*) -- The email address to use as the "From" address for the email. The address that you specify has to be verified. * **FromEmailAddressIdentityArn** (*string*) -- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the "FromEmailAddress" parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the "FromEmailAddressIdentityArn" to be arn:aws:ses:us- east-1:123456789012:identity/example.com, and the "FromEmailAddress" to be sender@example.com. For more information about sending authorization, see the Amazon SES Developer Guide. * **ReplyToAddresses** (*list*) -- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply. * *(string) --* * **FeedbackForwardingEmailAddress** (*string*) -- The address that you want bounce and complaint notifications to be sent to. * **FeedbackForwardingEmailAddressIdentityArn** (*string*) -- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the "FeedbackForwardingEmailAddress" parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the "FeedbackForwardingEmailAddressIdentityArn" to be arn:aws:ses :us-east-1:123456789012:identity/example.com, and the "FeedbackForwardingEmailAddress" to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide. * **DefaultEmailTags** (*list*) -- A list of tags, in the form of name/value pairs, to apply to an email that you send using the "SendEmail" operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. * *(dict) --* Contains the name and value of a tag that you apply to an email. You can use message tags when you publish email sending events. * **Name** *(string) --* **[REQUIRED]** The name of the message tag. The message tag name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message tag. The message tag value has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **DefaultContent** (*dict*) -- **[REQUIRED]** An object that contains the body of the message. You can specify a template message. * **Template** *(dict) --* The template to use for the bulk email message. * **TemplateName** *(string) --* The name of the template. You will refer to this name when you send email using the "SendEmail" or "SendBulkEmail" operations. * **TemplateArn** *(string) --* The Amazon Resource Name (ARN) of the template. * **TemplateContent** *(dict) --* The content of the template. Note: Amazon SES supports only simple substitions when you send email using the "SendEmail" or "SendBulkEmail" operations and you provide the full template content in the request. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. * **TemplateData** *(string) --* An object that defines the values to use for message variables in the template. This object is a set of key- value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable. * **Headers** *(list) --* The list of message headers that will be added to the email message. * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **Attachments** *(list) --* The List of attachments to include in your email. All recipients will receive the same attachments. * *(dict) --* Contains metadata and attachment raw content. * **RawContent** *(bytes) --* **[REQUIRED]** The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * **ContentDisposition** *(string) --* A standard descriptor indicating how the attachment should be rendered in the email. Supported values: "ATTACHMENT" or "INLINE". * **FileName** *(string) --* **[REQUIRED]** The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide. * **ContentDescription** *(string) --* A brief description of the attachment content. * **ContentId** *(string) --* Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content. * **ContentTransferEncoding** *(string) --* Specifies how the attachment is encoded. Supported values: "BASE64", "QUOTED_PRINTABLE", "SEVEN_BIT". * **ContentType** *(string) --* The MIME type of the attachment. Note: Example: "application/pdf", "image/jpeg" * **BulkEmailEntries** (*list*) -- **[REQUIRED]** The list of bulk email entry objects. * *(dict) --* * **Destination** *(dict) --* **[REQUIRED]** Represents the destination of the message, consisting of To:, CC:, and BCC: fields. Note: Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a destination email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492. * **ToAddresses** *(list) --* An array that contains the email addresses of the "To" recipients for the email. * *(string) --* * **CcAddresses** *(list) --* An array that contains the email addresses of the "CC" (carbon copy) recipients for the email. * *(string) --* * **BccAddresses** *(list) --* An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email. * *(string) --* * **ReplacementTags** *(list) --* A list of tags, in the form of name/value pairs, to apply to an email that you send using the "SendBulkTemplatedEmail" operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. * *(dict) --* Contains the name and value of a tag that you apply to an email. You can use message tags when you publish email sending events. * **Name** *(string) --* **[REQUIRED]** The name of the message tag. The message tag name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message tag. The message tag value has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **ReplacementEmailContent** *(dict) --* The "ReplacementEmailContent" associated with a "BulkEmailEntry". * **ReplacementTemplate** *(dict) --* The "ReplacementTemplate" associated with "ReplacementEmailContent". * **ReplacementTemplateData** *(string) --* A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template. * **ReplacementHeaders** *(list) --* The list of message headers associated with the "BulkEmailEntry" data type. * Headers Not Present in "BulkEmailEntry": If a header is specified in Template but not in "BulkEmailEntry", the header from "Template" will be added to the outgoing email. * Headers Present in "BulkEmailEntry": If a header is specified in "BulkEmailEntry", it takes precedence over any header of the same name specified in Template: * If the header is also defined within "Template", the value from "BulkEmailEntry" will replace the header's value in the email. * If the header is not defined within "Template", it will simply be added to the email as specified in "BulkEmailEntry". * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **ConfigurationSetName** (*string*) -- The name of the configuration set to use when sending the email. * **EndpointId** (*string*) -- The ID of the multi-region endpoint (global-endpoint). * **TenantName** (*string*) -- The name of the tenant through which this bulk email will be sent. Note: The email sending operation will only succeed if all referenced resources (identities, configuration sets, and templates) are associated with this tenant. Return type: dict Returns: **Response Syntax** { 'BulkEmailEntryResults': [ { 'Status': 'SUCCESS'|'MESSAGE_REJECTED'|'MAIL_FROM_DOMAIN_NOT_VERIFIED'|'CONFIGURATION_SET_NOT_FOUND'|'TEMPLATE_NOT_FOUND'|'ACCOUNT_SUSPENDED'|'ACCOUNT_THROTTLED'|'ACCOUNT_DAILY_QUOTA_EXCEEDED'|'INVALID_SENDING_POOL_NAME'|'ACCOUNT_SENDING_PAUSED'|'CONFIGURATION_SET_SENDING_PAUSED'|'INVALID_PARAMETER'|'TRANSIENT_FAILURE'|'FAILED', 'Error': 'string', 'MessageId': 'string' }, ] } **Response Structure** * *(dict) --* The following data is returned in JSON format by the service. * **BulkEmailEntryResults** *(list) --* One object per intended recipient. Check each response object and retry any messages with a failure status. * *(dict) --* The result of the "SendBulkEmail" operation of each specified "BulkEmailEntry". * **Status** *(string) --* The status of a message sent using the "SendBulkTemplatedEmail" operation. Possible values for this parameter include: * SUCCESS: Amazon SES accepted the message, and will attempt to deliver it to the recipients. * MESSAGE_REJECTED: The message was rejected because it contained a virus. * MAIL_FROM_DOMAIN_NOT_VERIFIED: The sender's email address or domain was not verified. * CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does not exist. * TEMPLATE_DOES_NOT_EXIST: The template you specified does not exist. * ACCOUNT_SUSPENDED: Your account has been shut down because of issues related to your email sending practices. * ACCOUNT_THROTTLED: The number of emails you can send has been reduced because your account has exceeded its allocated sending limit. * ACCOUNT_DAILY_QUOTA_EXCEEDED: You have reached or exceeded the maximum number of emails you can send from your account in a 24-hour period. * INVALID_SENDING_POOL_NAME: The configuration set you specified refers to an IP pool that does not exist. * ACCOUNT_SENDING_PAUSED: Email sending for the Amazon SES account was disabled using the UpdateAccountSendingEnabled operation. * CONFIGURATION_SET_SENDING_PAUSED: Email sending for this configuration set was disabled using the UpdateConfigurationSetSendingEnabled operation. * INVALID_PARAMETER_VALUE: One or more of the parameters you specified when calling this operation was invalid. See the error message for additional information. * TRANSIENT_FAILURE: Amazon SES was unable to process your request because of a temporary issue. * FAILED: Amazon SES was unable to process your request. See the error message for additional information. * **Error** *(string) --* A description of an error that prevented a message being sent using the "SendBulkTemplatedEmail" operation. * **MessageId** *(string) --* The unique message identifier returned from the "SendBulkTemplatedEmail" operation. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.AccountSuspendedException" * "SESV2.Client.exceptions.SendingPausedException" * "SESV2.Client.exceptions.MessageRejected" * "SESV2.Client.exceptions.MailFromDomainNotVerifiedException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_tenant_resource_association delete_tenant_resource_association ********************************** SESV2.Client.delete_tenant_resource_association(**kwargs) Delete an association between a tenant and a resource. When you delete a tenant-resource association, the resource itself is not deleted, only its association with the specific tenant is removed. After removal, the resource will no longer be available for use with that tenant's email sending operations. See also: AWS API Documentation **Request Syntax** response = client.delete_tenant_resource_association( TenantName='string', ResourceArn='string' ) Parameters: * **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to remove the resource association from. * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to remove from the tenant association. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_domain_deliverability_campaigns list_domain_deliverability_campaigns ************************************ SESV2.Client.list_domain_deliverability_campaigns(**kwargs) Retrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time range. This data is available for a domain only if you enabled the Deliverability dashboard for the domain. See also: AWS API Documentation **Request Syntax** response = client.list_domain_deliverability_campaigns( StartDate=datetime(2015, 1, 1), EndDate=datetime(2015, 1, 1), SubscribedDomain='string', NextToken='string', PageSize=123 ) Parameters: * **StartDate** (*datetime*) -- **[REQUIRED]** The first day that you want to obtain deliverability data for. * **EndDate** (*datetime*) -- **[REQUIRED]** The last day that you want to obtain deliverability data for. This value has to be less than or equal to 30 days after the value of the "StartDate" parameter. * **SubscribedDomain** (*string*) -- **[REQUIRED]** The domain to obtain deliverability data for. * **NextToken** (*string*) -- A token that’s returned from a previous call to the "ListDomainDeliverabilityCampaigns" operation. This token indicates the position of a campaign in the list of campaigns. * **PageSize** (*integer*) -- The maximum number of results to include in response to a single call to the "ListDomainDeliverabilityCampaigns" operation. If the number of results is larger than the number that you specify in this parameter, the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'DomainDeliverabilityCampaigns': [ { 'CampaignId': 'string', 'ImageUrl': 'string', 'Subject': 'string', 'FromAddress': 'string', 'SendingIps': [ 'string', ], 'FirstSeenDateTime': datetime(2015, 1, 1), 'LastSeenDateTime': datetime(2015, 1, 1), 'InboxCount': 123, 'SpamCount': 123, 'ReadRate': 123.0, 'DeleteRate': 123.0, 'ReadDeleteRate': 123.0, 'ProjectedVolume': 123, 'Esps': [ 'string', ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* An array of objects that provide deliverability data for all the campaigns that used a specific domain to send email during a specified time range. This data is available for a domain only if you enabled the Deliverability dashboard for the domain. * **DomainDeliverabilityCampaigns** *(list) --* An array of responses, one for each campaign that used the domain to send email during the specified time range. * *(dict) --* An object that contains the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for ( "PutDeliverabilityDashboardOption" operation). * **CampaignId** *(string) --* The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign. * **ImageUrl** *(string) --* The URL of an image that contains a snapshot of the email message that was sent. * **Subject** *(string) --* The subject line, or title, of the email message. * **FromAddress** *(string) --* The verified email address that the email message was sent from. * **SendingIps** *(list) --* The IP addresses that were used to send the email message. * *(string) --* An IPv4 address. * **FirstSeenDateTime** *(datetime) --* The first time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message. * **LastSeenDateTime** *(datetime) --* The last time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message. * **InboxCount** *(integer) --* The number of email messages that were delivered to recipients’ inboxes. * **SpamCount** *(integer) --* The number of email messages that were delivered to recipients' spam or junk mail folders. * **ReadRate** *(float) --* The percentage of email messages that were opened by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **DeleteRate** *(float) --* The percentage of email messages that were deleted by recipients, without being opened first. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **ReadDeleteRate** *(float) --* The percentage of email messages that were opened and then deleted by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **ProjectedVolume** *(integer) --* The projected number of recipients that the email message was sent to. * **Esps** *(list) --* The major email providers who handled the email message. * *(string) --* * **NextToken** *(string) --* A token that’s returned from a previous call to the "ListDomainDeliverabilityCampaigns" operation. This token indicates the position of the campaign in the list of campaigns. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / put_account_sending_attributes put_account_sending_attributes ****************************** SESV2.Client.put_account_sending_attributes(**kwargs) Enable or disable the ability of your account to send email. See also: AWS API Documentation **Request Syntax** response = client.put_account_sending_attributes( SendingEnabled=True|False ) Parameters: **SendingEnabled** (*boolean*) -- Enables or disables your account's ability to send email. Set to "true" to enable email sending, or set to "false" to disable email sending. Note: If Amazon Web Services paused your account's ability to send email, you can't use this operation to resume your account's ability to send email. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_configuration_set_sending_options put_configuration_set_sending_options ************************************* SESV2.Client.put_configuration_set_sending_options(**kwargs) Enable or disable email sending for messages that use a particular configuration set in a specific Amazon Web Services Region. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_sending_options( ConfigurationSetName='string', SendingEnabled=True|False ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set to enable or disable email sending for. * **SendingEnabled** (*boolean*) -- If "true", email sending is enabled for the configuration set. If "false", email sending is disabled for the configuration set. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_configuration_set_event_destination create_configuration_set_event_destination ****************************************** SESV2.Client.create_configuration_set_event_destination(**kwargs) Create an event destination. *Events* include message sends, deliveries, opens, clicks, bounces, and complaints. *Event destinations* are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target. A single configuration set can include more than one event destination. See also: AWS API Documentation **Request Syntax** response = client.create_configuration_set_event_destination( ConfigurationSetName='string', EventDestinationName='string', EventDestination={ 'Enabled': True|False, 'MatchingEventTypes': [ 'SEND'|'REJECT'|'BOUNCE'|'COMPLAINT'|'DELIVERY'|'OPEN'|'CLICK'|'RENDERING_FAILURE'|'DELIVERY_DELAY'|'SUBSCRIPTION', ], 'KinesisFirehoseDestination': { 'IamRoleArn': 'string', 'DeliveryStreamArn': 'string' }, 'CloudWatchDestination': { 'DimensionConfigurations': [ { 'DimensionName': 'string', 'DimensionValueSource': 'MESSAGE_TAG'|'EMAIL_HEADER'|'LINK_TAG', 'DefaultDimensionValue': 'string' }, ] }, 'SnsDestination': { 'TopicArn': 'string' }, 'EventBridgeDestination': { 'EventBusArn': 'string' }, 'PinpointDestination': { 'ApplicationArn': 'string' } } ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set . * **EventDestinationName** (*string*) -- **[REQUIRED]** A name that identifies the event destination within the configuration set. * **EventDestination** (*dict*) -- **[REQUIRED]** An object that defines the event destination. * **Enabled** *(boolean) --* If "true", the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this "EventDestinationDefinition". If "false", the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations. * **MatchingEventTypes** *(list) --* An array that specifies which events the Amazon SES API v2 should send to the destinations in this "EventDestinationDefinition". * *(string) --* An email sending event type. For example, email sends, opens, and bounces are all email events. * **KinesisFirehoseDestination** *(dict) --* An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift. * **IamRoleArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream. * **DeliveryStreamArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to. * **CloudWatchDestination** *(dict) --* An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * **DimensionConfigurations** *(list) --* **[REQUIRED]** An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. * *(dict) --* An object that defines the dimension configuration to use when you send email events to Amazon CloudWatch. * **DimensionName** *(string) --* **[REQUIRED]** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **DimensionValueSource** *(string) --* **[REQUIRED]** The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an "X -SES-MESSAGE-TAGS" header or a parameter to the "SendEmail" or "SendRawEmail" API, choose "messageTag". To use your own email headers, choose "emailHeader". To use link tags, choose "linkTags". * **DefaultDimensionValue** *(string) --* **[REQUIRED]** The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria: * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.). * It can contain no more than 256 characters. * **SnsDestination** *(dict) --* An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notifications when certain email events occur. * **TopicArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide. * **EventBridgeDestination** *(dict) --* An object that defines an Amazon EventBridge destination for email events. You can use Amazon EventBridge to send notifications when certain email events occur. * **EventBusArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish email events to. Only the default bus is supported. * **PinpointDestination** *(dict) --* An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the *Amazon Pinpoint User Guide*. * **ApplicationArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_contact_list delete_contact_list ******************* SESV2.Client.delete_contact_list(**kwargs) Deletes a contact list and all of the contacts on that list. See also: AWS API Documentation **Request Syntax** response = client.delete_contact_list( ContactListName='string' ) Parameters: **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / get_reputation_entity get_reputation_entity ********************* SESV2.Client.get_reputation_entity(**kwargs) Retrieve information about a specific reputation entity, including its reputation management policy, customer-managed status, Amazon Web Services Amazon SES-managed status, and aggregate sending status. *Reputation entities* represent resources in your Amazon SES account that have reputation tracking and management capabilities. The reputation impact reflects the highest impact reputation finding for the entity. Reputation findings can be retrieved using the "ListRecommendations" operation. See also: AWS API Documentation **Request Syntax** response = client.get_reputation_entity( ReputationEntityReference='string', ReputationEntityType='RESOURCE' ) Parameters: * **ReputationEntityReference** (*string*) -- **[REQUIRED]** The unique identifier for the reputation entity. For resource- type entities, this is the Amazon Resource Name (ARN) of the resource. * **ReputationEntityType** (*string*) -- **[REQUIRED]** The type of reputation entity. Currently, only "RESOURCE" type entities are supported. Return type: dict Returns: **Response Syntax** { 'ReputationEntity': { 'ReputationEntityReference': 'string', 'ReputationEntityType': 'RESOURCE', 'ReputationManagementPolicy': 'string', 'CustomerManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'AwsSesManagedStatus': { 'Status': 'ENABLED'|'REINSTATED'|'DISABLED', 'Cause': 'string', 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, 'SendingStatusAggregate': 'ENABLED'|'REINSTATED'|'DISABLED', 'ReputationImpact': 'LOW'|'HIGH' } } **Response Structure** * *(dict) --* Information about the requested reputation entity. * **ReputationEntity** *(dict) --* The reputation entity information, including status records, policy configuration, and reputation impact. * **ReputationEntityReference** *(string) --* The unique identifier for the reputation entity. For resource-type entities, this is the Amazon Resource Name (ARN) of the resource. * **ReputationEntityType** *(string) --* The type of reputation entity. Currently, only "RESOURCE" type entities are supported. * **ReputationManagementPolicy** *(string) --* The Amazon Resource Name (ARN) of the reputation management policy applied to this entity. This is an Amazon Web Services Amazon SES-managed policy. * **CustomerManagedStatus** *(dict) --* The customer-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **AwsSesManagedStatus** *(dict) --* The Amazon Web Services Amazon SES-managed status record for this reputation entity, including the current status, cause description, and last updated timestamp. * **Status** *(string) --* The current sending status. This can be one of the following: * "ENABLED" – Sending is allowed. * "DISABLED" – Sending is prevented. * "REINSTATED" – Sending is allowed even with active reputation findings. * **Cause** *(string) --* A description of the reason for the current status, or null if no specific cause is available. * **LastUpdatedTimestamp** *(datetime) --* The timestamp when this status was last updated. * **SendingStatusAggregate** *(string) --* The aggregate sending status that determines whether the entity is allowed to send emails. This status is derived from both the customer-managed and Amazon Web Services Amazon SES-managed statuses. If either the customer- managed status or the Amazon Web Services Amazon SES- managed status is "DISABLED", the aggregate status will be "DISABLED" and the entity will not be allowed to send emails. When the customer-managed status is set to "REINSTATED", the entity can continue sending even if there are active reputation findings, provided the Amazon Web Services Amazon SES-managed status also permits sending. The entity can only send emails when both statuses permit sending. * **ReputationImpact** *(string) --* The reputation impact level for this entity, representing the highest impact reputation finding currently active. Reputation findings can be retrieved using the "ListRecommendations" operation. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_account_vdm_attributes put_account_vdm_attributes ************************** SESV2.Client.put_account_vdm_attributes(**kwargs) Update your Amazon SES account VDM attributes. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.put_account_vdm_attributes( VdmAttributes={ 'VdmEnabled': 'ENABLED'|'DISABLED', 'DashboardAttributes': { 'EngagementMetrics': 'ENABLED'|'DISABLED' }, 'GuardianAttributes': { 'OptimizedSharedDelivery': 'ENABLED'|'DISABLED' } } ) Parameters: **VdmAttributes** (*dict*) -- **[REQUIRED]** The VDM attributes that you wish to apply to your Amazon SES account. * **VdmEnabled** *(string) --* **[REQUIRED]** Specifies the status of your VDM configuration. Can be one of the following: * "ENABLED" – Amazon SES enables VDM for your account. * "DISABLED" – Amazon SES disables VDM for your account. * **DashboardAttributes** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Dashboard. * **EngagementMetrics** *(string) --* Specifies the status of your VDM engagement metrics collection. Can be one of the following: * "ENABLED" – Amazon SES enables engagement metrics for your account. * "DISABLED" – Amazon SES disables engagement metrics for your account. * **GuardianAttributes** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Guardian. * **OptimizedSharedDelivery** *(string) --* Specifies the status of your VDM optimized shared delivery. Can be one of the following: * "ENABLED" – Amazon SES enables optimized shared delivery for your account. * "DISABLED" – Amazon SES disables optimized shared delivery for your account. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / list_email_templates list_email_templates ******************** SESV2.Client.list_email_templates(**kwargs) Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.list_email_templates( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListEmailTemplates" to indicate the position in the list of email templates. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListEmailTemplates". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 100. Return type: dict Returns: **Response Syntax** { 'TemplatesMetadata': [ { 'TemplateName': 'string', 'CreatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* The following elements are returned by the service. * **TemplatesMetadata** *(list) --* An array the contains the name and creation time stamp for each template in your Amazon SES account. * *(dict) --* Contains information about an email template. * **TemplateName** *(string) --* The name of the template. * **CreatedTimestamp** *(datetime) --* The time and date the template was created. * **NextToken** *(string) --* A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent "ListEmailTemplates" call to retrieve the next 10 email templates. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_email_template delete_email_template ********************* SESV2.Client.delete_email_template(**kwargs) Deletes an email template. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.delete_email_template( TemplateName='string' ) Parameters: **TemplateName** (*string*) -- **[REQUIRED]** The name of the template to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_export_jobs list_export_jobs **************** SESV2.Client.list_export_jobs(**kwargs) Lists all of the export jobs. See also: AWS API Documentation **Request Syntax** response = client.list_export_jobs( NextToken='string', PageSize=123, ExportSourceType='METRICS_DATA'|'MESSAGE_INSIGHTS', JobStatus='CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED' ) Parameters: * **NextToken** (*string*) -- The pagination token returned from a previous call to "ListExportJobs" to indicate the position in the list of export jobs. * **PageSize** (*integer*) -- Maximum number of export jobs to return at once. Use this parameter to paginate results. If additional export jobs exist beyond the specified limit, the "NextToken" element is sent in the response. Use the "NextToken" value in subsequent calls to "ListExportJobs" to retrieve additional export jobs. * **ExportSourceType** (*string*) -- A value used to list export jobs that have a certain "ExportSourceType". * **JobStatus** (*string*) -- A value used to list export jobs that have a certain "JobStatus". Return type: dict Returns: **Response Syntax** { 'ExportJobs': [ { 'JobId': 'string', 'ExportSourceType': 'METRICS_DATA'|'MESSAGE_INSIGHTS', 'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED', 'CreatedTimestamp': datetime(2015, 1, 1), 'CompletedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **ExportJobs** *(list) --* A list of the export job summaries. * *(dict) --* A summary of the export job. * **JobId** *(string) --* The export job ID. * **ExportSourceType** *(string) --* The source type of the export job. * **JobStatus** *(string) --* The status of the export job. * **CreatedTimestamp** *(datetime) --* The timestamp of when the export job was created. * **CompletedTimestamp** *(datetime) --* The timestamp of when the export job was completed. * **NextToken** *(string) --* A string token indicating that there might be additional export jobs available to be listed. Use this token to a subsequent call to "ListExportJobs" with the same parameters to retrieve the next page of export jobs. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_account_details put_account_details ******************* SESV2.Client.put_account_details(**kwargs) Update your Amazon SES account details. See also: AWS API Documentation **Request Syntax** response = client.put_account_details( MailType='MARKETING'|'TRANSACTIONAL', WebsiteURL='string', ContactLanguage='EN'|'JA', UseCaseDescription='string', AdditionalContactEmailAddresses=[ 'string', ], ProductionAccessEnabled=True|False ) Parameters: * **MailType** (*string*) -- **[REQUIRED]** The type of email your account will send. * **WebsiteURL** (*string*) -- **[REQUIRED]** The URL of your website. This information helps us better understand the type of content that you plan to send. * **ContactLanguage** (*string*) -- The language you would prefer to be contacted with. * **UseCaseDescription** (*string*) -- A description of the types of email that you plan to send. * **AdditionalContactEmailAddresses** (*list*) -- Additional email addresses that you would like to be notified regarding Amazon SES matters. * *(string) --* * **ProductionAccessEnabled** (*boolean*) -- Indicates whether or not your account should have production access in the current Amazon Web Services Region. If the value is "false", then your account is in the *sandbox*. When your account is in the sandbox, you can only send email to verified identities. If the value is "true", then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConflictException" SESV2 / Client / create_email_template create_email_template ********************* SESV2.Client.create_email_template(**kwargs) Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.create_email_template( TemplateName='string', TemplateContent={ 'Subject': 'string', 'Text': 'string', 'Html': 'string' } ) Parameters: * **TemplateName** (*string*) -- **[REQUIRED]** The name of the template. * **TemplateContent** (*dict*) -- **[REQUIRED]** The content of the email template, composed of a subject line, an HTML part, and a text-only part. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.LimitExceededException" SESV2 / Client / put_suppressed_destination put_suppressed_destination ************************** SESV2.Client.put_suppressed_destination(**kwargs) Adds an email address to the suppression list for your account. See also: AWS API Documentation **Request Syntax** response = client.put_suppressed_destination( EmailAddress='string', Reason='BOUNCE'|'COMPLAINT' ) Parameters: * **EmailAddress** (*string*) -- **[REQUIRED]** The email address that should be added to the suppression list for your account. * **Reason** (*string*) -- **[REQUIRED]** The factors that should cause the email address to be added to the suppression list for your account. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / list_contacts list_contacts ************* SESV2.Client.list_contacts(**kwargs) Lists the contacts present in a specific contact list. See also: AWS API Documentation **Request Syntax** response = client.list_contacts( ContactListName='string', Filter={ 'FilteredStatus': 'OPT_IN'|'OPT_OUT', 'TopicFilter': { 'TopicName': 'string', 'UseDefaultIfPreferenceUnavailable': True|False } }, PageSize=123, NextToken='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list. * **Filter** (*dict*) -- A filter that can be applied to a list of contacts. * **FilteredStatus** *(string) --* The status by which you are filtering: "OPT_IN" or "OPT_OUT". * **TopicFilter** *(dict) --* Used for filtering by a specific topic preference. * **TopicName** *(string) --* The name of a topic on which you wish to apply the filter. * **UseDefaultIfPreferenceUnavailable** *(boolean) --* Notes that the default subscription status should be applied to a contact because the contact has not noted their preference for subscribing to a topic. * **PageSize** (*integer*) -- The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the "NextToken" element is sent in the response. Use the "NextToken" value in subsequent requests to retrieve additional contacts. * **NextToken** (*string*) -- A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts. Return type: dict Returns: **Response Syntax** { 'Contacts': [ { 'EmailAddress': 'string', 'TopicPreferences': [ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], 'TopicDefaultPreferences': [ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], 'UnsubscribeAll': True|False, 'LastUpdatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Contacts** *(list) --* The contacts present in a specific contact list. * *(dict) --* A contact is the end-user who is receiving the email. * **EmailAddress** *(string) --* The contact's email address. * **TopicPreferences** *(list) --* The contact's preference for being opted-in to or opted- out of a topic. * *(dict) --* The contact's preference for being opted-in to or opted-out of a topic. * **TopicName** *(string) --* The name of the topic. * **SubscriptionStatus** *(string) --* The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **TopicDefaultPreferences** *(list) --* The default topic preferences applied to the contact. * *(dict) --* The contact's preference for being opted-in to or opted-out of a topic. * **TopicName** *(string) --* The name of the topic. * **SubscriptionStatus** *(string) --* The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **UnsubscribeAll** *(boolean) --* A boolean value status noting if the contact is unsubscribed from all contact list topics. * **LastUpdatedTimestamp** *(datetime) --* A timestamp noting the last time the contact's information was updated. * **NextToken** *(string) --* A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to "ListContacts" with the same parameters to retrieve the next page of contacts. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / list_custom_verification_email_templates list_custom_verification_email_templates **************************************** SESV2.Client.list_custom_verification_email_templates(**kwargs) Lists the existing custom verification email templates for your account in the current Amazon Web Services Region. For more information about custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.list_custom_verification_email_templates( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListCustomVerificationEmailTemplates" to indicate the position in the list of custom verification email templates. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListCustomVerificationEmailTemplates". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 50. Return type: dict Returns: **Response Syntax** { 'CustomVerificationEmailTemplates': [ { 'TemplateName': 'string', 'FromEmailAddress': 'string', 'TemplateSubject': 'string', 'SuccessRedirectionURL': 'string', 'FailureRedirectionURL': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* The following elements are returned by the service. * **CustomVerificationEmailTemplates** *(list) --* A list of the custom verification email templates that exist in your account. * *(dict) --* Contains information about a custom verification email template. * **TemplateName** *(string) --* The name of the custom verification email template. * **FromEmailAddress** *(string) --* The email address that the custom verification email is sent from. * **TemplateSubject** *(string) --* The subject line of the custom verification email. * **SuccessRedirectionURL** *(string) --* The URL that the recipient of the verification email is sent to if his or her address is successfully verified. * **FailureRedirectionURL** *(string) --* The URL that the recipient of the verification email is sent to if his or her address is not successfully verified. * **NextToken** *(string) --* A token indicating that there are additional custom verification email templates available to be listed. Pass this token to a subsequent call to "ListCustomVerificationEmailTemplates" to retrieve the next 50 custom verification email templates. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_dedicated_ip_pool_scaling_attributes put_dedicated_ip_pool_scaling_attributes **************************************** SESV2.Client.put_dedicated_ip_pool_scaling_attributes(**kwargs) Used to convert a dedicated IP pool to a different scaling mode. Note: "MANAGED" pools cannot be converted to "STANDARD" scaling mode. See also: AWS API Documentation **Request Syntax** response = client.put_dedicated_ip_pool_scaling_attributes( PoolName='string', ScalingMode='STANDARD'|'MANAGED' ) Parameters: * **PoolName** (*string*) -- **[REQUIRED]** The name of the dedicated IP pool. * **ScalingMode** (*string*) -- **[REQUIRED]** The scaling mode to apply to the dedicated IP pool. Note: Changing the scaling mode from "MANAGED" to "STANDARD" is not supported. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.ConcurrentModificationException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_contact get_contact *********** SESV2.Client.get_contact(**kwargs) Returns a contact from a contact list. See also: AWS API Documentation **Request Syntax** response = client.get_contact( ContactListName='string', EmailAddress='string' ) Parameters: * **ContactListName** (*string*) -- **[REQUIRED]** The name of the contact list to which the contact belongs. * **EmailAddress** (*string*) -- **[REQUIRED]** The contact's email address. Return type: dict Returns: **Response Syntax** { 'ContactListName': 'string', 'EmailAddress': 'string', 'TopicPreferences': [ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], 'TopicDefaultPreferences': [ { 'TopicName': 'string', 'SubscriptionStatus': 'OPT_IN'|'OPT_OUT' }, ], 'UnsubscribeAll': True|False, 'AttributesData': 'string', 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **ContactListName** *(string) --* The name of the contact list to which the contact belongs. * **EmailAddress** *(string) --* The contact's email address. * **TopicPreferences** *(list) --* The contact's preference for being opted-in to or opted-out of a topic.> * *(dict) --* The contact's preference for being opted-in to or opted- out of a topic. * **TopicName** *(string) --* The name of the topic. * **SubscriptionStatus** *(string) --* The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **TopicDefaultPreferences** *(list) --* The default topic preferences applied to the contact. * *(dict) --* The contact's preference for being opted-in to or opted- out of a topic. * **TopicName** *(string) --* The name of the topic. * **SubscriptionStatus** *(string) --* The contact's subscription status to a topic which is either "OPT_IN" or "OPT_OUT". * **UnsubscribeAll** *(boolean) --* A boolean value status noting if the contact is unsubscribed from all contact list topics. * **AttributesData** *(string) --* The attribute data attached to a contact. * **CreatedTimestamp** *(datetime) --* A timestamp noting when the contact was created. * **LastUpdatedTimestamp** *(datetime) --* A timestamp noting the last time the contact's information was updated. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / put_email_identity_dkim_signing_attributes put_email_identity_dkim_signing_attributes ****************************************** SESV2.Client.put_email_identity_dkim_signing_attributes(**kwargs) Used to configure or change the DKIM authentication settings for an email domain identity. You can use this operation to do any of the following: * Update the signing attributes for an identity that uses Bring Your Own DKIM (BYODKIM). * Update the key length that should be used for Easy DKIM. * Change from using no DKIM authentication to using Easy DKIM. * Change from using no DKIM authentication to using BYODKIM. * Change from using Easy DKIM to using BYODKIM. * Change from using BYODKIM to using Easy DKIM. See also: AWS API Documentation **Request Syntax** response = client.put_email_identity_dkim_signing_attributes( EmailIdentity='string', SigningAttributesOrigin='AWS_SES'|'EXTERNAL'|'AWS_SES_AF_SOUTH_1'|'AWS_SES_EU_NORTH_1'|'AWS_SES_AP_SOUTH_1'|'AWS_SES_EU_WEST_3'|'AWS_SES_EU_WEST_2'|'AWS_SES_EU_SOUTH_1'|'AWS_SES_EU_WEST_1'|'AWS_SES_AP_NORTHEAST_3'|'AWS_SES_AP_NORTHEAST_2'|'AWS_SES_ME_SOUTH_1'|'AWS_SES_AP_NORTHEAST_1'|'AWS_SES_IL_CENTRAL_1'|'AWS_SES_SA_EAST_1'|'AWS_SES_CA_CENTRAL_1'|'AWS_SES_AP_SOUTHEAST_1'|'AWS_SES_AP_SOUTHEAST_2'|'AWS_SES_AP_SOUTHEAST_3'|'AWS_SES_EU_CENTRAL_1'|'AWS_SES_US_EAST_1'|'AWS_SES_US_EAST_2'|'AWS_SES_US_WEST_1'|'AWS_SES_US_WEST_2'|'AWS_SES_ME_CENTRAL_1'|'AWS_SES_AP_SOUTH_2'|'AWS_SES_EU_CENTRAL_2', SigningAttributes={ 'DomainSigningSelector': 'string', 'DomainSigningPrivateKey': 'string', 'NextSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'DomainSigningAttributesOrigin': 'AWS_SES'|'EXTERNAL'|'AWS_SES_AF_SOUTH_1'|'AWS_SES_EU_NORTH_1'|'AWS_SES_AP_SOUTH_1'|'AWS_SES_EU_WEST_3'|'AWS_SES_EU_WEST_2'|'AWS_SES_EU_SOUTH_1'|'AWS_SES_EU_WEST_1'|'AWS_SES_AP_NORTHEAST_3'|'AWS_SES_AP_NORTHEAST_2'|'AWS_SES_ME_SOUTH_1'|'AWS_SES_AP_NORTHEAST_1'|'AWS_SES_IL_CENTRAL_1'|'AWS_SES_SA_EAST_1'|'AWS_SES_CA_CENTRAL_1'|'AWS_SES_AP_SOUTHEAST_1'|'AWS_SES_AP_SOUTHEAST_2'|'AWS_SES_AP_SOUTHEAST_3'|'AWS_SES_EU_CENTRAL_1'|'AWS_SES_US_EAST_1'|'AWS_SES_US_EAST_2'|'AWS_SES_US_WEST_1'|'AWS_SES_US_WEST_2'|'AWS_SES_ME_CENTRAL_1'|'AWS_SES_AP_SOUTH_2'|'AWS_SES_EU_CENTRAL_2' } ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **SigningAttributesOrigin** (*string*) -- **[REQUIRED]** The method to use to configure DKIM for the identity. There are the following possible values: * "AWS_SES" – Configure DKIM for the identity by using Easy DKIM. * "EXTERNAL" – Configure DKIM for the identity by using Bring Your Own DKIM (BYODKIM). * **SigningAttributes** (*dict*) -- An object that contains information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM. * **DomainSigningSelector** *(string) --* [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain. * **DomainSigningPrivateKey** *(string) --* [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding. * **NextSigningKeyLength** *(string) --* [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. * **DomainSigningAttributesOrigin** *(string) --* The attribute to use for configuring DKIM for the identity depends on the operation: * For "PutEmailIdentityDkimSigningAttributes": * None of the values are allowed - use the SigningAttributesOrigin parameter instead * For "CreateEmailIdentity" when replicating a parent identity's DKIM configuration: * Allowed values: All values except "AWS_SES" and "EXTERNAL" * "AWS_SES" – Configure DKIM for the identity by using Easy DKIM. * "EXTERNAL" – Configure DKIM for the identity by using Bring Your Own DKIM (BYODKIM). * "AWS_SES_AF_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Africa (Cape Town) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_NORTH_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Stockholm) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Mumbai) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Hyderabad) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_3" – Configure DKIM for the identity by replicating from a parent identity in Europe (Paris) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_2" – Configure DKIM for the identity by replicating from a parent identity in Europe (London) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Milan) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Ireland) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_3" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Osaka) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Seoul) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Middle East (UAE) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Middle East (Bahrain) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Tokyo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_IL_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Israel (Tel Aviv) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_SA_EAST_1" – Configure DKIM for the identity by replicating from a parent identity in South America (São Paulo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_CA_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Canada (Central) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Singapore) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Sydney) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_3" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Jakarta) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Frankfurt) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_2" – Configure DKIM for the identity by replicating from a parent identity in Europe (Zurich) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_1" – Configure DKIM for the identity by replicating from a parent identity in US East (N. Virginia) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_2" – Configure DKIM for the identity by replicating from a parent identity in US East (Ohio) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_1" – Configure DKIM for the identity by replicating from a parent identity in US West (N. California) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_2" – Configure DKIM for the identity by replicating from a parent identity in US West (Oregon) region using Deterministic Easy-DKIM (DEED). Return type: dict Returns: **Response Syntax** { 'DkimStatus': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE'|'NOT_STARTED', 'DkimTokens': [ 'string', ] } **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response. The following data is returned in JSON format by the service. * **DkimStatus** *(string) --* The DKIM authentication status of the identity. Amazon SES determines the authentication status by searching for specific records in the DNS configuration for your domain. If you used Easy DKIM to set up DKIM authentication, Amazon SES tries to find three unique CNAME records in the DNS configuration for your domain. If you provided a public key to perform DKIM authentication, Amazon SES tries to find a TXT record that uses the selector that you specified. The value of the TXT record must be a public key that's paired with the private key that you specified in the process of creating the identity. The status can be one of the following: * "PENDING" – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain. * "SUCCESS" – The verification process completed successfully. * "FAILED" – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain. * "TEMPORARY_FAILURE" – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain. * "NOT_STARTED" – The DKIM verification process hasn't been initiated for the domain. * **DkimTokens** *(list) --* If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector that's associated with your public key. Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours. * *(string) --* **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_email_identity_policy create_email_identity_policy **************************** SESV2.Client.create_email_identity_policy(**kwargs) Creates the specified sending authorization policy for the given identity (an email address or a domain). Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.create_email_identity_policy( EmailIdentity='string', PolicyName='string', Policy='string' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **PolicyName** (*string*) -- **[REQUIRED]** The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores. * **Policy** (*string*) -- **[REQUIRED]** The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_multi_region_endpoint create_multi_region_endpoint **************************** SESV2.Client.create_multi_region_endpoint(**kwargs) Creates a multi-region endpoint (global-endpoint). The primary region is going to be the AWS-Region where the operation is executed. The secondary region has to be provided in request's parameters. From the data flow standpoint there is no difference between primary and secondary regions - sending traffic will be split equally between the two. The primary region is the region where the resource has been created and where it can be managed. See also: AWS API Documentation **Request Syntax** response = client.create_multi_region_endpoint( EndpointName='string', Details={ 'RoutesDetails': [ { 'Region': 'string' }, ] }, Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **EndpointName** (*string*) -- **[REQUIRED]** The name of the multi-region endpoint (global-endpoint). * **Details** (*dict*) -- **[REQUIRED]** Contains details of a multi-region endpoint (global-endpoint) being created. * **RoutesDetails** *(list) --* **[REQUIRED]** A list of route configuration details. Must contain exactly one route configuration. * *(dict) --* An object that contains route configuration. Includes secondary region name. * **Region** *(string) --* **[REQUIRED]** The name of an AWS-Region to be a secondary region for the multi-region endpoint (global-endpoint). * **Tags** (*list*) -- An array of objects that define the tags (keys and values) to associate with the multi-region endpoint (global-endpoint). * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. Return type: dict Returns: **Response Syntax** { 'Status': 'CREATING'|'READY'|'FAILED'|'DELETING', 'EndpointId': 'string' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **Status** *(string) --* A status of the multi-region endpoint (global-endpoint) right after the create request. * "CREATING" – The resource is being provisioned. * "READY" – The resource is ready to use. * "FAILED" – The resource failed to be provisioned. * "DELETING" – The resource is being deleted as requested. * **EndpointId** *(string) --* The ID of the multi-region endpoint (global-endpoint). **Exceptions** * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_dedicated_ip_pools list_dedicated_ip_pools *********************** SESV2.Client.list_dedicated_ip_pools(**kwargs) List all of the dedicated IP pools that exist in your Amazon Web Services account in the current Region. See also: AWS API Documentation **Request Syntax** response = client.list_dedicated_ip_pools( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListDedicatedIpPools" to indicate the position in the list of dedicated IP pools. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListDedicatedIpPools". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'DedicatedIpPools': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of dedicated IP pools. * **DedicatedIpPools** *(list) --* A list of all of the dedicated IP pools that are associated with your Amazon Web Services account in the current Region. * *(string) --* The name of a dedicated IP pool. * **NextToken** *(string) --* A token that indicates that there are additional IP pools to list. To view additional IP pools, issue another request to "ListDedicatedIpPools", passing this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_account get_account *********** SESV2.Client.get_account() Obtain information about the email-sending status and capabilities of your Amazon SES account in the current Amazon Web Services Region. See also: AWS API Documentation **Request Syntax** response = client.get_account() Return type: dict Returns: **Response Syntax** { 'DedicatedIpAutoWarmupEnabled': True|False, 'EnforcementStatus': 'string', 'ProductionAccessEnabled': True|False, 'SendQuota': { 'Max24HourSend': 123.0, 'MaxSendRate': 123.0, 'SentLast24Hours': 123.0 }, 'SendingEnabled': True|False, 'SuppressionAttributes': { 'SuppressedReasons': [ 'BOUNCE'|'COMPLAINT', ] }, 'Details': { 'MailType': 'MARKETING'|'TRANSACTIONAL', 'WebsiteURL': 'string', 'ContactLanguage': 'EN'|'JA', 'UseCaseDescription': 'string', 'AdditionalContactEmailAddresses': [ 'string', ], 'ReviewDetails': { 'Status': 'PENDING'|'FAILED'|'GRANTED'|'DENIED', 'CaseId': 'string' } }, 'VdmAttributes': { 'VdmEnabled': 'ENABLED'|'DISABLED', 'DashboardAttributes': { 'EngagementMetrics': 'ENABLED'|'DISABLED' }, 'GuardianAttributes': { 'OptimizedSharedDelivery': 'ENABLED'|'DISABLED' } } } **Response Structure** * *(dict) --* A list of details about the email-sending capabilities of your Amazon SES account in the current Amazon Web Services Region. * **DedicatedIpAutoWarmupEnabled** *(boolean) --* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account. * **EnforcementStatus** *(string) --* The reputation status of your Amazon SES account. The status can be one of the following: * "HEALTHY" – There are no reputation-related issues that currently impact your account. * "PROBATION" – We've identified potential issues with your Amazon SES account. We're placing your account under review while you work on correcting these issues. * "SHUTDOWN" – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed. * **ProductionAccessEnabled** *(boolean) --* Indicates whether or not your account has production access in the current Amazon Web Services Region. If the value is "false", then your account is in the *sandbox*. When your account is in the sandbox, you can only send email to verified identities. If the value is "true", then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case. * **SendQuota** *(dict) --* An object that contains information about the per-day and per-second sending limits for your Amazon SES account in the current Amazon Web Services Region. * **Max24HourSend** *(float) --* The maximum number of emails that you can send in the current Amazon Web Services Region over a 24-hour period. A value of -1 signifies an unlimited quota. (This value is also referred to as your *sending quota*.) * **MaxSendRate** *(float) --* The maximum number of emails that you can send per second in the current Amazon Web Services Region. This value is also called your *maximum sending rate* or your *maximum TPS (transactions per second) rate*. * **SentLast24Hours** *(float) --* The number of emails sent from your Amazon SES account in the current Amazon Web Services Region over the past 24 hours. * **SendingEnabled** *(boolean) --* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services Region. * **SuppressionAttributes** *(dict) --* An object that contains information about the email address suppression preferences for your account in the current Amazon Web Services Region. * **SuppressedReasons** *(list) --* A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following: * "COMPLAINT" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. * **Details** *(dict) --* An object that defines your account details. * **MailType** *(string) --* The type of email your account is sending. The mail type can be one of the following: * "MARKETING" – Most of your sending traffic is to keep your customers informed of your latest offering. * "TRANSACTIONAL" – Most of your sending traffic is to communicate during a transaction with a customer. * **WebsiteURL** *(string) --* The URL of your website. This information helps us better understand the type of content that you plan to send. * **ContactLanguage** *(string) --* The language you would prefer for the case. The contact language can be one of "ENGLISH" or "JAPANESE". * **UseCaseDescription** *(string) --* A description of the types of email that you plan to send. * **AdditionalContactEmailAddresses** *(list) --* Additional email addresses where updates are sent about your account review process. * *(string) --* * **ReviewDetails** *(dict) --* Information about the review of the latest details you submitted. * **Status** *(string) --* The status of the latest review of your account. The status can be one of the following: * "PENDING" – We have received your appeal and are in the process of reviewing it. * "GRANTED" – Your appeal has been reviewed and your production access has been granted. * "DENIED" – Your appeal has been reviewed and your production access has been denied. * "FAILED" – An internal error occurred and we didn't receive your appeal. You can submit your appeal again. * **CaseId** *(string) --* The associated support center case ID (if any). * **VdmAttributes** *(dict) --* The VDM attributes that apply to your Amazon SES account. * **VdmEnabled** *(string) --* Specifies the status of your VDM configuration. Can be one of the following: * "ENABLED" – Amazon SES enables VDM for your account. * "DISABLED" – Amazon SES disables VDM for your account. * **DashboardAttributes** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Dashboard. * **EngagementMetrics** *(string) --* Specifies the status of your VDM engagement metrics collection. Can be one of the following: * "ENABLED" – Amazon SES enables engagement metrics for your account. * "DISABLED" – Amazon SES disables engagement metrics for your account. * **GuardianAttributes** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Guardian. * **OptimizedSharedDelivery** *(string) --* Specifies the status of your VDM optimized shared delivery. Can be one of the following: * "ENABLED" – Amazon SES enables optimized shared delivery for your account. * "DISABLED" – Amazon SES disables optimized shared delivery for your account. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / close close ***** SESV2.Client.close() Closes underlying endpoint connections. SESV2 / Client / get_blacklist_reports get_blacklist_reports ********************* SESV2.Client.get_blacklist_reports(**kwargs) Retrieve a list of the blacklists that your dedicated IP addresses appear on. See also: AWS API Documentation **Request Syntax** response = client.get_blacklist_reports( BlacklistItemNames=[ 'string', ] ) Parameters: **BlacklistItemNames** (*list*) -- **[REQUIRED]** A list of IP addresses that you want to retrieve blacklist information about. You can only specify the dedicated IP addresses that you use to send email using Amazon SES or Amazon Pinpoint. * *(string) --* An IP address that you want to obtain blacklist information for. Return type: dict Returns: **Response Syntax** { 'BlacklistReport': { 'string': [ { 'RblName': 'string', 'ListingTime': datetime(2015, 1, 1), 'Description': 'string' }, ] } } **Response Structure** * *(dict) --* An object that contains information about blacklist events. * **BlacklistReport** *(dict) --* An object that contains information about a blacklist that one of your dedicated IP addresses appears on. * *(string) --* An IP address that you want to obtain blacklist information for. * *(list) --* * *(dict) --* An object that contains information about a blacklisting event that impacts one of the dedicated IP addresses that is associated with your account. * **RblName** *(string) --* The name of the blacklist that the IP address appears on. * **ListingTime** *(datetime) --* The time when the blacklisting event occurred. * **Description** *(string) --* Additional information about the blacklisting event, as provided by the blacklist maintainer. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / batch_get_metric_data batch_get_metric_data ********************* SESV2.Client.batch_get_metric_data(**kwargs) Retrieves batches of metric data collected based on your sending activity. You can execute this operation no more than 16 times per second, and with at most 160 queries from the batches per second (cumulative). See also: AWS API Documentation **Request Syntax** response = client.batch_get_metric_data( Queries=[ { 'Id': 'string', 'Namespace': 'VDM', 'Metric': 'SEND'|'COMPLAINT'|'PERMANENT_BOUNCE'|'TRANSIENT_BOUNCE'|'OPEN'|'CLICK'|'DELIVERY'|'DELIVERY_OPEN'|'DELIVERY_CLICK'|'DELIVERY_COMPLAINT', 'Dimensions': { 'string': 'string' }, 'StartDate': datetime(2015, 1, 1), 'EndDate': datetime(2015, 1, 1) }, ] ) Parameters: **Queries** (*list*) -- **[REQUIRED]** A list of queries for metrics to be retrieved. * *(dict) --* Represents a single metric data query to include in a batch. * **Id** *(string) --* **[REQUIRED]** The query identifier. * **Namespace** *(string) --* **[REQUIRED]** The query namespace - e.g. "VDM" * **Metric** *(string) --* **[REQUIRED]** The queried metric. This can be one of the following: * "SEND" – Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient. * "COMPLAINT" – Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient * "PERMANENT_BOUNCE" – Permanent bounces - i.e. feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient. * "TRANSIENT_BOUNCE" – Transient bounces - i.e. feedback received for delivery failures excluding issues with non- existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient. * "OPEN" – Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient. * "CLICK" – Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient. * "DELIVERY" – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient. * "DELIVERY_OPEN" – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers. * "DELIVERY_CLICK" – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers. * "DELIVERY_COMPLAINT" – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement. * **Dimensions** *(dict) --* An object that contains mapping between "MetricDimensionName" and "MetricDimensionValue" to filter metrics by. * *(string) --* The "BatchGetMetricDataQuery" dimension name. This can be one of the following: * "EMAIL_IDENTITY" – The email identity used when sending messages. * "CONFIGURATION_SET" – The configuration set used when sending messages (if one was used). * "ISP" – The recipient ISP (e.g. "Gmail", "Yahoo", etc.). * *(string) --* A list of values associated with the "MetricDimensionName" to filter metrics by. Can either be "*" as a wildcard for all values or a list of up to 10 specific values. If one "Dimension" has the "*" value, other dimensions can only contain one value. * **StartDate** *(datetime) --* **[REQUIRED]** Represents the start date for the query interval. * **EndDate** *(datetime) --* **[REQUIRED]** Represents the end date for the query interval. Return type: dict Returns: **Response Syntax** { 'Results': [ { 'Id': 'string', 'Timestamps': [ datetime(2015, 1, 1), ], 'Values': [ 123, ] }, ], 'Errors': [ { 'Id': 'string', 'Code': 'INTERNAL_FAILURE'|'ACCESS_DENIED', 'Message': 'string' }, ] } **Response Structure** * *(dict) --* Represents the result of processing your metric data batch request * **Results** *(list) --* A list of successfully retrieved "MetricDataResult". * *(dict) --* The result of a single metric data query. * **Id** *(string) --* The query identifier. * **Timestamps** *(list) --* A list of timestamps for the metric data results. * *(datetime) --* * **Values** *(list) --* A list of values (cumulative / sum) for the metric data results. * *(integer) --* * **Errors** *(list) --* A list of "MetricDataError" encountered while processing your metric data batch request. * *(dict) --* An error corresponding to the unsuccessful processing of a single metric data query. * **Id** *(string) --* The query identifier. * **Code** *(string) --* The query error code. Can be one of: * "INTERNAL_FAILURE" – Amazon SES has failed to process one of the queries. * "ACCESS_DENIED" – You have insufficient access to retrieve metrics based on the given query. * **Message** *(string) --* The error message associated with the current query error. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.InternalServiceErrorException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / update_custom_verification_email_template update_custom_verification_email_template ***************************************** SESV2.Client.update_custom_verification_email_template(**kwargs) Updates an existing custom verification email template. For more information about custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.update_custom_verification_email_template( TemplateName='string', FromEmailAddress='string', TemplateSubject='string', TemplateContent='string', SuccessRedirectionURL='string', FailureRedirectionURL='string' ) Parameters: * **TemplateName** (*string*) -- **[REQUIRED]** The name of the custom verification email template that you want to update. * **FromEmailAddress** (*string*) -- **[REQUIRED]** The email address that the custom verification email is sent from. * **TemplateSubject** (*string*) -- **[REQUIRED]** The subject line of the custom verification email. * **TemplateContent** (*string*) -- **[REQUIRED]** The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom verification email frequently asked questions in the *Amazon SES Developer Guide*. * **SuccessRedirectionURL** (*string*) -- **[REQUIRED]** The URL that the recipient of the verification email is sent to if his or her address is successfully verified. * **FailureRedirectionURL** (*string*) -- **[REQUIRED]** The URL that the recipient of the verification email is sent to if his or her address is not successfully verified. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / delete_multi_region_endpoint delete_multi_region_endpoint **************************** SESV2.Client.delete_multi_region_endpoint(**kwargs) Deletes a multi-region endpoint (global-endpoint). Only multi-region endpoints (global-endpoints) whose primary region is the AWS-Region where operation is executed can be deleted. See also: AWS API Documentation **Request Syntax** response = client.delete_multi_region_endpoint( EndpointName='string' ) Parameters: **EndpointName** (*string*) -- **[REQUIRED]** The name of the multi-region endpoint (global-endpoint) to be deleted. Return type: dict Returns: **Response Syntax** { 'Status': 'CREATING'|'READY'|'FAILED'|'DELETING' } **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. * **Status** *(string) --* A status of the multi-region endpoint (global-endpoint) right after the delete request. * "CREATING" – The resource is being provisioned. * "READY" – The resource is ready to use. * "FAILED" – The resource failed to be provisioned. * "DELETING" – The resource is being deleted as requested. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / delete_email_identity_policy delete_email_identity_policy **************************** SESV2.Client.delete_email_identity_policy(**kwargs) Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.delete_email_identity_policy( EmailIdentity='string', PolicyName='string' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **PolicyName** (*string*) -- **[REQUIRED]** The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_dedicated_ip_pool create_dedicated_ip_pool ************************ SESV2.Client.create_dedicated_ip_pool(**kwargs) Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your Amazon Web Services account. You can associate a pool with a configuration set. When you send an email that uses that configuration set, the message is sent from one of the addresses in the associated pool. See also: AWS API Documentation **Request Syntax** response = client.create_dedicated_ip_pool( PoolName='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], ScalingMode='STANDARD'|'MANAGED' ) Parameters: * **PoolName** (*string*) -- **[REQUIRED]** The name of the dedicated IP pool. * **Tags** (*list*) -- An object that defines the tags (keys and values) that you want to associate with the pool. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **ScalingMode** (*string*) -- The type of scaling mode. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / send_email send_email ********** SESV2.Client.send_email(**kwargs) Sends an email message. You can use the Amazon SES API v2 to send the following types of messages: * **Simple** – A standard email message. When you create this type of message, you specify the sender, the recipient, and the message body, and Amazon SES assembles the message for you. * **Raw** – A raw, MIME-formatted email message. When you send this type of email, you have to specify all of the message headers, as well as the message body. You can use this message type to send messages that contain attachments. The message that you specify has to be a valid MIME message. * **Templated** – A message that contains personalization tags. When you send this type of email, Amazon SES API v2 automatically replaces the tags with values that you specify. See also: AWS API Documentation **Request Syntax** response = client.send_email( FromEmailAddress='string', FromEmailAddressIdentityArn='string', Destination={ 'ToAddresses': [ 'string', ], 'CcAddresses': [ 'string', ], 'BccAddresses': [ 'string', ] }, ReplyToAddresses=[ 'string', ], FeedbackForwardingEmailAddress='string', FeedbackForwardingEmailAddressIdentityArn='string', Content={ 'Simple': { 'Subject': { 'Data': 'string', 'Charset': 'string' }, 'Body': { 'Text': { 'Data': 'string', 'Charset': 'string' }, 'Html': { 'Data': 'string', 'Charset': 'string' } }, 'Headers': [ { 'Name': 'string', 'Value': 'string' }, ], 'Attachments': [ { 'RawContent': b'bytes', 'ContentDisposition': 'ATTACHMENT'|'INLINE', 'FileName': 'string', 'ContentDescription': 'string', 'ContentId': 'string', 'ContentTransferEncoding': 'BASE64'|'QUOTED_PRINTABLE'|'SEVEN_BIT', 'ContentType': 'string' }, ] }, 'Raw': { 'Data': b'bytes' }, 'Template': { 'TemplateName': 'string', 'TemplateArn': 'string', 'TemplateContent': { 'Subject': 'string', 'Text': 'string', 'Html': 'string' }, 'TemplateData': 'string', 'Headers': [ { 'Name': 'string', 'Value': 'string' }, ], 'Attachments': [ { 'RawContent': b'bytes', 'ContentDisposition': 'ATTACHMENT'|'INLINE', 'FileName': 'string', 'ContentDescription': 'string', 'ContentId': 'string', 'ContentTransferEncoding': 'BASE64'|'QUOTED_PRINTABLE'|'SEVEN_BIT', 'ContentType': 'string' }, ] } }, EmailTags=[ { 'Name': 'string', 'Value': 'string' }, ], ConfigurationSetName='string', EndpointId='string', TenantName='string', ListManagementOptions={ 'ContactListName': 'string', 'TopicName': 'string' } ) Parameters: * **FromEmailAddress** (*string*) -- The email address to use as the "From" address for the email. The address that you specify has to be verified. * **FromEmailAddressIdentityArn** (*string*) -- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the "FromEmailAddress" parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the "FromEmailAddressIdentityArn" to be arn:aws:ses:us- east-1:123456789012:identity/example.com, and the "FromEmailAddress" to be sender@example.com. For more information about sending authorization, see the Amazon SES Developer Guide. For Raw emails, the "FromEmailAddressIdentityArn" value overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content. * **Destination** (*dict*) -- An object that contains the recipients of the email message. * **ToAddresses** *(list) --* An array that contains the email addresses of the "To" recipients for the email. * *(string) --* * **CcAddresses** *(list) --* An array that contains the email addresses of the "CC" (carbon copy) recipients for the email. * *(string) --* * **BccAddresses** *(list) --* An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email. * *(string) --* * **ReplyToAddresses** (*list*) -- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply. * *(string) --* * **FeedbackForwardingEmailAddress** (*string*) -- The address that you want bounce and complaint notifications to be sent to. * **FeedbackForwardingEmailAddressIdentityArn** (*string*) -- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the "FeedbackForwardingEmailAddress" parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the "FeedbackForwardingEmailAddressIdentityArn" to be arn:aws:ses :us-east-1:123456789012:identity/example.com, and the "FeedbackForwardingEmailAddress" to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide. * **Content** (*dict*) -- **[REQUIRED]** An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message. * **Simple** *(dict) --* The simple email message. The message consists of a subject, message body and attachments list. * **Subject** *(dict) --* **[REQUIRED]** The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded- word syntax, as described in RFC 2047. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Body** *(dict) --* **[REQUIRED]** The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both. * **Text** *(dict) --* An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Html** *(dict) --* An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more. * **Data** *(string) --* **[REQUIRED]** The content of the message itself. * **Charset** *(string) --* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify "UTF-8", "ISO-8859-1", or "Shift_JIS". * **Headers** *(list) --* The list of message headers that will be added to the email message. * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **Attachments** *(list) --* The List of attachments to include in your email. All recipients will receive the same attachments. * *(dict) --* Contains metadata and attachment raw content. * **RawContent** *(bytes) --* **[REQUIRED]** The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * **ContentDisposition** *(string) --* A standard descriptor indicating how the attachment should be rendered in the email. Supported values: "ATTACHMENT" or "INLINE". * **FileName** *(string) --* **[REQUIRED]** The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide. * **ContentDescription** *(string) --* A brief description of the attachment content. * **ContentId** *(string) --* Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content. * **ContentTransferEncoding** *(string) --* Specifies how the attachment is encoded. Supported values: "BASE64", "QUOTED_PRINTABLE", "SEVEN_BIT". * **ContentType** *(string) --* The MIME type of the attachment. Note: Example: "application/pdf", "image/jpeg" * **Raw** *(dict) --* The raw email message. The message has to meet the following criteria: * The message has to contain a header and a body, separated by one blank line. * All of the required header fields must be present in the message. * Each part of a multipart MIME message must be formatted properly. * If you include attachments, they must be in a file format that the Amazon SES API v2 supports. * The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly. * The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321. * **Data** *(bytes) --* **[REQUIRED]** The raw email message. The message has to meet the following criteria: * The message has to contain a header and a body, separated by one blank line. * All of the required header fields must be present in the message. * Each part of a multipart MIME message must be formatted properly. * Attachments must be in a file format that the Amazon SES supports. * The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly. * The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321. * **Template** *(dict) --* The template to use for the email message. * **TemplateName** *(string) --* The name of the template. You will refer to this name when you send email using the "SendEmail" or "SendBulkEmail" operations. * **TemplateArn** *(string) --* The Amazon Resource Name (ARN) of the template. * **TemplateContent** *(dict) --* The content of the template. Note: Amazon SES supports only simple substitions when you send email using the "SendEmail" or "SendBulkEmail" operations and you provide the full template content in the request. * **Subject** *(string) --* The subject line of the email. * **Text** *(string) --* The email body that will be visible to recipients whose email clients do not display HTML. * **Html** *(string) --* The HTML body of the email. * **TemplateData** *(string) --* An object that defines the values to use for message variables in the template. This object is a set of key- value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable. * **Headers** *(list) --* The list of message headers that will be added to the email message. * *(dict) --* Contains the name and value of a message header that you add to an email. * **Name** *(string) --* **[REQUIRED]** The name of the message header. The message header name has to meet the following criteria: * Can contain any printable ASCII character (33 - 126) except for colon (:). * Can contain no more than 126 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message header. The message header value has to meet the following criteria: * Can contain any printable ASCII character. * Can contain no more than 870 characters. * **Attachments** *(list) --* The List of attachments to include in your email. All recipients will receive the same attachments. * *(dict) --* Contains metadata and attachment raw content. * **RawContent** *(bytes) --* **[REQUIRED]** The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. * **ContentDisposition** *(string) --* A standard descriptor indicating how the attachment should be rendered in the email. Supported values: "ATTACHMENT" or "INLINE". * **FileName** *(string) --* **[REQUIRED]** The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide. * **ContentDescription** *(string) --* A brief description of the attachment content. * **ContentId** *(string) --* Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content. * **ContentTransferEncoding** *(string) --* Specifies how the attachment is encoded. Supported values: "BASE64", "QUOTED_PRINTABLE", "SEVEN_BIT". * **ContentType** *(string) --* The MIME type of the attachment. Note: Example: "application/pdf", "image/jpeg" * **EmailTags** (*list*) -- A list of tags, in the form of name/value pairs, to apply to an email that you send using the "SendEmail" operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. * *(dict) --* Contains the name and value of a tag that you apply to an email. You can use message tags when you publish email sending events. * **Name** *(string) --* **[REQUIRED]** The name of the message tag. The message tag name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **Value** *(string) --* **[REQUIRED]** The value of the message tag. The message tag value has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **ConfigurationSetName** (*string*) -- The name of the configuration set to use when sending the email. * **EndpointId** (*string*) -- The ID of the multi-region endpoint (global-endpoint). * **TenantName** (*string*) -- The name of the tenant through which this email will be sent. Note: The email sending operation will only succeed if all referenced resources (identities, configuration sets, and templates) are associated with this tenant. * **ListManagementOptions** (*dict*) -- An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe. * **ContactListName** *(string) --* **[REQUIRED]** The name of the contact list. * **TopicName** *(string) --* The name of the topic. Return type: dict Returns: **Response Syntax** { 'MessageId': 'string' } **Response Structure** * *(dict) --* A unique message ID that you receive when an email is accepted for sending. * **MessageId** *(string) --* A unique identifier for the message that is generated when the message is accepted. Note: It's possible for Amazon SES to accept a message without sending it. For example, this can happen when the message that you're trying to send has an attachment that contains a virus, or when you send a templated email that contains invalid personalization content. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.AccountSuspendedException" * "SESV2.Client.exceptions.SendingPausedException" * "SESV2.Client.exceptions.MessageRejected" * "SESV2.Client.exceptions.MailFromDomainNotVerifiedException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_recommendations list_recommendations ******************** SESV2.Client.list_recommendations(**kwargs) Lists the recommendations present in your Amazon SES account in the current Amazon Web Services Region. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.list_recommendations( Filter={ 'string': 'string' }, NextToken='string', PageSize=123 ) Parameters: * **Filter** (*dict*) -- Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of "STATUS" and "IMPACT" or "STATUS" and "TYPE" * *(string) --* The "ListRecommendations" filter type. This can be one of the following: * "TYPE" – The recommendation type, with values like "DKIM", "SPF", "DMARC", "BIMI", or "COMPLAINT". * "IMPACT" – The recommendation impact, with values like "HIGH" or "LOW". * "STATUS" – The recommendation status, with values like "OPEN" or "FIXED". * "RESOURCE_ARN" – The resource affected by the recommendation, with values like "arn:aws:ses:us- east-1:123456789012:identity/example.com". * *(string) --* * **NextToken** (*string*) -- A token returned from a previous call to "ListRecommendations" to indicate the position in the list of recommendations. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListRecommendations". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 100. Return type: dict Returns: **Response Syntax** { 'Recommendations': [ { 'ResourceArn': 'string', 'Type': 'DKIM'|'DMARC'|'SPF'|'BIMI'|'COMPLAINT'|'BOUNCE'|'FEEDBACK_3P'|'IP_LISTING', 'Description': 'string', 'Status': 'OPEN'|'FIXED', 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1), 'Impact': 'LOW'|'HIGH' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Contains the response to your request to retrieve the list of recommendations for your account. * **Recommendations** *(list) --* The recommendations applicable to your account. * *(dict) --* A recommendation generated for your account. * **ResourceArn** *(string) --* The resource affected by the recommendation, with values like "arn:aws:ses:us- east-1:123456789012:identity/example.com". * **Type** *(string) --* The recommendation type, with values like "DKIM", "SPF", "DMARC", "BIMI", or "COMPLAINT". * **Description** *(string) --* The recommendation description / disambiguator - e.g. "DKIM1" and "DKIM2" are different recommendations about your DKIM setup. * **Status** *(string) --* The recommendation status, with values like "OPEN" or "FIXED". * **CreatedTimestamp** *(datetime) --* The first time this issue was encountered and the recommendation was generated. * **LastUpdatedTimestamp** *(datetime) --* The last time the recommendation was updated. * **Impact** *(string) --* The recommendation impact, with values like "HIGH" or "LOW". * **NextToken** *(string) --* A string token indicating that there might be additional recommendations available to be listed. Use the token provided in the "ListRecommendationsResponse" to use in the subsequent call to "ListRecommendations" with the same parameters to retrieve the next page of recommendations. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / put_account_dedicated_ip_warmup_attributes put_account_dedicated_ip_warmup_attributes ****************************************** SESV2.Client.put_account_dedicated_ip_warmup_attributes(**kwargs) Enable or disable the automatic warm-up feature for dedicated IP addresses. See also: AWS API Documentation **Request Syntax** response = client.put_account_dedicated_ip_warmup_attributes( AutoWarmupEnabled=True|False ) Parameters: **AutoWarmupEnabled** (*boolean*) -- Enables or disables the automatic warm-up feature for dedicated IP addresses that are associated with your Amazon SES account in the current Amazon Web Services Region. Set to "true" to enable the automatic warm- up feature, or set to "false" to disable it. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_resource_tenants list_resource_tenants ********************* SESV2.Client.list_resource_tenants(**kwargs) List all tenants associated with a specific resource. This operation returns a list of tenants that are associated with the specified resource. This is useful for understanding which tenants are currently using a particular resource such as an email identity, configuration set, or email template. See also: AWS API Documentation **Request Syntax** response = client.list_resource_tenants( ResourceArn='string', PageSize=123, NextToken='string' ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to list associated tenants for. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListResourceTenants". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. * **NextToken** (*string*) -- A token returned from a previous call to "ListResourceTenants" to indicate the position in the list of resource tenants. Return type: dict Returns: **Response Syntax** { 'ResourceTenants': [ { 'TenantName': 'string', 'TenantId': 'string', 'ResourceArn': 'string', 'AssociatedTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Information about tenants associated with a specific resource. * **ResourceTenants** *(list) --* An array that contains information about each tenant associated with the resource. * *(dict) --* A structure that contains information about a tenant associated with a resource. * **TenantName** *(string) --* The name of the tenant associated with the resource. * **TenantId** *(string) --* A unique identifier for the tenant associated with the resource. * **ResourceArn** *(string) --* The Amazon Resource Name (ARN) of the resource. * **AssociatedTimestamp** *(datetime) --* The date and time when the resource was associated with the tenant. * **NextToken** *(string) --* A token that indicates that there are additional tenants to list. To view additional tenants, issue another request to "ListResourceTenants", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_configuration_set_event_destinations get_configuration_set_event_destinations **************************************** SESV2.Client.get_configuration_set_event_destinations(**kwargs) Retrieve a list of event destinations that are associated with a configuration set. *Events* include message sends, deliveries, opens, clicks, bounces, and complaints. *Event destinations* are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target. See also: AWS API Documentation **Request Syntax** response = client.get_configuration_set_event_destinations( ConfigurationSetName='string' ) Parameters: **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set that contains the event destination. Return type: dict Returns: **Response Syntax** { 'EventDestinations': [ { 'Name': 'string', 'Enabled': True|False, 'MatchingEventTypes': [ 'SEND'|'REJECT'|'BOUNCE'|'COMPLAINT'|'DELIVERY'|'OPEN'|'CLICK'|'RENDERING_FAILURE'|'DELIVERY_DELAY'|'SUBSCRIPTION', ], 'KinesisFirehoseDestination': { 'IamRoleArn': 'string', 'DeliveryStreamArn': 'string' }, 'CloudWatchDestination': { 'DimensionConfigurations': [ { 'DimensionName': 'string', 'DimensionValueSource': 'MESSAGE_TAG'|'EMAIL_HEADER'|'LINK_TAG', 'DefaultDimensionValue': 'string' }, ] }, 'SnsDestination': { 'TopicArn': 'string' }, 'EventBridgeDestination': { 'EventBusArn': 'string' }, 'PinpointDestination': { 'ApplicationArn': 'string' } }, ] } **Response Structure** * *(dict) --* Information about an event destination for a configuration set. * **EventDestinations** *(list) --* An array that includes all of the events destinations that have been configured for the configuration set. * *(dict) --* In the Amazon SES API v2, *events* include message sends, deliveries, opens, clicks, bounces, complaints and delivery delays. *Event destinations* are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage. * **Name** *(string) --* A name that identifies the event destination. * **Enabled** *(boolean) --* If "true", the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this "EventDestinationDefinition". If "false", the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations. * **MatchingEventTypes** *(list) --* The types of events that Amazon SES sends to the specified event destinations. * "SEND" - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) * "REJECT" - SES accepted the email, but determined that it contained a virus and didn’t attempt to deliver it to the recipient’s mail server. * "BOUNCE" - (*Hard bounce*) The recipient's mail server permanently rejected the email. (*Soft bounces* are only included when SES fails to deliver the email after retrying for a period of time.) * "COMPLAINT" - The email was successfully delivered to the recipient’s mail server, but the recipient marked it as spam. * "DELIVERY" - SES successfully delivered the email to the recipient's mail server. * "OPEN" - The recipient received the message and opened it in their email client. * "CLICK" - The recipient clicked one or more links in the email. * "RENDERING_FAILURE" - The email wasn't sent because of a template rendering issue. This event type can occur when template data is missing, or when there is a mismatch between template parameters and data. (This event type only occurs when you send email using the SendEmail or SendBulkEmail API operations.) * "DELIVERY_DELAY" - The email couldn't be delivered to the recipient’s mail server because a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox is full, or when the receiving email server experiences a transient issue. * "SUBSCRIPTION" - The email was successfully delivered, but the recipient updated their subscription preferences by clicking on an *unsubscribe* link as part of your subscription management. * *(string) --* An email sending event type. For example, email sends, opens, and bounces are all email events. * **KinesisFirehoseDestination** *(dict) --* An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift. * **IamRoleArn** *(string) --* The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream. * **DeliveryStreamArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to. * **CloudWatchDestination** *(dict) --* An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * **DimensionConfigurations** *(list) --* An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. * *(dict) --* An object that defines the dimension configuration to use when you send email events to Amazon CloudWatch. * **DimensionName** *(string) --* The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **DimensionValueSource** *(string) --* The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an "X-SES-MESSAGE-TAGS" header or a parameter to the "SendEmail" or "SendRawEmail" API, choose "messageTag". To use your own email headers, choose "emailHeader". To use link tags, choose "linkTags". * **DefaultDimensionValue** *(string) --* The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria: * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.). * It can contain no more than 256 characters. * **SnsDestination** *(dict) --* An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notifications when certain email events occur. * **TopicArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide. * **EventBridgeDestination** *(dict) --* An object that defines an Amazon EventBridge destination for email events. You can use Amazon EventBridge to send notifications when certain email events occur. * **EventBusArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish email events to. Only the default bus is supported. * **PinpointDestination** *(dict) --* An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the *Amazon Pinpoint User Guide*. * **ApplicationArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_deliverability_test_reports list_deliverability_test_reports ******************************** SESV2.Client.list_deliverability_test_reports(**kwargs) Show a list of the predictive inbox placement tests that you've performed, regardless of their statuses. For predictive inbox placement tests that are complete, you can use the "GetDeliverabilityTestReport" operation to view the results. See also: AWS API Documentation **Request Syntax** response = client.list_deliverability_test_reports( NextToken='string', PageSize=123 ) Parameters: * **NextToken** (*string*) -- A token returned from a previous call to "ListDeliverabilityTestReports" to indicate the position in the list of predictive inbox placement tests. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListDeliverabilityTestReports". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. Return type: dict Returns: **Response Syntax** { 'DeliverabilityTestReports': [ { 'ReportId': 'string', 'ReportName': 'string', 'Subject': 'string', 'FromEmailAddress': 'string', 'CreateDate': datetime(2015, 1, 1), 'DeliverabilityTestStatus': 'IN_PROGRESS'|'COMPLETED' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of the predictive inbox placement test reports that are available for your account, regardless of whether or not those tests are complete. * **DeliverabilityTestReports** *(list) --* An object that contains a lists of predictive inbox placement tests that you've performed. * *(dict) --* An object that contains metadata related to a predictive inbox placement test. * **ReportId** *(string) --* A unique string that identifies the predictive inbox placement test. * **ReportName** *(string) --* A name that helps you identify a predictive inbox placement test report. * **Subject** *(string) --* The subject line for an email that you submitted in a predictive inbox placement test. * **FromEmailAddress** *(string) --* The sender address that you specified for the predictive inbox placement test. * **CreateDate** *(datetime) --* The date and time when the predictive inbox placement test was created. * **DeliverabilityTestStatus** *(string) --* The status of the predictive inbox placement test. If the status is "IN_PROGRESS", then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is "COMPLETE", then the test is finished, and you can use the "GetDeliverabilityTestReport" to view the results of the test. * **NextToken** *(string) --* A token that indicates that there are additional predictive inbox placement tests to list. To view additional predictive inbox placement tests, issue another request to "ListDeliverabilityTestReports", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_email_identity_feedback_attributes put_email_identity_feedback_attributes ************************************** SESV2.Client.put_email_identity_feedback_attributes(**kwargs) Used to enable or disable feedback forwarding for an identity. This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event. If the value is "true", you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the "Return-Path" header of the original email. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled). See also: AWS API Documentation **Request Syntax** response = client.put_email_identity_feedback_attributes( EmailIdentity='string', EmailForwardingEnabled=True|False ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **EmailForwardingEnabled** (*boolean*) -- Sets the feedback forwarding configuration for the identity. If the value is "true", you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the "Return-Path" header of the original email. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled). Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / get_domain_deliverability_campaign get_domain_deliverability_campaign ********************************** SESV2.Client.get_domain_deliverability_campaign(**kwargs) Retrieve all the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for. See also: AWS API Documentation **Request Syntax** response = client.get_domain_deliverability_campaign( CampaignId='string' ) Parameters: **CampaignId** (*string*) -- **[REQUIRED]** The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign. Return type: dict Returns: **Response Syntax** { 'DomainDeliverabilityCampaign': { 'CampaignId': 'string', 'ImageUrl': 'string', 'Subject': 'string', 'FromAddress': 'string', 'SendingIps': [ 'string', ], 'FirstSeenDateTime': datetime(2015, 1, 1), 'LastSeenDateTime': datetime(2015, 1, 1), 'InboxCount': 123, 'SpamCount': 123, 'ReadRate': 123.0, 'DeleteRate': 123.0, 'ReadDeleteRate': 123.0, 'ProjectedVolume': 123, 'Esps': [ 'string', ] } } **Response Structure** * *(dict) --* An object that contains all the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for. * **DomainDeliverabilityCampaign** *(dict) --* An object that contains the deliverability data for the campaign. * **CampaignId** *(string) --* The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign. * **ImageUrl** *(string) --* The URL of an image that contains a snapshot of the email message that was sent. * **Subject** *(string) --* The subject line, or title, of the email message. * **FromAddress** *(string) --* The verified email address that the email message was sent from. * **SendingIps** *(list) --* The IP addresses that were used to send the email message. * *(string) --* An IPv4 address. * **FirstSeenDateTime** *(datetime) --* The first time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message. * **LastSeenDateTime** *(datetime) --* The last time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message. * **InboxCount** *(integer) --* The number of email messages that were delivered to recipients’ inboxes. * **SpamCount** *(integer) --* The number of email messages that were delivered to recipients' spam or junk mail folders. * **ReadRate** *(float) --* The percentage of email messages that were opened by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **DeleteRate** *(float) --* The percentage of email messages that were deleted by recipients, without being opened first. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **ReadDeleteRate** *(float) --* The percentage of email messages that were opened and then deleted by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images. * **ProjectedVolume** *(integer) --* The projected number of recipients that the email message was sent to. * **Esps** *(list) --* The major email providers who handled the email message. * *(string) --* **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.NotFoundException" SESV2 / Client / put_configuration_set_suppression_options put_configuration_set_suppression_options ***************************************** SESV2.Client.put_configuration_set_suppression_options(**kwargs) Specify the account suppression list preferences for a configuration set. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_suppression_options( ConfigurationSetName='string', SuppressedReasons=[ 'BOUNCE'|'COMPLAINT', ] ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set to change the suppression list preferences for. * **SuppressedReasons** (*list*) -- A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following: * "COMPLAINT" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / list_suppressed_destinations list_suppressed_destinations **************************** SESV2.Client.list_suppressed_destinations(**kwargs) Retrieves a list of email addresses that are on the suppression list for your account. See also: AWS API Documentation **Request Syntax** response = client.list_suppressed_destinations( Reasons=[ 'BOUNCE'|'COMPLAINT', ], StartDate=datetime(2015, 1, 1), EndDate=datetime(2015, 1, 1), NextToken='string', PageSize=123 ) Parameters: * **Reasons** (*list*) -- The factors that caused the email address to be added to . * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. * **StartDate** (*datetime*) -- Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date. * **EndDate** (*datetime*) -- Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date. * **NextToken** (*string*) -- A token returned from a previous call to "ListSuppressedDestinations" to indicate the position in the list of suppressed email addresses. * **PageSize** (*integer*) -- The number of results to show in a single call to "ListSuppressedDestinations". If the number of results is larger than the number you specified in this parameter, then the response includes a "NextToken" element, which you can use to obtain additional results. Return type: dict Returns: **Response Syntax** { 'SuppressedDestinationSummaries': [ { 'EmailAddress': 'string', 'Reason': 'BOUNCE'|'COMPLAINT', 'LastUpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* A list of suppressed email addresses. * **SuppressedDestinationSummaries** *(list) --* A list of summaries, each containing a summary for a suppressed email destination. * *(dict) --* A summary that describes the suppressed email address. * **EmailAddress** *(string) --* The email address that's on the suppression list for your account. * **Reason** *(string) --* The reason that the address was added to the suppression list for your account. * **LastUpdateTime** *(datetime) --* The date and time when the suppressed destination was last updated, shown in Unix time format. * **NextToken** *(string) --* A token that indicates that there are additional email addresses on the suppression list for your account. To view additional suppressed addresses, issue another request to "ListSuppressedDestinations", and pass this token in the "NextToken" parameter. **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.InvalidNextTokenException" SESV2 / Client / get_deliverability_test_report get_deliverability_test_report ****************************** SESV2.Client.get_deliverability_test_report(**kwargs) Retrieve the results of a predictive inbox placement test. See also: AWS API Documentation **Request Syntax** response = client.get_deliverability_test_report( ReportId='string' ) Parameters: **ReportId** (*string*) -- **[REQUIRED]** A unique string that identifies the predictive inbox placement test. Return type: dict Returns: **Response Syntax** { 'DeliverabilityTestReport': { 'ReportId': 'string', 'ReportName': 'string', 'Subject': 'string', 'FromEmailAddress': 'string', 'CreateDate': datetime(2015, 1, 1), 'DeliverabilityTestStatus': 'IN_PROGRESS'|'COMPLETED' }, 'OverallPlacement': { 'InboxPercentage': 123.0, 'SpamPercentage': 123.0, 'MissingPercentage': 123.0, 'SpfPercentage': 123.0, 'DkimPercentage': 123.0 }, 'IspPlacements': [ { 'IspName': 'string', 'PlacementStatistics': { 'InboxPercentage': 123.0, 'SpamPercentage': 123.0, 'MissingPercentage': 123.0, 'SpfPercentage': 123.0, 'DkimPercentage': 123.0 } }, ], 'Message': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* The results of the predictive inbox placement test. * **DeliverabilityTestReport** *(dict) --* An object that contains the results of the predictive inbox placement test. * **ReportId** *(string) --* A unique string that identifies the predictive inbox placement test. * **ReportName** *(string) --* A name that helps you identify a predictive inbox placement test report. * **Subject** *(string) --* The subject line for an email that you submitted in a predictive inbox placement test. * **FromEmailAddress** *(string) --* The sender address that you specified for the predictive inbox placement test. * **CreateDate** *(datetime) --* The date and time when the predictive inbox placement test was created. * **DeliverabilityTestStatus** *(string) --* The status of the predictive inbox placement test. If the status is "IN_PROGRESS", then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is "COMPLETE", then the test is finished, and you can use the "GetDeliverabilityTestReport" to view the results of the test. * **OverallPlacement** *(dict) --* An object that specifies how many test messages that were sent during the predictive inbox placement test were delivered to recipients' inboxes, how many were sent to recipients' spam folders, and how many weren't delivered. * **InboxPercentage** *(float) --* The percentage of emails that arrived in recipients' inboxes during the predictive inbox placement test. * **SpamPercentage** *(float) --* The percentage of emails that arrived in recipients' spam or junk mail folders during the predictive inbox placement test. * **MissingPercentage** *(float) --* The percentage of emails that didn't arrive in recipients' inboxes at all during the predictive inbox placement test. * **SpfPercentage** *(float) --* The percentage of emails that were authenticated by using Sender Policy Framework (SPF) during the predictive inbox placement test. * **DkimPercentage** *(float) --* The percentage of emails that were authenticated by using DomainKeys Identified Mail (DKIM) during the predictive inbox placement test. * **IspPlacements** *(list) --* An object that describes how the test email was handled by several email providers, including Gmail, Hotmail, Yahoo, AOL, and others. * *(dict) --* An object that describes how email sent during the predictive inbox placement test was handled by a certain email provider. * **IspName** *(string) --* The name of the email provider that the inbox placement data applies to. * **PlacementStatistics** *(dict) --* An object that contains inbox placement metrics for a specific email provider. * **InboxPercentage** *(float) --* The percentage of emails that arrived in recipients' inboxes during the predictive inbox placement test. * **SpamPercentage** *(float) --* The percentage of emails that arrived in recipients' spam or junk mail folders during the predictive inbox placement test. * **MissingPercentage** *(float) --* The percentage of emails that didn't arrive in recipients' inboxes at all during the predictive inbox placement test. * **SpfPercentage** *(float) --* The percentage of emails that were authenticated by using Sender Policy Framework (SPF) during the predictive inbox placement test. * **DkimPercentage** *(float) --* The percentage of emails that were authenticated by using DomainKeys Identified Mail (DKIM) during the predictive inbox placement test. * **Message** *(string) --* An object that contains the message that you sent when you performed this predictive inbox placement test. * **Tags** *(list) --* An array of objects that define the tags (keys and values) that are associated with the predictive inbox placement test. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_tenant create_tenant ************* SESV2.Client.create_tenant(**kwargs) Create a tenant. *Tenants* are logical containers that group related SES resources together. Each tenant can have its own set of resources like email identities, configuration sets, and templates, along with reputation metrics and sending status. This helps isolate and manage email sending for different customers or business units within your Amazon SES API v2 account. See also: AWS API Documentation **Request Syntax** response = client.create_tenant( TenantName='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to create. The name can contain up to 64 alphanumeric characters, including letters, numbers, hyphens (-) and underscores (_) only. * **Tags** (*list*) -- An array of objects that define the tags (keys and values) to associate with the tenant * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. Return type: dict Returns: **Response Syntax** { 'TenantName': 'string', 'TenantId': 'string', 'TenantArn': 'string', 'CreatedTimestamp': datetime(2015, 1, 1), 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'SendingStatus': 'ENABLED'|'REINSTATED'|'DISABLED' } **Response Structure** * *(dict) --* Information about a newly created tenant. * **TenantName** *(string) --* The name of the tenant. * **TenantId** *(string) --* A unique identifier for the tenant. * **TenantArn** *(string) --* The Amazon Resource Name (ARN) of the tenant. * **CreatedTimestamp** *(datetime) --* The date and time when the tenant was created. * **Tags** *(list) --* An array of objects that define the tags (keys and values) associated with the tenant. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **SendingStatus** *(string) --* The status of email sending capability for the tenant. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_tenant delete_tenant ************* SESV2.Client.delete_tenant(**kwargs) Delete an existing tenant. When you delete a tenant, its associations with resources are removed, but the resources themselves are not deleted. See also: AWS API Documentation **Request Syntax** response = client.delete_tenant( TenantName='string' ) Parameters: **TenantName** (*string*) -- **[REQUIRED]** The name of the tenant to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_configuration_set create_configuration_set ************************ SESV2.Client.create_configuration_set(**kwargs) Create a configuration set. *Configuration sets* are groups of rules that you can apply to the emails that you send. You apply a configuration set to an email by specifying the name of the configuration set when you call the Amazon SES API v2. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email. See also: AWS API Documentation **Request Syntax** response = client.create_configuration_set( ConfigurationSetName='string', TrackingOptions={ 'CustomRedirectDomain': 'string', 'HttpsPolicy': 'REQUIRE'|'REQUIRE_OPEN_ONLY'|'OPTIONAL' }, DeliveryOptions={ 'TlsPolicy': 'REQUIRE'|'OPTIONAL', 'SendingPoolName': 'string', 'MaxDeliverySeconds': 123 }, ReputationOptions={ 'ReputationMetricsEnabled': True|False, 'LastFreshStart': datetime(2015, 1, 1) }, SendingOptions={ 'SendingEnabled': True|False }, Tags=[ { 'Key': 'string', 'Value': 'string' }, ], SuppressionOptions={ 'SuppressedReasons': [ 'BOUNCE'|'COMPLAINT', ] }, VdmOptions={ 'DashboardOptions': { 'EngagementMetrics': 'ENABLED'|'DISABLED' }, 'GuardianOptions': { 'OptimizedSharedDelivery': 'ENABLED'|'DISABLED' } }, ArchivingOptions={ 'ArchiveArn': 'string' } ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters, numbers, hyphens (-) and underscores (_) only. * **TrackingOptions** (*dict*) -- An object that defines the open and click tracking options for emails that you send using the configuration set. * **CustomRedirectDomain** *(string) --* **[REQUIRED]** The domain to use for tracking open and click events. * **HttpsPolicy** *(string) --* The https policy to use for tracking open and click events. * **DeliveryOptions** (*dict*) -- An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. * **TlsPolicy** *(string) --* Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is "Require", messages are only delivered if a TLS connection can be established. If the value is "Optional", messages can be delivered in plain text if a TLS connection can't be established. * **SendingPoolName** *(string) --* The name of the dedicated IP pool to associate with the configuration set. * **MaxDeliverySeconds** *(integer) --* The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email. If specified, the value must greater than or equal to 300 seconds (5 minutes) and less than or equal to 50400 seconds (840 minutes). * **ReputationOptions** (*dict*) -- An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. * **ReputationMetricsEnabled** *(boolean) --* If "true", tracking of reputation metrics is enabled for the configuration set. If "false", tracking of reputation metrics is disabled for the configuration set. * **LastFreshStart** *(datetime) --* The date and time (in Unix time) when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start. * **SendingOptions** (*dict*) -- An object that defines whether or not Amazon SES can send email that you send using the configuration set. * **SendingEnabled** *(boolean) --* If "true", email sending is enabled for the configuration set. If "false", email sending is disabled for the configuration set. * **Tags** (*list*) -- An array of objects that define the tags (keys and values) to associate with the configuration set. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **SuppressionOptions** (*dict*) -- An object that contains information about the suppression list preferences for your account. * **SuppressedReasons** *(list) --* A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following: * "COMPLAINT" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. * *(string) --* The reason that the address was added to the suppression list for your account. The value can be one of the following: * "COMPLAINT" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a complaint. * "BOUNCE" – Amazon SES added an email address to the suppression list for your account because a message sent to that address results in a hard bounce. * **VdmOptions** (*dict*) -- An object that defines the VDM options for emails that you send using the configuration set. * **DashboardOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Dashboard. * **EngagementMetrics** *(string) --* Specifies the status of your VDM engagement metrics collection. Can be one of the following: * "ENABLED" – Amazon SES enables engagement metrics for the configuration set. * "DISABLED" – Amazon SES disables engagement metrics for the configuration set. * **GuardianOptions** *(dict) --* Specifies additional settings for your VDM configuration as applicable to the Guardian. * **OptimizedSharedDelivery** *(string) --* Specifies the status of your VDM optimized shared delivery. Can be one of the following: * "ENABLED" – Amazon SES enables optimized shared delivery for the configuration set. * "DISABLED" – Amazon SES disables optimized shared delivery for the configuration set. * **ArchivingOptions** (*dict*) -- An object that defines the MailManager archiving options for emails that you send using the configuration set. * **ArchiveArn** *(string) --* The Amazon Resource Name (ARN) of the MailManager archive where the Amazon SES API v2 will archive sent emails. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / send_custom_verification_email send_custom_verification_email ****************************** SESV2.Client.send_custom_verification_email(**kwargs) 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. As a result of executing this operation, a customized verification email is sent to the specified address. To use this operation, you must first create a custom verification email template. For more information about creating and using custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.send_custom_verification_email( EmailAddress='string', TemplateName='string', ConfigurationSetName='string' ) Parameters: * **EmailAddress** (*string*) -- **[REQUIRED]** The email address to verify. * **TemplateName** (*string*) -- **[REQUIRED]** The name of the custom verification email template to use when sending the verification email. * **ConfigurationSetName** (*string*) -- Name of a configuration set to use when sending the verification email. Return type: dict Returns: **Response Syntax** { 'MessageId': 'string' } **Response Structure** * *(dict) --* The following element is returned by the service. * **MessageId** *(string) --* The unique message identifier returned from the "SendCustomVerificationEmail" operation. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.MessageRejected" * "SESV2.Client.exceptions.SendingPausedException" * "SESV2.Client.exceptions.MailFromDomainNotVerifiedException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_custom_verification_email_template delete_custom_verification_email_template ***************************************** SESV2.Client.delete_custom_verification_email_template(**kwargs) Deletes an existing custom verification email template. For more information about custom verification email templates, see Using custom verification email templates in the *Amazon SES Developer Guide*. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.delete_custom_verification_email_template( TemplateName='string' ) Parameters: **TemplateName** (*string*) -- **[REQUIRED]** The name of the custom verification email template that you want to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / tag_resource tag_resource ************ SESV2.Client.tag_resource(**kwargs) Add one or more tags (keys and values) to a specified resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for more specific tag values. A tag value acts as a descriptor within a tag key. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to add one or more tags to. * **Tags** (*list*) -- **[REQUIRED]** A list of the tags that you want to add to the resource. A tag consists of a required tag key ( "Key") and an associated tag value ( "Value"). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / put_configuration_set_reputation_options put_configuration_set_reputation_options **************************************** SESV2.Client.put_configuration_set_reputation_options(**kwargs) Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific Amazon Web Services Region. See also: AWS API Documentation **Request Syntax** response = client.put_configuration_set_reputation_options( ConfigurationSetName='string', ReputationMetricsEnabled=True|False ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set. * **ReputationMetricsEnabled** (*boolean*) -- If "true", tracking of reputation metrics is enabled for the configuration set. If "false", tracking of reputation metrics is disabled for the configuration set. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / update_reputation_entity_policy update_reputation_entity_policy ******************************* SESV2.Client.update_reputation_entity_policy(**kwargs) Update the reputation management policy for a reputation entity. The policy determines how the entity responds to reputation findings, such as automatically pausing sending when certain thresholds are exceeded. Reputation management policies are Amazon Web Services Amazon SES- managed (predefined policies). You can select from none, standard, and strict policies. See also: AWS API Documentation **Request Syntax** response = client.update_reputation_entity_policy( ReputationEntityType='RESOURCE', ReputationEntityReference='string', ReputationEntityPolicy='string' ) Parameters: * **ReputationEntityType** (*string*) -- **[REQUIRED]** The type of reputation entity. Currently, only "RESOURCE" type entities are supported. * **ReputationEntityReference** (*string*) -- **[REQUIRED]** The unique identifier for the reputation entity. For resource- type entities, this is the Amazon Resource Name (ARN) of the resource. * **ReputationEntityPolicy** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the reputation management policy to apply to this entity. This is an Amazon Web Services Amazon SES-managed policy. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body. **Exceptions** * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConflictException" SESV2 / Client / update_configuration_set_event_destination update_configuration_set_event_destination ****************************************** SESV2.Client.update_configuration_set_event_destination(**kwargs) Update the configuration of an event destination for a configuration set. *Events* include message sends, deliveries, opens, clicks, bounces, and complaints. *Event destinations* are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target. See also: AWS API Documentation **Request Syntax** response = client.update_configuration_set_event_destination( ConfigurationSetName='string', EventDestinationName='string', EventDestination={ 'Enabled': True|False, 'MatchingEventTypes': [ 'SEND'|'REJECT'|'BOUNCE'|'COMPLAINT'|'DELIVERY'|'OPEN'|'CLICK'|'RENDERING_FAILURE'|'DELIVERY_DELAY'|'SUBSCRIPTION', ], 'KinesisFirehoseDestination': { 'IamRoleArn': 'string', 'DeliveryStreamArn': 'string' }, 'CloudWatchDestination': { 'DimensionConfigurations': [ { 'DimensionName': 'string', 'DimensionValueSource': 'MESSAGE_TAG'|'EMAIL_HEADER'|'LINK_TAG', 'DefaultDimensionValue': 'string' }, ] }, 'SnsDestination': { 'TopicArn': 'string' }, 'EventBridgeDestination': { 'EventBusArn': 'string' }, 'PinpointDestination': { 'ApplicationArn': 'string' } } ) Parameters: * **ConfigurationSetName** (*string*) -- **[REQUIRED]** The name of the configuration set that contains the event destination to modify. * **EventDestinationName** (*string*) -- **[REQUIRED]** The name of the event destination. * **EventDestination** (*dict*) -- **[REQUIRED]** An object that defines the event destination. * **Enabled** *(boolean) --* If "true", the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this "EventDestinationDefinition". If "false", the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations. * **MatchingEventTypes** *(list) --* An array that specifies which events the Amazon SES API v2 should send to the destinations in this "EventDestinationDefinition". * *(string) --* An email sending event type. For example, email sends, opens, and bounces are all email events. * **KinesisFirehoseDestination** *(dict) --* An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift. * **IamRoleArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream. * **DeliveryStreamArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to. * **CloudWatchDestination** *(dict) --* An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * **DimensionConfigurations** *(list) --* **[REQUIRED]** An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. * *(dict) --* An object that defines the dimension configuration to use when you send email events to Amazon CloudWatch. * **DimensionName** *(string) --* **[REQUIRED]** The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria: * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). * It can contain no more than 256 characters. * **DimensionValueSource** *(string) --* **[REQUIRED]** The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an "X -SES-MESSAGE-TAGS" header or a parameter to the "SendEmail" or "SendRawEmail" API, choose "messageTag". To use your own email headers, choose "emailHeader". To use link tags, choose "linkTags". * **DefaultDimensionValue** *(string) --* **[REQUIRED]** The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria: * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.). * It can contain no more than 256 characters. * **SnsDestination** *(dict) --* An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notifications when certain email events occur. * **TopicArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide. * **EventBridgeDestination** *(dict) --* An object that defines an Amazon EventBridge destination for email events. You can use Amazon EventBridge to send notifications when certain email events occur. * **EventBusArn** *(string) --* **[REQUIRED]** The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish email events to. Only the default bus is supported. * **PinpointDestination** *(dict) --* An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the *Amazon Pinpoint User Guide*. * **ApplicationArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / delete_suppressed_destination delete_suppressed_destination ***************************** SESV2.Client.delete_suppressed_destination(**kwargs) Removes an email address from the suppression list for your account. See also: AWS API Documentation **Request Syntax** response = client.delete_suppressed_destination( EmailAddress='string' ) Parameters: **EmailAddress** (*string*) -- **[REQUIRED]** The suppressed email destination to remove from the account suppression list. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.TooManyRequestsException" SESV2 / Client / delete_email_identity delete_email_identity ********************* SESV2.Client.delete_email_identity(**kwargs) Deletes an email identity. An identity can be either an email address or a domain name. See also: AWS API Documentation **Request Syntax** response = client.delete_email_identity( EmailIdentity='string' ) Parameters: **EmailIdentity** (*string*) -- **[REQUIRED]** The identity (that is, the email address or domain) to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" SESV2 / Client / put_dedicated_ip_in_pool put_dedicated_ip_in_pool ************************ SESV2.Client.put_dedicated_ip_in_pool(**kwargs) Move a dedicated IP address to an existing dedicated IP pool. Note: The dedicated IP address that you specify must already exist, and must be associated with your Amazon Web Services account.The dedicated IP pool you specify must already exist. You can create a new pool by using the "CreateDedicatedIpPool" operation. See also: AWS API Documentation **Request Syntax** response = client.put_dedicated_ip_in_pool( Ip='string', DestinationPoolName='string' ) Parameters: * **Ip** (*string*) -- **[REQUIRED]** The IP address that you want to move to the dedicated IP pool. The value you specify has to be a dedicated IP address that's associated with your Amazon Web Services account. * **DestinationPoolName** (*string*) -- **[REQUIRED]** The name of the IP pool that you want to add the dedicated IP address to. You have to specify an IP pool that already exists. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / put_email_identity_dkim_attributes put_email_identity_dkim_attributes ********************************** SESV2.Client.put_email_identity_dkim_attributes(**kwargs) Used to enable or disable DKIM authentication for an email identity. See also: AWS API Documentation **Request Syntax** response = client.put_email_identity_dkim_attributes( EmailIdentity='string', SigningEnabled=True|False ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **SigningEnabled** (*boolean*) -- Sets the DKIM signing configuration for the identity. When you set this value "true", then the messages that are sent from the identity are signed using DKIM. If you set this value to "false", your messages are sent without DKIM signing. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / update_email_identity_policy update_email_identity_policy **************************** SESV2.Client.update_email_identity_policy(**kwargs) Updates the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second. See also: AWS API Documentation **Request Syntax** response = client.update_email_identity_policy( EmailIdentity='string', PolicyName='string', Policy='string' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email identity. * **PolicyName** (*string*) -- **[REQUIRED]** The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores. * **Policy** (*string*) -- **[REQUIRED]** The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* An HTTP 200 response if the request succeeds, or an error message if the request fails. **Exceptions** * "SESV2.Client.exceptions.NotFoundException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" SESV2 / Client / create_email_identity create_email_identity ********************* SESV2.Client.create_email_identity(**kwargs) Starts the process of verifying an email identity. An *identity* is an email address or domain that you use when you send email. Before you can use an identity to send email, you first have to verify it. By verifying an identity, you demonstrate that you're the owner of the identity, and that you've given Amazon SES API v2 permission to send email from the identity. When you verify an email address, Amazon SES sends an email to the address. Your email address is verified as soon as you follow the link in the verification email. When you verify a domain without specifying the "DkimSigningAttributes" object, this operation provides a set of DKIM tokens. You can convert these tokens into CNAME records, which you then add to the DNS configuration for your domain. Your domain is verified when Amazon SES detects these records in the DNS configuration for your domain. This verification method is known as Easy DKIM. Alternatively, you can perform the verification process by providing your own public-private key pair. This verification method is known as Bring Your Own DKIM (BYODKIM). To use BYODKIM, your call to the "CreateEmailIdentity" operation has to include the "DkimSigningAttributes" object. When you specify this object, you provide a selector (a component of the DNS record name that identifies the public key to use for DKIM authentication) and a private key. When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon SES detects these records in the DNS configuration for your domain. For some DNS providers, it can take 72 hours or more to complete the domain verification process. Additionally, you can associate an existing configuration set with the email identity that you're verifying. See also: AWS API Documentation **Request Syntax** response = client.create_email_identity( EmailIdentity='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], DkimSigningAttributes={ 'DomainSigningSelector': 'string', 'DomainSigningPrivateKey': 'string', 'NextSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'DomainSigningAttributesOrigin': 'AWS_SES'|'EXTERNAL'|'AWS_SES_AF_SOUTH_1'|'AWS_SES_EU_NORTH_1'|'AWS_SES_AP_SOUTH_1'|'AWS_SES_EU_WEST_3'|'AWS_SES_EU_WEST_2'|'AWS_SES_EU_SOUTH_1'|'AWS_SES_EU_WEST_1'|'AWS_SES_AP_NORTHEAST_3'|'AWS_SES_AP_NORTHEAST_2'|'AWS_SES_ME_SOUTH_1'|'AWS_SES_AP_NORTHEAST_1'|'AWS_SES_IL_CENTRAL_1'|'AWS_SES_SA_EAST_1'|'AWS_SES_CA_CENTRAL_1'|'AWS_SES_AP_SOUTHEAST_1'|'AWS_SES_AP_SOUTHEAST_2'|'AWS_SES_AP_SOUTHEAST_3'|'AWS_SES_EU_CENTRAL_1'|'AWS_SES_US_EAST_1'|'AWS_SES_US_EAST_2'|'AWS_SES_US_WEST_1'|'AWS_SES_US_WEST_2'|'AWS_SES_ME_CENTRAL_1'|'AWS_SES_AP_SOUTH_2'|'AWS_SES_EU_CENTRAL_2' }, ConfigurationSetName='string' ) Parameters: * **EmailIdentity** (*string*) -- **[REQUIRED]** The email address or domain to verify. * **Tags** (*list*) -- An array of objects that define the tags (keys and values) to associate with the email identity. * *(dict) --* An object that defines the tags that are associated with a resource. A *tag* is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags. Each tag consists of a required *tag key* and an associated *tag value*, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags: * Tag keys and values are case sensitive. * For each associated resource, each tag key must be unique and it can have only one value. * The  "aws:" prefix is reserved for use by Amazon Web Services; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix. Tags that use this prefix don’t count against the limit of 50 tags per resource. * You can associate tags with public or shared resources, but the tags are available only for your Amazon Web Services account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified Amazon Web Services Region for your Amazon Web Services account. * **Key** *(string) --* **[REQUIRED]** One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character. * **Value** *(string) --* **[REQUIRED]** The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string. * **DkimSigningAttributes** (*dict*) -- If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM. You can only specify this object if the email identity is a domain, as opposed to an address. * **DomainSigningSelector** *(string) --* [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain. * **DomainSigningPrivateKey** *(string) --* [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding. * **NextSigningKeyLength** *(string) --* [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. * **DomainSigningAttributesOrigin** *(string) --* The attribute to use for configuring DKIM for the identity depends on the operation: * For "PutEmailIdentityDkimSigningAttributes": * None of the values are allowed - use the SigningAttributesOrigin parameter instead * For "CreateEmailIdentity" when replicating a parent identity's DKIM configuration: * Allowed values: All values except "AWS_SES" and "EXTERNAL" * "AWS_SES" – Configure DKIM for the identity by using Easy DKIM. * "EXTERNAL" – Configure DKIM for the identity by using Bring Your Own DKIM (BYODKIM). * "AWS_SES_AF_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Africa (Cape Town) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_NORTH_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Stockholm) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Mumbai) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Hyderabad) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_3" – Configure DKIM for the identity by replicating from a parent identity in Europe (Paris) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_2" – Configure DKIM for the identity by replicating from a parent identity in Europe (London) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Milan) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Ireland) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_3" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Osaka) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Seoul) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Middle East (UAE) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_SOUTH_1" – Configure DKIM for the identity by replicating from a parent identity in Middle East (Bahrain) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Tokyo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_IL_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Israel (Tel Aviv) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_SA_EAST_1" – Configure DKIM for the identity by replicating from a parent identity in South America (São Paulo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_CA_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Canada (Central) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_1" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Singapore) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_2" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Sydney) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_3" – Configure DKIM for the identity by replicating from a parent identity in Asia Pacific (Jakarta) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_1" – Configure DKIM for the identity by replicating from a parent identity in Europe (Frankfurt) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_2" – Configure DKIM for the identity by replicating from a parent identity in Europe (Zurich) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_1" – Configure DKIM for the identity by replicating from a parent identity in US East (N. Virginia) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_2" – Configure DKIM for the identity by replicating from a parent identity in US East (Ohio) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_1" – Configure DKIM for the identity by replicating from a parent identity in US West (N. California) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_2" – Configure DKIM for the identity by replicating from a parent identity in US West (Oregon) region using Deterministic Easy-DKIM (DEED). * **ConfigurationSetName** (*string*) -- The configuration set to use by default when sending from this identity. Note that any configuration set defined in the email sending request takes precedence. Return type: dict Returns: **Response Syntax** { 'IdentityType': 'EMAIL_ADDRESS'|'DOMAIN'|'MANAGED_DOMAIN', 'VerifiedForSendingStatus': True|False, 'DkimAttributes': { 'SigningEnabled': True|False, 'Status': 'PENDING'|'SUCCESS'|'FAILED'|'TEMPORARY_FAILURE'|'NOT_STARTED', 'Tokens': [ 'string', ], 'SigningAttributesOrigin': 'AWS_SES'|'EXTERNAL'|'AWS_SES_AF_SOUTH_1'|'AWS_SES_EU_NORTH_1'|'AWS_SES_AP_SOUTH_1'|'AWS_SES_EU_WEST_3'|'AWS_SES_EU_WEST_2'|'AWS_SES_EU_SOUTH_1'|'AWS_SES_EU_WEST_1'|'AWS_SES_AP_NORTHEAST_3'|'AWS_SES_AP_NORTHEAST_2'|'AWS_SES_ME_SOUTH_1'|'AWS_SES_AP_NORTHEAST_1'|'AWS_SES_IL_CENTRAL_1'|'AWS_SES_SA_EAST_1'|'AWS_SES_CA_CENTRAL_1'|'AWS_SES_AP_SOUTHEAST_1'|'AWS_SES_AP_SOUTHEAST_2'|'AWS_SES_AP_SOUTHEAST_3'|'AWS_SES_EU_CENTRAL_1'|'AWS_SES_US_EAST_1'|'AWS_SES_US_EAST_2'|'AWS_SES_US_WEST_1'|'AWS_SES_US_WEST_2'|'AWS_SES_ME_CENTRAL_1'|'AWS_SES_AP_SOUTH_2'|'AWS_SES_EU_CENTRAL_2', 'NextSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'CurrentSigningKeyLength': 'RSA_1024_BIT'|'RSA_2048_BIT', 'LastKeyGenerationTimestamp': datetime(2015, 1, 1) } } **Response Structure** * *(dict) --* If the email identity is a domain, this object contains information about the DKIM verification status for the domain. If the email identity is an email address, this object is empty. * **IdentityType** *(string) --* The email identity type. Note: the "MANAGED_DOMAIN" identity type is not supported. * **VerifiedForSendingStatus** *(boolean) --* Specifies whether or not the identity is verified. You can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide. * **DkimAttributes** *(dict) --* An object that contains information about the DKIM attributes for the identity. * **SigningEnabled** *(boolean) --* If the value is "true", then the messages that you send from the identity are signed using DKIM. If the value is "false", then the messages that you send from the identity aren't DKIM-signed. * **Status** *(string) --* Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. The status can be one of the following: * "PENDING" – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain. * "SUCCESS" – The verification process completed successfully. * "FAILED" – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain. * "TEMPORARY_FAILURE" – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain. * "NOT_STARTED" – The DKIM verification process hasn't been initiated for the domain. * **Tokens** *(list) --* If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key. Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours. * *(string) --* * **SigningAttributesOrigin** *(string) --* A string that indicates how DKIM was configured for the identity. These are the possible values: * "AWS_SES" – Indicates that DKIM was configured for the identity by using Easy DKIM. * "EXTERNAL" – Indicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM). * "AWS_SES_AF_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Africa (Cape Town) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_NORTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Stockholm) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Mumbai) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTH_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Hyderabad) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Paris) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (London) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Milan) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_WEST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Ireland) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Osaka) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Seoul) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Middle East (UAE) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_ME_SOUTH_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Middle East (Bahrain) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_NORTHEAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Tokyo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_IL_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Israel (Tel Aviv) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_SA_EAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in South America (São Paulo) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_CA_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Canada (Central) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Singapore) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Sydney) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_AP_SOUTHEAST_3" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Asia Pacific (Jakarta) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Frankfurt) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_EU_CENTRAL_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in Europe (Zurich) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US East (N. Virginia) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_EAST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US East (Ohio) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_1" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US West (N. California) region using Deterministic Easy-DKIM (DEED). * "AWS_SES_US_WEST_2" – Indicates that DKIM was configured for the identity by replicating signing attributes from a parent identity in US West (Oregon) region using Deterministic Easy-DKIM (DEED). * **NextSigningKeyLength** *(string) --* [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. * **CurrentSigningKeyLength** *(string) --* [Easy DKIM] The key length of the DKIM key pair in use. * **LastKeyGenerationTimestamp** *(datetime) --* [Easy DKIM] The last time a key pair was generated for this identity. **Exceptions** * "SESV2.Client.exceptions.AlreadyExistsException" * "SESV2.Client.exceptions.LimitExceededException" * "SESV2.Client.exceptions.TooManyRequestsException" * "SESV2.Client.exceptions.BadRequestException" * "SESV2.Client.exceptions.ConcurrentModificationException" * "SESV2.Client.exceptions.NotFoundException"