Skip to main content

in_app_templates

Creates, updates, deletes or gets an in_app_template resource or lists in_app_templates in a region

Overview

Namein_app_templates
TypeResource
DescriptionResource Type definition for AWS::Pinpoint::InAppTemplate
Idaws.pinpoint.in_app_templates

Fields

NameDatatypeDescription
arnstring
contentarray
custom_configobject
layoutstring
tagsobject
template_descriptionstring
template_namestring
regionstringAWS region.

Methods

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

SELECT examples

Gets all in_app_templates in a region.

SELECT
region,
arn,
content,
custom_config,
layout,
tags,
template_description,
template_name
FROM aws.pinpoint.in_app_templates
WHERE region = 'us-east-1';

Gets all properties from an individual in_app_template.

SELECT
region,
arn,
content,
custom_config,
layout,
tags,
template_description,
template_name
FROM aws.pinpoint.in_app_templates
WHERE region = 'us-east-1' AND data__Identifier = '<TemplateName>';

INSERT example

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

/*+ create */
INSERT INTO aws.pinpoint.in_app_templates (
TemplateName,
region
)
SELECT
'{{ TemplateName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.pinpoint.in_app_templates
WHERE data__Identifier = '<TemplateName>'
AND region = 'us-east-1';

Permissions

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

Create

mobiletargeting:CreateInAppTemplate,
mobiletargeting:GetInAppTemplate,
mobiletargeting:TagResource

Delete

mobiletargeting:DeleteInAppTemplate,
mobiletargeting:GetInAppTemplate

List

mobiletargeting:GetInAppTemplate,
mobiletargeting:ListTemplates

Read

mobiletargeting:GetInAppTemplate,
mobiletargeting:ListTemplates

Update

mobiletargeting:UpdateInAppTemplate,
mobiletargeting:GetInAppTemplate