Skip to main content

custom_verification_email_templates

Creates, updates, deletes, gets or lists a custom_verification_email_templates resource.

Overview

Namecustom_verification_email_templates
TypeResource
Idaws.ses.custom_verification_email_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
failure_redirection_urlstringThe URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
from_email_addressstringThe email address that the custom verification email is sent from.
success_redirection_urlstringThe URL that the recipient of the verification email is sent to if his or her address is successfully verified.
template_contentstringThe content of the custom verification email.
template_namestringThe name of the custom verification email template.
template_subjectstringThe subject line of the custom verification email.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_verification_email_templateselectTemplateName, regionReturns 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.
list_custom_verification_email_templatesselectregionNextToken, MaxResultsLists 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.
create_custom_verification_email_templateinsertTemplateName, FromEmailAddress, TemplateSubject, TemplateContent, SuccessRedirectionURL, FailureRedirectionURL, regionCreates 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.
update_custom_verification_email_templateupdateTemplateName, regionFromEmailAddress, TemplateSubject, TemplateContent, SuccessRedirectionURL, FailureRedirectionURLUpdates 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_custom_verification_email_templatedeleteTemplateName, regionDeletes 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
FailureRedirectionURLstringThe URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
FromEmailAddressstringThe email address that the custom verification email is sent from.
SuccessRedirectionURLstringThe URL that the recipient of the verification email is sent to if his or her address is successfully verified.
TemplateContentstringThe 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.
TemplateNamestringThe name of the custom verification email template to delete.
TemplateSubjectstringThe subject line of the custom verification email.
regionstringAWS region (default: us-east-1)
FailureRedirectionURLstringThe URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
FromEmailAddressstringThe email address that the custom verification email is sent from.
MaxResultsintegerThe maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation returns up to 50 results.
NextTokenstringAn array the contains the name and creation time stamp for each template in your Amazon SES account.
SuccessRedirectionURLstringThe URL that the recipient of the verification email is sent to if his or her address is successfully verified.
TemplateContentstringThe 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.
TemplateSubjectstringThe subject line of the custom verification email.

SELECT examples

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.

SELECT
failure_redirection_url,
from_email_address,
success_redirection_url,
template_content,
template_name,
template_subject
FROM aws.ses.custom_verification_email_templates
WHERE TemplateName = '{{ TemplateName }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.ses.custom_verification_email_templates (
TemplateName,
FromEmailAddress,
TemplateSubject,
TemplateContent,
SuccessRedirectionURL,
FailureRedirectionURL,
region
)
SELECT
'{{ TemplateName }}',
'{{ FromEmailAddress }}',
'{{ TemplateSubject }}',
'{{ TemplateContent }}',
'{{ SuccessRedirectionURL }}',
'{{ FailureRedirectionURL }}',
'{{ region }}'
;

UPDATE examples

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 aws.ses.custom_verification_email_templates
SET
-- No updatable properties
WHERE
TemplateName = '{{ TemplateName }}' --required
AND region = '{{ region }}' --required
AND FromEmailAddress = '{{ FromEmailAddress}}'
AND TemplateSubject = '{{ TemplateSubject}}'
AND TemplateContent = '{{ TemplateContent}}'
AND SuccessRedirectionURL = '{{ SuccessRedirectionURL}}'
AND FailureRedirectionURL = '{{ FailureRedirectionURL}}';

DELETE examples

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 FROM aws.ses.custom_verification_email_templates
WHERE TemplateName = '{{ TemplateName }}' --required
AND region = '{{ region }}' --required
;