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.sesv2.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.
tagsarrayAn array of objects that define the tags (keys and values) that are associated with the custom verification email template.
template_contentstringThe content of the custom verification email template.
template_namestringThe name of the template. You will refer to this name when you send email using the SendEmail or SendBulkEmail operations.
template_subjectstringThe subject line of the email.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_verification_email_templateselecttemplate_name, 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, PageSizeLists 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_templateinsertregion, TemplateName, FromEmailAddress, TemplateSubject, TemplateContent, SuccessRedirectionURL, FailureRedirectionURLCreates 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_templateupdatetemplate_name, region, FromEmailAddress, 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_templatedeletetemplate_name, 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
regionstringAWS region (default: us-east-1)
template_namestringThe name of the custom verification email template that you want to delete.
NextTokenstringA token returned from a previous call to ListCustomVerificationEmailTemplates to indicate the position in the list of custom verification email templates.
PageSizeintegerThe number of results to show in a single call to ListCustomVerificationEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 50.

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,
tags,
template_content,
template_name,
template_subject
FROM aws.sesv2.custom_verification_email_templates
WHERE template_name = '{{ template_name }}' -- 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.sesv2.custom_verification_email_templates (
TemplateName,
FromEmailAddress,
TemplateSubject,
TemplateContent,
Tags,
SuccessRedirectionURL,
FailureRedirectionURL,
region
)
SELECT
'{{ TemplateName }}' /* required */,
'{{ FromEmailAddress }}' /* required */,
'{{ TemplateSubject }}' /* required */,
'{{ TemplateContent }}' /* required */,
'{{ Tags }}',
'{{ SuccessRedirectionURL }}' /* required */,
'{{ FailureRedirectionURL }}' /* required */,
'{{ 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.sesv2.custom_verification_email_templates
SET
FromEmailAddress = '{{ FromEmailAddress }}',
TemplateSubject = '{{ TemplateSubject }}',
TemplateContent = '{{ TemplateContent }}',
SuccessRedirectionURL = '{{ SuccessRedirectionURL }}',
FailureRedirectionURL = '{{ FailureRedirectionURL }}'
WHERE
template_name = '{{ template_name }}' --required
AND region = '{{ region }}' --required
AND FromEmailAddress = '{{ FromEmailAddress }}' --required
AND TemplateSubject = '{{ TemplateSubject }}' --required
AND TemplateContent = '{{ TemplateContent }}' --required
AND SuccessRedirectionURL = '{{ SuccessRedirectionURL }}' --required
AND FailureRedirectionURL = '{{ FailureRedirectionURL }}' --required;

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.sesv2.custom_verification_email_templates
WHERE template_name = '{{ template_name }}' --required
AND region = '{{ region }}' --required
;