View on GitHub

aws-sdk-swift

SesClientProtocol

Amazon Simple Email Service This document contains reference information for the Amazon Simple Email Service (Amazon SES) API, version 2010-12-01. This document is best used in conjunction with the Amazon SES Developer Guide. For a list of Amazon SES endpoints to use in service requests, see Regions and Amazon SES in the Amazon SES Developer Guide.

public protocol SesClientProtocol 

Requirements

cloneReceiptRuleSet(input:completion:)

Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set. For information about setting up rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func cloneReceiptRuleSet(input: CloneReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<CloneReceiptRuleSetOutputResponse, CloneReceiptRuleSetOutputError>) -> Void)

createConfigurationSet(input:completion:)

Creates a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func createConfigurationSet(input: CreateConfigurationSetInput, completion: @escaping (ClientRuntime.SdkResult<CreateConfigurationSetOutputResponse, CreateConfigurationSetOutputError>) -> Void)

createConfigurationSetEventDestination(input:completion:)

Creates a configuration set event destination. When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). An event destination is the AWS service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func createConfigurationSetEventDestination(input: CreateConfigurationSetEventDestinationInput, completion: @escaping (ClientRuntime.SdkResult<CreateConfigurationSetEventDestinationOutputResponse, CreateConfigurationSetEventDestinationOutputError>) -> Void)

createConfigurationSetTrackingOptions(input:completion:)

Creates an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide.

func createConfigurationSetTrackingOptions(input: CreateConfigurationSetTrackingOptionsInput, completion: @escaping (ClientRuntime.SdkResult<CreateConfigurationSetTrackingOptionsOutputResponse, CreateConfigurationSetTrackingOptionsOutputError>) -> Void)

createCustomVerificationEmailTemplate(input:completion:)

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.

func createCustomVerificationEmailTemplate(input: CreateCustomVerificationEmailTemplateInput, completion: @escaping (ClientRuntime.SdkResult<CreateCustomVerificationEmailTemplateOutputResponse, CreateCustomVerificationEmailTemplateOutputError>) -> Void)

createReceiptFilter(input:completion:)

Creates a new IP address filter. For information about setting up IP address filters, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func createReceiptFilter(input: CreateReceiptFilterInput, completion: @escaping (ClientRuntime.SdkResult<CreateReceiptFilterOutputResponse, CreateReceiptFilterOutputError>) -> Void)

createReceiptRule(input:completion:)

Creates a receipt rule. For information about setting up receipt rules, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func createReceiptRule(input: CreateReceiptRuleInput, completion: @escaping (ClientRuntime.SdkResult<CreateReceiptRuleOutputResponse, CreateReceiptRuleOutputError>) -> Void)

createReceiptRuleSet(input:completion:)

Creates an empty receipt rule set. For information about setting up receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func createReceiptRuleSet(input: CreateReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<CreateReceiptRuleSetOutputResponse, CreateReceiptRuleSetOutputError>) -> Void)

createTemplate(input:completion:)

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.

func createTemplate(input: CreateTemplateInput, completion: @escaping (ClientRuntime.SdkResult<CreateTemplateOutputResponse, CreateTemplateOutputError>) -> Void)

deleteConfigurationSet(input:completion:)

Deletes a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func deleteConfigurationSet(input: DeleteConfigurationSetInput, completion: @escaping (ClientRuntime.SdkResult<DeleteConfigurationSetOutputResponse, DeleteConfigurationSetOutputError>) -> Void)

deleteConfigurationSetEventDestination(input:completion:)

Deletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func deleteConfigurationSetEventDestination(input: DeleteConfigurationSetEventDestinationInput, completion: @escaping (ClientRuntime.SdkResult<DeleteConfigurationSetEventDestinationOutputResponse, DeleteConfigurationSetEventDestinationOutputError>) -> Void)

deleteConfigurationSetTrackingOptions(input:completion:)

Deletes an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide. Deleting this kind of association will result in emails sent using the specified configuration set to capture open and click events using the standard, Amazon SES-operated domains.

func deleteConfigurationSetTrackingOptions(input: DeleteConfigurationSetTrackingOptionsInput, completion: @escaping (ClientRuntime.SdkResult<DeleteConfigurationSetTrackingOptionsOutputResponse, DeleteConfigurationSetTrackingOptionsOutputError>) -> Void)

deleteCustomVerificationEmailTemplate(input:completion:)

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.

func deleteCustomVerificationEmailTemplate(input: DeleteCustomVerificationEmailTemplateInput, completion: @escaping (ClientRuntime.SdkResult<DeleteCustomVerificationEmailTemplateOutputResponse, DeleteCustomVerificationEmailTemplateOutputError>) -> Void)

deleteIdentity(input:completion:)

Deletes the specified identity (an email address or a domain) from the list of verified identities. You can execute this operation no more than once per second.

func deleteIdentity(input: DeleteIdentityInput, completion: @escaping (ClientRuntime.SdkResult<DeleteIdentityOutputResponse, DeleteIdentityOutputError>) -> Void)

deleteIdentityPolicy(input:completion:)

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

func deleteIdentityPolicy(input: DeleteIdentityPolicyInput, completion: @escaping (ClientRuntime.SdkResult<DeleteIdentityPolicyOutputResponse, DeleteIdentityPolicyOutputError>) -> Void)

deleteReceiptFilter(input:completion:)

Deletes the specified IP address filter. For information about managing IP address filters, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func deleteReceiptFilter(input: DeleteReceiptFilterInput, completion: @escaping (ClientRuntime.SdkResult<DeleteReceiptFilterOutputResponse, DeleteReceiptFilterOutputError>) -> Void)

deleteReceiptRule(input:completion:)

Deletes the specified receipt rule. For information about managing receipt rules, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func deleteReceiptRule(input: DeleteReceiptRuleInput, completion: @escaping (ClientRuntime.SdkResult<DeleteReceiptRuleOutputResponse, DeleteReceiptRuleOutputError>) -> Void)

deleteReceiptRuleSet(input:completion:)

Deletes the specified receipt rule set and all of the receipt rules it contains. The currently active rule set cannot be deleted. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func deleteReceiptRuleSet(input: DeleteReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<DeleteReceiptRuleSetOutputResponse, DeleteReceiptRuleSetOutputError>) -> Void)

deleteTemplate(input:completion:)

Deletes an email template. You can execute this operation no more than once per second.

func deleteTemplate(input: DeleteTemplateInput, completion: @escaping (ClientRuntime.SdkResult<DeleteTemplateOutputResponse, DeleteTemplateOutputError>) -> Void)

deleteVerifiedEmailAddress(input:completion:)

Deprecated. Use the DeleteIdentity operation to delete email addresses and domains.

func deleteVerifiedEmailAddress(input: DeleteVerifiedEmailAddressInput, completion: @escaping (ClientRuntime.SdkResult<DeleteVerifiedEmailAddressOutputResponse, DeleteVerifiedEmailAddressOutputError>) -> Void)

describeActiveReceiptRuleSet(input:completion:)

Returns the metadata and receipt rules for the receipt rule set that is currently active. For information about setting up receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func describeActiveReceiptRuleSet(input: DescribeActiveReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<DescribeActiveReceiptRuleSetOutputResponse, DescribeActiveReceiptRuleSetOutputError>) -> Void)

describeConfigurationSet(input:completion:)

Returns the details of the specified configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func describeConfigurationSet(input: DescribeConfigurationSetInput, completion: @escaping (ClientRuntime.SdkResult<DescribeConfigurationSetOutputResponse, DescribeConfigurationSetOutputError>) -> Void)

describeReceiptRule(input:completion:)

Returns the details of the specified receipt rule. For information about setting up receipt rules, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func describeReceiptRule(input: DescribeReceiptRuleInput, completion: @escaping (ClientRuntime.SdkResult<DescribeReceiptRuleOutputResponse, DescribeReceiptRuleOutputError>) -> Void)

describeReceiptRuleSet(input:completion:)

Returns the details of the specified receipt rule set. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func describeReceiptRuleSet(input: DescribeReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<DescribeReceiptRuleSetOutputResponse, DescribeReceiptRuleSetOutputError>) -> Void)

getAccountSendingEnabled(input:completion:)

Returns the email sending status of the Amazon SES account for the current region. You can execute this operation no more than once per second.

func getAccountSendingEnabled(input: GetAccountSendingEnabledInput, completion: @escaping (ClientRuntime.SdkResult<GetAccountSendingEnabledOutputResponse, GetAccountSendingEnabledOutputError>) -> Void)

getCustomVerificationEmailTemplate(input:completion:)

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.

func getCustomVerificationEmailTemplate(input: GetCustomVerificationEmailTemplateInput, completion: @escaping (ClientRuntime.SdkResult<GetCustomVerificationEmailTemplateOutputResponse, GetCustomVerificationEmailTemplateOutputError>) -> Void)

getIdentityDkimAttributes(input:completion:)

Returns the current status of Easy DKIM signing for an entity. For domain name identities, this operation also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published. This operation takes a list of identities as input and returns the following information for each:

func getIdentityDkimAttributes(input: GetIdentityDkimAttributesInput, completion: @escaping (ClientRuntime.SdkResult<GetIdentityDkimAttributesOutputResponse, GetIdentityDkimAttributesOutputError>) -> Void)

This operation is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time. For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

getIdentityMailFromDomainAttributes(input:completion:)

Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains). This operation is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.

func getIdentityMailFromDomainAttributes(input: GetIdentityMailFromDomainAttributesInput, completion: @escaping (ClientRuntime.SdkResult<GetIdentityMailFromDomainAttributesOutputResponse, GetIdentityMailFromDomainAttributesOutputError>) -> Void)

getIdentityNotificationAttributes(input:completion:)

Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes. This operation is throttled at one request per second and can only get notification attributes for up to 100 identities at a time. For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

func getIdentityNotificationAttributes(input: GetIdentityNotificationAttributesInput, completion: @escaping (ClientRuntime.SdkResult<GetIdentityNotificationAttributesOutputResponse, GetIdentityNotificationAttributesOutputError>) -> Void)

getIdentityPolicies(input:completion:)

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

func getIdentityPolicies(input: GetIdentityPoliciesInput, completion: @escaping (ClientRuntime.SdkResult<GetIdentityPoliciesOutputResponse, GetIdentityPoliciesOutputError>) -> Void)

getIdentityVerificationAttributes(input:completion:)

Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity. The verification status of an email address is “Pending” until the email address owner clicks the link within the verification email that Amazon SES sent to that address. If the email address owner clicks the link within 24 hours, the verification status of the email address changes to “Success”. If the link is not clicked within 24 hours, the verification status changes to “Failed.” In that case, if you still want to verify the email address, you must restart the verification process from the beginning. For domain identities, the domain’s verification status is “Pending” as Amazon SES searches for the required TXT record in the DNS settings of the domain. When Amazon SES detects the record, the domain’s verification status changes to “Success”. If Amazon SES is unable to detect the record within 72 hours, the domain’s verification status changes to “Failed.” In that case, if you still want to verify the domain, you must restart the verification process from the beginning. This operation is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.

func getIdentityVerificationAttributes(input: GetIdentityVerificationAttributesInput, completion: @escaping (ClientRuntime.SdkResult<GetIdentityVerificationAttributesOutputResponse, GetIdentityVerificationAttributesOutputError>) -> Void)

getSendQuota(input:completion:)

Provides the sending limits for the Amazon SES account. You can execute this operation no more than once per second.

func getSendQuota(input: GetSendQuotaInput, completion: @escaping (ClientRuntime.SdkResult<GetSendQuotaOutputResponse, GetSendQuotaOutputError>) -> Void)

getSendStatistics(input:completion:)

Provides sending statistics for the current AWS Region. The result is a list of data points, representing the last two weeks of sending activity. Each data point in the list contains statistics for a 15-minute period of time. You can execute this operation no more than once per second.

func getSendStatistics(input: GetSendStatisticsInput, completion: @escaping (ClientRuntime.SdkResult<GetSendStatisticsOutputResponse, GetSendStatisticsOutputError>) -> Void)

getTemplate(input:completion:)

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.

func getTemplate(input: GetTemplateInput, completion: @escaping (ClientRuntime.SdkResult<GetTemplateOutputResponse, GetTemplateOutputError>) -> Void)

listConfigurationSets(input:completion:)

Provides a list of the configuration sets associated with your Amazon SES account in the current AWS Region. For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. You can execute this operation no more than once per second. This operation will return up to 1,000 configuration sets each time it is run. If your Amazon SES account has more than 1,000 configuration sets, this operation will also return a NextToken element. You can then execute the ListConfigurationSets operation again, passing the NextToken parameter and the value of the NextToken element to retrieve additional results.

func listConfigurationSets(input: ListConfigurationSetsInput, completion: @escaping (ClientRuntime.SdkResult<ListConfigurationSetsOutputResponse, ListConfigurationSetsOutputError>) -> Void)

listCustomVerificationEmailTemplates(input:completion:)

Lists the existing custom verification email templates for your account in the current AWS 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.

func listCustomVerificationEmailTemplates(input: ListCustomVerificationEmailTemplatesInput, completion: @escaping (ClientRuntime.SdkResult<ListCustomVerificationEmailTemplatesOutputResponse, ListCustomVerificationEmailTemplatesOutputError>) -> Void)

listIdentities(input:completion:)

Returns a list containing all of the identities (email addresses and domains) for your AWS account in the current AWS Region, regardless of verification status. You can execute this operation no more than once per second.

func listIdentities(input: ListIdentitiesInput, completion: @escaping (ClientRuntime.SdkResult<ListIdentitiesOutputResponse, ListIdentitiesOutputError>) -> Void)

listIdentityPolicies(input:completion:)

Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain). This API returns only a list. If you want the actual policy content, you can use GetIdentityPolicies. 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.

func listIdentityPolicies(input: ListIdentityPoliciesInput, completion: @escaping (ClientRuntime.SdkResult<ListIdentityPoliciesOutputResponse, ListIdentityPoliciesOutputError>) -> Void)

listReceiptFilters(input:completion:)

Lists the IP address filters associated with your AWS account in the current AWS Region. For information about managing IP address filters, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func listReceiptFilters(input: ListReceiptFiltersInput, completion: @escaping (ClientRuntime.SdkResult<ListReceiptFiltersOutputResponse, ListReceiptFiltersOutputError>) -> Void)

listReceiptRuleSets(input:completion:)

Lists the receipt rule sets that exist under your AWS account in the current AWS Region. If there are additional receipt rule sets to be retrieved, you will receive a NextToken that you can provide to the next call to ListReceiptRuleSets to retrieve the additional entries. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func listReceiptRuleSets(input: ListReceiptRuleSetsInput, completion: @escaping (ClientRuntime.SdkResult<ListReceiptRuleSetsOutputResponse, ListReceiptRuleSetsOutputError>) -> Void)

listTemplates(input:completion:)

Lists the email templates present in your Amazon SES account in the current AWS Region. You can execute this operation no more than once per second.

func listTemplates(input: ListTemplatesInput, completion: @escaping (ClientRuntime.SdkResult<ListTemplatesOutputResponse, ListTemplatesOutputError>) -> Void)

listVerifiedEmailAddresses(input:completion:)

Deprecated. Use the ListIdentities operation to list the email addresses and domains associated with your account.

func listVerifiedEmailAddresses(input: ListVerifiedEmailAddressesInput, completion: @escaping (ClientRuntime.SdkResult<ListVerifiedEmailAddressesOutputResponse, ListVerifiedEmailAddressesOutputError>) -> Void)

putConfigurationSetDeliveryOptions(input:completion:)

Adds or updates the delivery options for a configuration set.

func putConfigurationSetDeliveryOptions(input: PutConfigurationSetDeliveryOptionsInput, completion: @escaping (ClientRuntime.SdkResult<PutConfigurationSetDeliveryOptionsOutputResponse, PutConfigurationSetDeliveryOptionsOutputError>) -> Void)

putIdentityPolicy(input:completion:)

Adds or updates a sending authorization policy for the specified identity (an email address or a domain). 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.

func putIdentityPolicy(input: PutIdentityPolicyInput, completion: @escaping (ClientRuntime.SdkResult<PutIdentityPolicyOutputResponse, PutIdentityPolicyOutputError>) -> Void)

reorderReceiptRuleSet(input:completion:)

Reorders the receipt rules within a receipt rule set. All of the rules in the rule set must be represented in this request. That is, this API will return an error if the reorder request doesn’t explicitly position all of the rules. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func reorderReceiptRuleSet(input: ReorderReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<ReorderReceiptRuleSetOutputResponse, ReorderReceiptRuleSetOutputError>) -> Void)

sendBounce(input:completion:)

Generates and sends a bounce message to the sender of an email you received through Amazon SES. You can only use this API on an email up to 24 hours after you receive it. You cannot use this API to send generic bounces for mail that was not received by Amazon SES. For information about receiving email through Amazon SES, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func sendBounce(input: SendBounceInput, completion: @escaping (ClientRuntime.SdkResult<SendBounceOutputResponse, SendBounceOutputError>) -> Void)

sendBulkTemplatedEmail(input:completion:)

Composes an email message to multiple destinations. The message body is created using an email template. In order to send email using the SendBulkTemplatedEmail operation, your call to the API must meet the following requirements:

func sendBulkTemplatedEmail(input: SendBulkTemplatedEmailInput, completion: @escaping (ClientRuntime.SdkResult<SendBulkTemplatedEmailOutputResponse, SendBulkTemplatedEmailOutputError>) -> Void)

sendCustomVerificationEmail(input:completion:)

Adds an email address to the list of identities for your Amazon SES account in the current AWS 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.

func sendCustomVerificationEmail(input: SendCustomVerificationEmailInput, completion: @escaping (ClientRuntime.SdkResult<SendCustomVerificationEmailOutputResponse, SendCustomVerificationEmailOutputError>) -> Void)

sendEmail(input:completion:)

Composes an email message and immediately queues it for sending. In order to send email using the SendEmail operation, your message must meet the following requirements:

func sendEmail(input: SendEmailInput, completion: @escaping (ClientRuntime.SdkResult<SendEmailOutputResponse, SendEmailOutputError>) -> Void)

For every message that you send, the total number of recipients (including each recipient in the To:, CC: and BCC: fields) is counted against the maximum number of emails you can send in a 24-hour period (your sending quota). For more information about sending quotas in Amazon SES, see Managing Your Amazon SES Sending Limits in the Amazon SES Developer Guide.

sendRawEmail(input:completion:)

Composes an email message and immediately queues it for sending. This operation is more flexible than the SendEmail API operation. When you use the SendRawEmail operation, you can specify the headers of the message as well as its content. This flexibility is useful, for example, when you want to send a multipart MIME email (such a message that contains both a text and an HTML version). You can also use this operation to send messages that include attachments. The SendRawEmail operation has the following requirements:

func sendRawEmail(input: SendRawEmailInput, completion: @escaping (ClientRuntime.SdkResult<SendRawEmailOutputResponse, SendRawEmailOutputError>) -> Void)

Additionally, keep the following considerations in mind when using the SendRawEmail operation:

Don’t include these X-headers in the DKIM signature. Amazon SES removes these before it sends the email. If you only specify the SourceIdentityArn parameter, Amazon SES sets the From and Return-Path addresses to the same identity that you specified. For more information about sending authorization, see the Using Sending Authorization with Amazon SES in the Amazon SES Developer Guide.

sendTemplatedEmail(input:completion:)

Composes an email message using an email template and immediately queues it for sending. In order to send email using the SendTemplatedEmail operation, your call to the API must meet the following requirements:

func sendTemplatedEmail(input: SendTemplatedEmailInput, completion: @escaping (ClientRuntime.SdkResult<SendTemplatedEmailOutputResponse, SendTemplatedEmailOutputError>) -> Void)

If your call to the SendTemplatedEmail operation includes all of the required parameters, Amazon SES accepts it and returns a Message ID. However, if Amazon SES can’t render the email because the template contains errors, it doesn’t send the email. Additionally, because it already accepted the message, Amazon SES doesn’t return a message stating that it was unable to send the email. For these reasons, we highly recommend that you set up Amazon SES to send you notifications when Rendering Failure events occur. For more information, see Sending Personalized Email Using the Amazon SES API in the Amazon Simple Email Service Developer Guide.

setActiveReceiptRuleSet(input:completion:)

Sets the specified receipt rule set as the active receipt rule set. To disable your email-receiving through Amazon SES completely, you can call this API with RuleSetName set to null. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func setActiveReceiptRuleSet(input: SetActiveReceiptRuleSetInput, completion: @escaping (ClientRuntime.SdkResult<SetActiveReceiptRuleSetOutputResponse, SetActiveReceiptRuleSetOutputError>) -> Void)

setIdentityDkimEnabled(input:completion:)

Enables or disables Easy DKIM signing of email sent from an identity. If Easy DKIM signing is enabled for a domain, then Amazon SES uses DKIM to sign all email that it sends from addresses on that domain. If Easy DKIM signing is enabled for an email address, then Amazon SES uses DKIM to sign all email it sends from that address. For email addresses (for example, user@example.com), you can only enable DKIM signing if the corresponding domain (in this case, example.com) has been set up to use Easy DKIM. You can enable DKIM signing for an identity at any time after you start the verification process for the identity, even if the verification process isn’t complete. You can execute this operation no more than once per second. For more information about Easy DKIM signing, go to the Amazon SES Developer Guide.

func setIdentityDkimEnabled(input: SetIdentityDkimEnabledInput, completion: @escaping (ClientRuntime.SdkResult<SetIdentityDkimEnabledOutputResponse, SetIdentityDkimEnabledOutputError>) -> Void)

setIdentityFeedbackForwardingEnabled(input:completion:)

Given an identity (an email address or a domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints. Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS. You can execute this operation no more than once per second. For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

func setIdentityFeedbackForwardingEnabled(input: SetIdentityFeedbackForwardingEnabledInput, completion: @escaping (ClientRuntime.SdkResult<SetIdentityFeedbackForwardingEnabledOutputResponse, SetIdentityFeedbackForwardingEnabledOutputError>) -> Void)

setIdentityHeadersInNotificationsEnabled(input:completion:)

Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type. You can execute this operation no more than once per second. For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

func setIdentityHeadersInNotificationsEnabled(input: SetIdentityHeadersInNotificationsEnabledInput, completion: @escaping (ClientRuntime.SdkResult<SetIdentityHeadersInNotificationsEnabledOutputResponse, SetIdentityHeadersInNotificationsEnabledOutputError>) -> Void)

setIdentityMailFromDomain(input:completion:)

Enables or disables the custom MAIL FROM domain setup for a verified identity (an email address or a domain). To send emails using the specified MAIL FROM domain, you must add an MX record to your MAIL FROM domain’s DNS settings. If you want your emails to pass Sender Policy Framework (SPF) checks, you must also add or update an SPF record. For more information, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func setIdentityMailFromDomain(input: SetIdentityMailFromDomainInput, completion: @escaping (ClientRuntime.SdkResult<SetIdentityMailFromDomainOutputResponse, SetIdentityMailFromDomainOutputError>) -> Void)

setIdentityNotificationTopic(input:completion:)

Sets an Amazon Simple Notification Service (Amazon SNS) topic to use when delivering notifications. When you use this operation, you specify a verified identity, such as an email address or domain. When you send an email that uses the chosen identity in the Source field, Amazon SES sends notifications to the topic you specified. You can send bounce, complaint, or delivery notifications (or any combination of the three) to the Amazon SNS topic that you specify. You can execute this operation no more than once per second. For more information about feedback notification, see the Amazon SES Developer Guide.

func setIdentityNotificationTopic(input: SetIdentityNotificationTopicInput, completion: @escaping (ClientRuntime.SdkResult<SetIdentityNotificationTopicOutputResponse, SetIdentityNotificationTopicOutputError>) -> Void)

setReceiptRulePosition(input:completion:)

Sets the position of the specified receipt rule in the receipt rule set. For information about managing receipt rules, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func setReceiptRulePosition(input: SetReceiptRulePositionInput, completion: @escaping (ClientRuntime.SdkResult<SetReceiptRulePositionOutputResponse, SetReceiptRulePositionOutputError>) -> Void)

testRenderTemplate(input:completion:)

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.

func testRenderTemplate(input: TestRenderTemplateInput, completion: @escaping (ClientRuntime.SdkResult<TestRenderTemplateOutputResponse, TestRenderTemplateOutputError>) -> Void)

updateAccountSendingEnabled(input:completion:)

Enables or disables email sending across your entire Amazon SES account in the current AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending across your Amazon SES account in a given AWS Region when reputation metrics (such as your bounce or complaint rates) reach certain thresholds. You can execute this operation no more than once per second.

func updateAccountSendingEnabled(input: UpdateAccountSendingEnabledInput, completion: @escaping (ClientRuntime.SdkResult<UpdateAccountSendingEnabledOutputResponse, UpdateAccountSendingEnabledOutputError>) -> Void)

updateConfigurationSetEventDestination(input:completion:)

Updates the event destination of a configuration set. Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). You can execute this operation no more than once per second.

func updateConfigurationSetEventDestination(input: UpdateConfigurationSetEventDestinationInput, completion: @escaping (ClientRuntime.SdkResult<UpdateConfigurationSetEventDestinationOutputResponse, UpdateConfigurationSetEventDestinationOutputError>) -> Void)

updateConfigurationSetReputationMetricsEnabled(input:completion:)

Enables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given AWS Region. Reputation metrics include bounce and complaint rates. These metrics are published to Amazon CloudWatch. By using CloudWatch, you can create alarms when bounce or complaint rates exceed certain thresholds. You can execute this operation no more than once per second.

func updateConfigurationSetReputationMetricsEnabled(input: UpdateConfigurationSetReputationMetricsEnabledInput, completion: @escaping (ClientRuntime.SdkResult<UpdateConfigurationSetReputationMetricsEnabledOutputResponse, UpdateConfigurationSetReputationMetricsEnabledOutputError>) -> Void)

updateConfigurationSetSendingEnabled(input:completion:)

Enables or disables email sending for messages sent using a specific configuration set in a given AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending for a configuration set when the reputation metrics for that configuration set (such as your bounce on complaint rate) exceed certain thresholds. You can execute this operation no more than once per second.

func updateConfigurationSetSendingEnabled(input: UpdateConfigurationSetSendingEnabledInput, completion: @escaping (ClientRuntime.SdkResult<UpdateConfigurationSetSendingEnabledOutputResponse, UpdateConfigurationSetSendingEnabledOutputError>) -> Void)

updateConfigurationSetTrackingOptions(input:completion:)

Modifies an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide.

func updateConfigurationSetTrackingOptions(input: UpdateConfigurationSetTrackingOptionsInput, completion: @escaping (ClientRuntime.SdkResult<UpdateConfigurationSetTrackingOptionsOutputResponse, UpdateConfigurationSetTrackingOptionsOutputError>) -> Void)

updateCustomVerificationEmailTemplate(input:completion:)

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.

func updateCustomVerificationEmailTemplate(input: UpdateCustomVerificationEmailTemplateInput, completion: @escaping (ClientRuntime.SdkResult<UpdateCustomVerificationEmailTemplateOutputResponse, UpdateCustomVerificationEmailTemplateOutputError>) -> Void)

updateReceiptRule(input:completion:)

Updates a receipt rule. For information about managing receipt rules, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func updateReceiptRule(input: UpdateReceiptRuleInput, completion: @escaping (ClientRuntime.SdkResult<UpdateReceiptRuleOutputResponse, UpdateReceiptRuleOutputError>) -> Void)

updateTemplate(input:completion:)

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.

func updateTemplate(input: UpdateTemplateInput, completion: @escaping (ClientRuntime.SdkResult<UpdateTemplateOutputResponse, UpdateTemplateOutputError>) -> Void)

verifyDomainDkim(input:completion:)

Returns a set of DKIM tokens for a domain identity. When you execute the VerifyDomainDkim operation, the domain that you specify is added to the list of identities that are associated with your account. This is true even if you haven’t already associated the domain with your account by using the VerifyDomainIdentity operation. However, you can’t send email from the domain until you either successfully verify it or you successfully set up DKIM for it. You use the tokens that are generated by this operation to create CNAME records. When Amazon SES detects that you’ve added these records to the DNS configuration for a domain, you can start sending email from that domain. You can start sending email even if you haven’t added the TXT record provided by the VerifyDomainIdentity operation to the DNS configuration for your domain. All email that you send from the domain is authenticated using DKIM. To create the CNAME records for DKIM authentication, use the following values:

func verifyDomainDkim(input: VerifyDomainDkimInput, completion: @escaping (ClientRuntime.SdkResult<VerifyDomainDkimOutputResponse, VerifyDomainDkimOutputError>) -> Void)

In the preceding example, replace token with one of the tokens that are generated when you execute this operation. Replace example.com with your domain. Repeat this process for each token that’s generated by this operation. You can execute this operation no more than once per second.

verifyDomainIdentity(input:completion:)

Adds a domain to the list of identities for your Amazon SES account in the current AWS Region and attempts to verify it. For more information about verifying domains, see Verifying Email Addresses and Domains in the Amazon SES Developer Guide. You can execute this operation no more than once per second.

func verifyDomainIdentity(input: VerifyDomainIdentityInput, completion: @escaping (ClientRuntime.SdkResult<VerifyDomainIdentityOutputResponse, VerifyDomainIdentityOutputError>) -> Void)

verifyEmailAddress(input:completion:)

Deprecated. Use the VerifyEmailIdentity operation to verify a new email address.

func verifyEmailAddress(input: VerifyEmailAddressInput, completion: @escaping (ClientRuntime.SdkResult<VerifyEmailAddressOutputResponse, VerifyEmailAddressOutputError>) -> Void)

verifyEmailIdentity(input:completion:)

Adds an email address to the list of identities for your Amazon SES account in the current AWS region and attempts to verify it. As a result of executing this operation, a verification email is sent to the specified address. You can execute this operation no more than once per second.

func verifyEmailIdentity(input: VerifyEmailIdentityInput, completion: @escaping (ClientRuntime.SdkResult<VerifyEmailIdentityOutputResponse, VerifyEmailIdentityOutputError>) -> Void)