Skip to main content

environment_template_versions

Creates, updates, deletes, gets or lists an environment_template_versions resource.

Overview

Nameenvironment_template_versions
TypeResource
Idaws.proton.environment_template_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the version of an environment template.
created_atstring (date-time)The time when the version of an environment template was created.
descriptionstringA description of the minor version of an environment template.
last_modified_atstring (date-time)The time when the version of an environment template was last modified.
major_versionstringThe latest major version that's associated with the version of an environment template. (pattern: <code>^(0|([1-9]{1}\d*))$</code>)
minor_versionstringThe minor version of an environment template. (pattern: <code>^(0|([1-9]{1}\d*))$</code>)
recommended_minor_versionstringThe recommended minor version of the environment template. (pattern: <code>^(0|([1-9]{1}\d*))$</code>)
schemastringThe schema of the version of an environment template.
statusstringThe status of the version of an environment template. (REGISTRATION_IN_PROGRESS, REGISTRATION_FAILED, DRAFT, PUBLISHED)
status_messagestringThe status message of the version of an environment template.
template_namestringThe name of the version of an environment template. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_template_versionselectregionGet detailed data for a major or minor version of an environment template.
list_environment_template_versionsselectregionList major or minor versions of an environment template with detail data.
create_environment_template_versioninsertregion, source, templateNameCreate a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.
update_environment_template_versionupdateregion, majorVersion, minorVersion, templateNameUpdate a major or minor version of an environment template.
delete_environment_template_versiondeleteregionIf no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backward compatible. Delete a minor version of an environment template if it isn't the Recommended version. Delete a Recommended minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backward compatible.

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 major or minor version of an environment template.

SELECT
arn,
created_at,
description,
last_modified_at,
major_version,
minor_version,
recommended_minor_version,
schema,
status,
status_message,
template_name
FROM aws.proton.environment_template_versions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.

INSERT INTO aws.proton.environment_template_versions (
clientToken,
description,
majorVersion,
source,
tags,
templateName,
region
)
SELECT
'{{ clientToken }}',
'{{ description }}',
'{{ majorVersion }}',
'{{ source }}' /* required */,
'{{ tags }}',
'{{ templateName }}' /* required */,
'{{ region }}'
RETURNING
environment_template_version
;

UPDATE examples

Update a major or minor version of an environment template.

UPDATE aws.proton.environment_template_versions
SET
description = '{{ description }}',
majorVersion = '{{ majorVersion }}',
minorVersion = '{{ minorVersion }}',
status = '{{ status }}',
templateName = '{{ templateName }}'
WHERE
region = '{{ region }}' --required
AND majorVersion = '{{ majorVersion }}' --required
AND minorVersion = '{{ minorVersion }}' --required
AND templateName = '{{ templateName }}' --required
RETURNING
environment_template_version;

DELETE examples

If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backward compatible. Delete a minor version of an environment template if it isn't the Recommended version. Delete a Recommended minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backward compatible.

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