Skip to main content

templates

Creates, updates, deletes or gets a template resource or lists templates in a region

Overview

Nametemplates
TypeResource
DescriptionResource Type definition for AWS::SES::Template
Idaws.ses.templates

Fields

NameDatatypeDescription
idstring
templateobjectResource Type definition for AWS::SES::Template
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all templates in a region.

SELECT
region,
id,
template
FROM aws.ses.templates
WHERE region = 'us-east-1';

Gets all properties from an individual template.

SELECT
region,
id,
template
FROM aws.ses.templates
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new template resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ses.templates (
Template,
region
)
SELECT
'{{ Template }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ses.templates
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the templates resource, the following permissions are required:

Create

ses:CreateEmailTemplate,
ses:GetEmailTemplate,
ses:CreateTemplate,
ses:GetTemplate

Read

ses:GetEmailTemplate,
ses:GetTemplate

Delete

ses:DeleteEmailTemplate,
ses:DeleteTemplate

Update

ses:GetEmailTemplate,
ses:UpdateEmailTemplate,
ses:GetTemplate,
ses:UpdateTemplate

List

ses:ListEmailTemplates,
ses:ListTemplates