You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::SESV2::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SESV2::Client
- Defined in:
- (unknown)
Overview
An API client for Amazon Simple Email Service. To construct a client, you need to configure a :region
and :credentials
.
sesv2 = Aws::SESV2::Client.new(
region: region_name,
credentials: credentials,
# ...
)
See #initialize for a full list of supported configuration options.
Region
You can configure a default region in the following locations:
ENV['AWS_REGION']
Aws.config[:region]
Go here for a list of supported regions.
Credentials
Default credentials are loaded automatically from the following locations:
ENV['AWS_ACCESS_KEY_ID']
andENV['AWS_SECRET_ACCESS_KEY']
Aws.config[:credentials]
- The shared credentials ini file at
~/.aws/credentials
(more information) - From an instance profile when running on EC2
You can also construct a credentials object from one of the following classes:
Alternatively, you configure credentials with :access_key_id
and
:secret_access_key
:
# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))
Aws::SESV2::Client.new(
access_key_id: creds['access_key_id'],
secret_access_key: creds['secret_access_key']
)
Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
Constructor collapse
-
#initialize(options = {}) ⇒ Aws::SESV2::Client
constructor
Constructs an API client.
API Operations collapse
-
#create_configuration_set(options = {}) ⇒ Struct
Create a configuration set.
-
#create_configuration_set_event_destination(options = {}) ⇒ Struct
Create an event destination.
-
#create_contact(options = {}) ⇒ Struct
Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.
.
-
#create_contact_list(options = {}) ⇒ Struct
Creates a contact list.
.
-
#create_custom_verification_email_template(options = {}) ⇒ Struct
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.
. -
#create_dedicated_ip_pool(options = {}) ⇒ Struct
Create a new pool of dedicated IP addresses.
-
#create_deliverability_test_report(options = {}) ⇒ Types::CreateDeliverabilityTestReportResponse
Create a new predictive inbox placement test.
-
#create_email_identity(options = {}) ⇒ Types::CreateEmailIdentityResponse
Starts the process of verifying an email identity.
-
#create_email_identity_policy(options = {}) ⇒ Struct
Creates the specified sending authorization policy for the given identity (an email address or a domain).
This API is for the identity owner only.
-
#create_email_template(options = {}) ⇒ Struct
Creates an email template.
-
#create_import_job(options = {}) ⇒ Types::CreateImportJobResponse
Creates an import job for a data destination.
.
-
#delete_configuration_set(options = {}) ⇒ Struct
Delete an existing configuration set.
Configuration sets are groups of rules that you can apply to the emails you send.
-
#delete_configuration_set_event_destination(options = {}) ⇒ Struct
Delete an event destination.
Events include message sends, deliveries, opens, clicks, bounces, and complaints.
-
#delete_contact(options = {}) ⇒ Struct
Removes a contact from a contact list.
.
-
#delete_contact_list(options = {}) ⇒ Struct
Deletes a contact list and all of the contacts on that list.
.
-
#delete_custom_verification_email_template(options = {}) ⇒ Struct
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.
. -
#delete_dedicated_ip_pool(options = {}) ⇒ Struct
Delete a dedicated IP pool.
.
-
#delete_email_identity(options = {}) ⇒ Struct
Deletes an email identity.
-
#delete_email_identity_policy(options = {}) ⇒ Struct
Deletes the specified sending authorization policy for the given identity (an email address or a domain).
-
#delete_email_template(options = {}) ⇒ Struct
Deletes an email template.
You can execute this operation no more than once per second.
. -
#delete_suppressed_destination(options = {}) ⇒ Struct
Removes an email address from the suppression list for your account.
.
-
#get_account(options = {}) ⇒ Types::GetAccountResponse
Obtain information about the email-sending status and capabilities of your Amazon SES account in the current AWS Region.
.
-
#get_blacklist_reports(options = {}) ⇒ Types::GetBlacklistReportsResponse
Retrieve a list of the blacklists that your dedicated IP addresses appear on.
.
-
#get_configuration_set(options = {}) ⇒ Types::GetConfigurationSetResponse
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.
-
#get_configuration_set_event_destinations(options = {}) ⇒ Types::GetConfigurationSetEventDestinationsResponse
Retrieve a list of event destinations that are associated with a configuration set.
Events include message sends, deliveries, opens, clicks, bounces, and complaints.
-
#get_contact(options = {}) ⇒ Types::GetContactResponse
Returns a contact from a contact list.
.
-
#get_contact_list(options = {}) ⇒ Types::GetContactListResponse
Returns contact list metadata.
-
#get_custom_verification_email_template(options = {}) ⇒ Types::GetCustomVerificationEmailTemplateResponse
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.
. -
#get_dedicated_ip(options = {}) ⇒ Types::GetDedicatedIpResponse
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.
.
-
#get_dedicated_ips(options = {}) ⇒ Types::GetDedicatedIpsResponse
List the dedicated IP addresses that are associated with your AWS account.
.
-
#get_deliverability_dashboard_options(options = {}) ⇒ Types::GetDeliverabilityDashboardOptionsResponse
Retrieve information about the status of the Deliverability dashboard for your account.
-
#get_deliverability_test_report(options = {}) ⇒ Types::GetDeliverabilityTestReportResponse
Retrieve the results of a predictive inbox placement test.
.
-
#get_domain_deliverability_campaign(options = {}) ⇒ Types::GetDomainDeliverabilityCampaignResponse
Retrieve all the deliverability data for a specific campaign.
-
#get_domain_statistics_report(options = {}) ⇒ Types::GetDomainStatisticsReportResponse
Retrieve inbox placement and engagement rates for the domains that you use to send email.
.
-
#get_email_identity(options = {}) ⇒ Types::GetEmailIdentityResponse
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.
.
-
#get_email_identity_policies(options = {}) ⇒ Types::GetEmailIdentityPoliciesResponse
Returns the requested sending authorization policies for the given identity (an email address or a domain).
-
#get_email_template(options = {}) ⇒ Types::GetEmailTemplateResponse
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.
. -
#get_import_job(options = {}) ⇒ Types::GetImportJobResponse
Provides information about an import job.
.
-
#get_suppressed_destination(options = {}) ⇒ Types::GetSuppressedDestinationResponse
Retrieves information about a specific email address that's on the suppression list for your account.
.
-
#list_configuration_sets(options = {}) ⇒ Types::ListConfigurationSetsResponse
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.
-
#list_contact_lists(options = {}) ⇒ Types::ListContactListsResponse
Lists all of the contact lists available.
.
-
#list_contacts(options = {}) ⇒ Types::ListContactsResponse
Lists the contacts present in a specific contact list.
.
-
#list_custom_verification_email_templates(options = {}) ⇒ Types::ListCustomVerificationEmailTemplatesResponse
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.
. -
#list_dedicated_ip_pools(options = {}) ⇒ Types::ListDedicatedIpPoolsResponse
List all of the dedicated IP pools that exist in your AWS account in the current Region.
.
-
#list_deliverability_test_reports(options = {}) ⇒ Types::ListDeliverabilityTestReportsResponse
Show a list of the predictive inbox placement tests that you've performed, regardless of their statuses.
-
#list_domain_deliverability_campaigns(options = {}) ⇒ Types::ListDomainDeliverabilityCampaignsResponse
Retrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time range.
-
#list_email_identities(options = {}) ⇒ Types::ListEmailIdentitiesResponse
Returns a list of all of the email identities that are associated with your AWS account.
-
#list_email_templates(options = {}) ⇒ Types::ListEmailTemplatesResponse
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.
. -
#list_import_jobs(options = {}) ⇒ Types::ListImportJobsResponse
Lists all of the import jobs.
.
-
#list_suppressed_destinations(options = {}) ⇒ Types::ListSuppressedDestinationsResponse
Retrieves a list of email addresses that are on the suppression list for your account.
.
-
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Retrieve a list of the tags (keys and values) that are associated with a specified resource.
-
#put_account_dedicated_ip_warmup_attributes(options = {}) ⇒ Struct
Enable or disable the automatic warm-up feature for dedicated IP addresses.
.
-
#put_account_details(options = {}) ⇒ Struct
Update your Amazon SES account details.
.
-
#put_account_sending_attributes(options = {}) ⇒ Struct
Enable or disable the ability of your account to send email.
.
-
#put_account_suppression_attributes(options = {}) ⇒ Struct
Change the settings for the account-level suppression list.
.
-
#put_configuration_set_delivery_options(options = {}) ⇒ Struct
Associate a configuration set with a dedicated IP pool.
-
#put_configuration_set_reputation_options(options = {}) ⇒ Struct
Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.
.
-
#put_configuration_set_sending_options(options = {}) ⇒ Struct
Enable or disable email sending for messages that use a particular configuration set in a specific AWS Region.
.
-
#put_configuration_set_suppression_options(options = {}) ⇒ Struct
Specify the account suppression list preferences for a configuration set.
.
-
#put_configuration_set_tracking_options(options = {}) ⇒ Struct
Specify a custom domain to use for open and click tracking elements in email that you send.
.
-
#put_dedicated_ip_in_pool(options = {}) ⇒ Struct
Move a dedicated IP address to an existing dedicated IP pool.
The dedicated IP address that you specify must already exist, and must be associated with your AWS account.
-
#put_dedicated_ip_warmup_attributes(options = {}) ⇒ Struct
.
-
#put_deliverability_dashboard_option(options = {}) ⇒ Struct
Enable or disable the Deliverability dashboard.
-
#put_email_identity_dkim_attributes(options = {}) ⇒ Struct
Used to enable or disable DKIM authentication for an email identity.
.
-
#put_email_identity_dkim_signing_attributes(options = {}) ⇒ Types::PutEmailIdentityDkimSigningAttributesResponse
Used to configure or change the DKIM authentication settings for an email domain identity.
-
#put_email_identity_feedback_attributes(options = {}) ⇒ Struct
Used to enable or disable feedback forwarding for an identity.
-
#put_email_identity_mail_from_attributes(options = {}) ⇒ Struct
Used to enable or disable the custom Mail-From domain configuration for an email identity.
.
-
#put_suppressed_destination(options = {}) ⇒ Struct
Adds an email address to the suppression list for your account.
.
-
#send_bulk_email(options = {}) ⇒ Types::SendBulkEmailResponse
Composes an email message to multiple destinations.
.
-
#send_custom_verification_email(options = {}) ⇒ Types::SendCustomVerificationEmailResponse
Adds an email address to the list of identities for your Amazon SES account in the current AWS Region and attempts to verify it.
-
#send_email(options = {}) ⇒ Types::SendEmailResponse
Sends an email message.
-
#tag_resource(options = {}) ⇒ Struct
Add one or more tags (keys and values) to a specified resource.
-
#test_render_email_template(options = {}) ⇒ Types::TestRenderEmailTemplateResponse
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.
. -
#untag_resource(options = {}) ⇒ Struct
Remove one or more tags (keys and values) from a specified resource.
.
-
#update_configuration_set_event_destination(options = {}) ⇒ Struct
Update the configuration of an event destination for a configuration set.
Events include message sends, deliveries, opens, clicks, bounces, and complaints.
-
#update_contact(options = {}) ⇒ Struct
Updates a contact's preferences for a list.
-
#update_contact_list(options = {}) ⇒ Struct
Updates contact list metadata.
-
#update_custom_verification_email_template(options = {}) ⇒ Struct
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.
. -
#update_email_identity_policy(options = {}) ⇒ Struct
Updates the specified sending authorization policy for the given identity (an email address or a domain).
-
#update_email_template(options = {}) ⇒ Struct
Updates an email template.
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options = {}) ⇒ Aws::SESV2::Client
Constructs an API client.
Instance Method Details
#create_configuration_set(options = {}) ⇒ Struct
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.
#create_configuration_set_event_destination(options = {}) ⇒ Struct
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 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.
A single configuration set can include more than one event destination.
#create_contact(options = {}) ⇒ Struct
Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.
#create_contact_list(options = {}) ⇒ Struct
Creates a contact list.
#create_custom_verification_email_template(options = {}) ⇒ Struct
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.
#create_dedicated_ip_pool(options = {}) ⇒ Struct
Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your AWS 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.
#create_deliverability_test_report(options = {}) ⇒ Types::CreateDeliverabilityTestReportResponse
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.
#create_email_identity(options = {}) ⇒ Types::CreateEmailIdentityResponse
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 that you want to use for DKIM authentication) and a private key.
#create_email_identity_policy(options = {}) ⇒ Struct
Creates the specified sending authorization policy for the given 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.
#create_email_template(options = {}) ⇒ Struct
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.
#create_import_job(options = {}) ⇒ Types::CreateImportJobResponse
Creates an import job for a data destination.
#delete_configuration_set(options = {}) ⇒ Struct
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.
#delete_configuration_set_event_destination(options = {}) ⇒ Struct
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 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.
#delete_contact(options = {}) ⇒ Struct
Removes a contact from a contact list.
#delete_contact_list(options = {}) ⇒ Struct
Deletes a contact list and all of the contacts on that list.
#delete_custom_verification_email_template(options = {}) ⇒ Struct
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.
#delete_dedicated_ip_pool(options = {}) ⇒ Struct
Delete a dedicated IP pool.
#delete_email_identity(options = {}) ⇒ Struct
Deletes an email identity. An identity can be either an email address or a domain name.
#delete_email_identity_policy(options = {}) ⇒ Struct
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.
#delete_email_template(options = {}) ⇒ Struct
Deletes an email template.
You can execute this operation no more than once per second.
#delete_suppressed_destination(options = {}) ⇒ Struct
Removes an email address from the suppression list for your account.
#get_account(options = {}) ⇒ Types::GetAccountResponse
Obtain information about the email-sending status and capabilities of your Amazon SES account in the current AWS Region.
#get_blacklist_reports(options = {}) ⇒ Types::GetBlacklistReportsResponse
Retrieve a list of the blacklists that your dedicated IP addresses appear on.
#get_configuration_set(options = {}) ⇒ Types::GetConfigurationSetResponse
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.
#get_configuration_set_event_destinations(options = {}) ⇒ Types::GetConfigurationSetEventDestinationsResponse
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 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.
#get_contact(options = {}) ⇒ Types::GetContactResponse
Returns a contact from a contact list.
#get_contact_list(options = {}) ⇒ Types::GetContactListResponse
Returns contact list metadata. It does not return any information about the contacts present in the list.
#get_custom_verification_email_template(options = {}) ⇒ Types::GetCustomVerificationEmailTemplateResponse
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.
#get_dedicated_ip(options = {}) ⇒ Types::GetDedicatedIpResponse
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.
#get_dedicated_ips(options = {}) ⇒ Types::GetDedicatedIpsResponse
List the dedicated IP addresses that are associated with your AWS account.
#get_deliverability_dashboard_options(options = {}) ⇒ Types::GetDeliverabilityDashboardOptionsResponse
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 AWS services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing.
#get_deliverability_test_report(options = {}) ⇒ Types::GetDeliverabilityTestReportResponse
Retrieve the results of a predictive inbox placement test.
#get_domain_deliverability_campaign(options = {}) ⇒ Types::GetDomainDeliverabilityCampaignResponse
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.
#get_domain_statistics_report(options = {}) ⇒ Types::GetDomainStatisticsReportResponse
Retrieve inbox placement and engagement rates for the domains that you use to send email.
#get_email_identity(options = {}) ⇒ Types::GetEmailIdentityResponse
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.
#get_email_identity_policies(options = {}) ⇒ Types::GetEmailIdentityPoliciesResponse
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.
#get_email_template(options = {}) ⇒ Types::GetEmailTemplateResponse
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.
#get_import_job(options = {}) ⇒ Types::GetImportJobResponse
Provides information about an import job.
#get_suppressed_destination(options = {}) ⇒ Types::GetSuppressedDestinationResponse
Retrieves information about a specific email address that's on the suppression list for your account.
#list_configuration_sets(options = {}) ⇒ Types::ListConfigurationSetsResponse
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.
#list_contact_lists(options = {}) ⇒ Types::ListContactListsResponse
Lists all of the contact lists available.
#list_contacts(options = {}) ⇒ Types::ListContactsResponse
Lists the contacts present in a specific contact list.
#list_custom_verification_email_templates(options = {}) ⇒ Types::ListCustomVerificationEmailTemplatesResponse
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.
#list_dedicated_ip_pools(options = {}) ⇒ Types::ListDedicatedIpPoolsResponse
List all of the dedicated IP pools that exist in your AWS account in the current Region.
#list_deliverability_test_reports(options = {}) ⇒ Types::ListDeliverabilityTestReportsResponse
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.
#list_domain_deliverability_campaigns(options = {}) ⇒ Types::ListDomainDeliverabilityCampaignsResponse
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.
#list_email_identities(options = {}) ⇒ Types::ListEmailIdentitiesResponse
Returns a list of all of the email identities that are associated with your AWS 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.
#list_email_templates(options = {}) ⇒ Types::ListEmailTemplatesResponse
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.
#list_import_jobs(options = {}) ⇒ Types::ListImportJobsResponse
Lists all of the import jobs.
#list_suppressed_destinations(options = {}) ⇒ Types::ListSuppressedDestinationsResponse
Retrieves a list of email addresses that are on the suppression list for your account.
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
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.
#put_account_dedicated_ip_warmup_attributes(options = {}) ⇒ Struct
Enable or disable the automatic warm-up feature for dedicated IP addresses.
#put_account_details(options = {}) ⇒ Struct
Update your Amazon SES account details.
#put_account_sending_attributes(options = {}) ⇒ Struct
Enable or disable the ability of your account to send email.
#put_account_suppression_attributes(options = {}) ⇒ Struct
Change the settings for the account-level suppression list.
#put_configuration_set_delivery_options(options = {}) ⇒ Struct
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.
#put_configuration_set_reputation_options(options = {}) ⇒ Struct
Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.
#put_configuration_set_sending_options(options = {}) ⇒ Struct
Enable or disable email sending for messages that use a particular configuration set in a specific AWS Region.
#put_configuration_set_suppression_options(options = {}) ⇒ Struct
Specify the account suppression list preferences for a configuration set.
#put_configuration_set_tracking_options(options = {}) ⇒ Struct
Specify a custom domain to use for open and click tracking elements in email that you send.
#put_dedicated_ip_in_pool(options = {}) ⇒ Struct
Move a dedicated IP address to an existing dedicated IP pool.
The dedicated IP address that you specify must already exist, and must be associated with your AWS account. The dedicated IP pool you specify must already exist. You can create a new pool by using the CreateDedicatedIpPool
operation.
#put_dedicated_ip_warmup_attributes(options = {}) ⇒ Struct
#put_deliverability_dashboard_option(options = {}) ⇒ Struct
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 AWS services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing.
#put_email_identity_dkim_attributes(options = {}) ⇒ Struct
Used to enable or disable DKIM authentication for an email identity.
#put_email_identity_dkim_signing_attributes(options = {}) ⇒ Types::PutEmailIdentityDkimSigningAttributesResponse
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).
-
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.
#put_email_identity_feedback_attributes(options = {}) ⇒ Struct
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).
#put_email_identity_mail_from_attributes(options = {}) ⇒ Struct
Used to enable or disable the custom Mail-From domain configuration for an email identity.
#put_suppressed_destination(options = {}) ⇒ Struct
Adds an email address to the suppression list for your account.
#send_bulk_email(options = {}) ⇒ Types::SendBulkEmailResponse
Composes an email message to multiple destinations.
#send_custom_verification_email(options = {}) ⇒ Types::SendCustomVerificationEmailResponse
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.
#send_email(options = {}) ⇒ Types::SendEmailResponse
Sends an email message. You can use the Amazon SES API v2 to send two 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.
#tag_resource(options = {}) ⇒ Struct
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.
#test_render_email_template(options = {}) ⇒ Types::TestRenderEmailTemplateResponse
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.
#untag_resource(options = {}) ⇒ Struct
Remove one or more tags (keys and values) from a specified resource.
#update_configuration_set_event_destination(options = {}) ⇒ Struct
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 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.
#update_contact(options = {}) ⇒ Struct
Updates a contact's preferences for a list. It is not necessary to specify all existing topic preferences in the TopicPreferences object, just the ones that need updating.
#update_contact_list(options = {}) ⇒ Struct
Updates contact list metadata. This operation does a complete replacement.
#update_custom_verification_email_template(options = {}) ⇒ Struct
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.
#update_email_identity_policy(options = {}) ⇒ Struct
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.
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.
#update_email_template(options = {}) ⇒ Struct
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.
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
Basic Usage
Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.
# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:
# poll for ~25 seconds
client.wait_until(...) do |w|
w.max_attempts = 5
w.delay = 5
end
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success
or :failure
from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(...) do |w|
# disable max attempts
w.max_attempts = nil
# poll for 1 hour, instead of a number of attempts
w.before_wait do |attempts, response|
throw :failure if Time.now - started_at > 3600
end
end
Handling Errors
When a waiter is successful, it returns true
. When a waiter
fails, it raises an error. All errors raised extend from
Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:
Waiter Name | Client Method | Default Delay: | Default Max Attempts: |
---|