Skip to main content

service_templates

Creates, updates, deletes, gets or lists a service_templates resource.

Overview

Nameservice_templates
TypeResource
Idaws.proton.service_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the service template. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
arnstringThe Amazon Resource Name (ARN) of the service template.
created_atstring (date-time)The time when the service template was created.
descriptionstringA description of the service template.
display_namestringThe service template name as displayed in the developer interface.
encryption_keystringThe customer provided service template encryption key that's used to encrypt data. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov):[a-zA-Z0-9-]+:[a-zA-Z0-9-]:\d{12}:([\w+=,.@-]+[/:])[\w+=,.@-]+$</code>)
last_modified_atstring (date-time)The time when the service template was last modified.
pipeline_provisioningstringIf pipelineProvisioning is true, a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template. (CUSTOMER_MANAGED)
recommended_versionstringThe recommended version of the service template. (pattern: <code>^(0|([1-9]{1}\d*)).(0|([1-9]{1}\d*))$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_templateselectregionGet detailed data for a service template.
list_service_templatesselectregionList service templates with detail data.
create_service_templateinsertregion, nameCreate a service template. The administrator creates a service template to define standardized infrastructure and an optional CI/CD service pipeline. Developers, in turn, select the service template from Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Proton templates in the Proton User Guide.
update_service_templateupdateregion, nameUpdate a service template.
delete_service_templatedeleteregionIf no other major or minor versions of the service template exist, delete the service template.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Get detailed data for a service template.

SELECT
name,
arn,
created_at,
description,
display_name,
encryption_key,
last_modified_at,
pipeline_provisioning,
recommended_version
FROM aws.proton.service_templates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CI/CD service pipeline. Developers, in turn, select the service template from Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Proton templates in the Proton User Guide.

INSERT INTO aws.proton.service_templates (
description,
displayName,
encryptionKey,
name,
pipelineProvisioning,
tags,
region
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ encryptionKey }}',
'{{ name }}' /* required */,
'{{ pipelineProvisioning }}',
'{{ tags }}',
'{{ region }}'
RETURNING
service_template
;

UPDATE examples

Update a service template.

UPDATE aws.proton.service_templates
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
name = '{{ name }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
RETURNING
service_template;

DELETE examples

If no other major or minor versions of the service template exist, delete the service template.

DELETE FROM aws.proton.service_templates
WHERE region = '{{ region }}' --required
;