Skip to main content

service_templates

Creates, updates, deletes or gets a service_template resource or lists service_templates in a region

Overview

Nameservice_templates
TypeResource
DescriptionDefinition of AWS::Proton::ServiceTemplate Resource Type
Idaws.proton.service_templates

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) of the service template.

descriptionstring

A description of the service template.

display_namestring

The name of the service template as displayed in the developer interface.

encryption_keystring

A customer provided encryption key that's used to encrypt data.

namestring
pipeline_provisioningstring
tagsarray

An optional list of metadata items that you can associate with the Proton service template. A tag is a key-value pair.


For more information, see Proton resources and tagging in the
Proton User Guide.

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 service_templates in a region.

SELECT
region,
arn,
description,
display_name,
encryption_key,
name,
pipeline_provisioning,
tags
FROM aws.proton.service_templates
WHERE region = 'us-east-1';

Gets all properties from an individual service_template.

SELECT
region,
arn,
description,
display_name,
encryption_key,
name,
pipeline_provisioning,
tags
FROM aws.proton.service_templates
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.proton.service_templates (
Description,
DisplayName,
EncryptionKey,
Name,
PipelineProvisioning,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ DisplayName }}',
'{{ EncryptionKey }}',
'{{ Name }}',
'{{ PipelineProvisioning }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.proton.service_templates
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

proton:CreateServiceTemplate,
proton:TagResource,
kms:*,
proton:GetServiceTemplate

Read

proton:GetServiceTemplate,
proton:ListTagsForResource,
kms:*

Update

proton:GetServiceTemplate,
proton:CreateServiceTemplate,
proton:ListTagsForResource,
proton:TagResource,
proton:UntagResource,
proton:UpdateServiceTemplate,
kms:*

Delete

proton:DeleteServiceTemplate,
proton:UntagResource,
kms:*,
proton:GetServiceTemplate

List

proton:ListServiceTemplates