Skip to main content

type_versions

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

Overview

Nametype_versions
TypeResource
Idaws.cloudformation.type_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the extension version.
descriptionstringThe description of the extension version.
is_default_versionbooleanWhether the specified extension version is set as the default version. This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, CloudFormation returns null.
public_version_numberstringFor public extensions that have been activated for this account and Region, the version of the public extension to be used for CloudFormation operations in this account and Region. For any extensions other than activated third-party extensions, CloudFormation returns null. How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
time_createdstringWhen the version was registered.
typestringThe kind of extension.
type_namestringThe name of the extension.
version_idstringThe ID of a specific version of the extension. The version ID is the value at the end of the ARN assigned to the extension version when it's registered.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_type_versionsselectregionType, TypeName, Arn, MaxResults, NextToken, DeprecatedStatus, PublisherIdReturns summary information about the versions of an extension.

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)
ArnstringThe Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
DeprecatedStatusstringThe deprecation status of the extension versions that you want to get summary information about. Valid values include: LIVE: The extension version is registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope. DEPRECATED: The extension version has been deregistered and can no longer be used in CloudFormation operations. The default is LIVE.
MaxResultsintegerThe maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)
PublisherIdstringThe publisher ID of the extension publisher. Extensions published by Amazon aren't assigned a publisher ID.
TypestringThe kind of the extension. Conditional: You must specify either TypeName and Type, or Arn.
TypeNamestringThe name of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.

SELECT examples

Returns summary information about the versions of an extension.

SELECT
arn,
description,
is_default_version,
public_version_number,
time_created,
type,
type_name,
version_id
FROM aws.cloudformation.type_versions
WHERE region = '{{ region }}' -- required
AND Type = '{{ Type }}'
AND TypeName = '{{ TypeName }}'
AND Arn = '{{ Arn }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DeprecatedStatus = '{{ DeprecatedStatus }}'
AND PublisherId = '{{ PublisherId }}'
;