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
Idawscc.ses.templates

Fields

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

For more information, see AWS::SES::Template.

Methods

NameResourceAccessible byRequired Params
create_resourcetemplatesINSERTregion
delete_resourcetemplatesDELETEIdentifier, region
update_resourcetemplatesUPDATEIdentifier, PatchDocument, region
list_resourcestemplates_list_onlySELECTregion
get_resourcetemplatesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual template.

SELECT
region,
id,
template
FROM awscc.ses.templates
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM awscc.ses.templates
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

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