templates
Creates, updates, deletes or gets a template
resource or lists templates
in a region
Overview
Name | templates |
Type | Resource |
Description | Resource Type definition for AWS::SES::Template |
Id | aws.ses.templates |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
template | object | Resource Type definition for AWS::SES::Template |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ses.templates (
Template,
region
)
SELECT
'{{ Template }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ses.templates (
Template,
region
)
SELECT
'{{ Template }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: template
props:
- name: Template
value:
Template: null
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