Skip to main content

module_default_versions

Creates, updates, deletes or gets a module_default_version resource or lists module_default_versions in a region

Overview

Namemodule_default_versions
TypeResource
DescriptionA module that has been registered in the CloudFormation registry as the default version
Idaws.cloudformation.module_default_versions

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the module version to set as the default version.
module_namestringThe name of a module existing in the registry.
version_idstringThe ID of an existing version of the named module to set as the default.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all module_default_versions in a region.

SELECT
region,
arn,
module_name,
version_id
FROM aws.cloudformation.module_default_versions
WHERE region = 'us-east-1';

Gets all properties from an individual module_default_version.

SELECT
region,
arn,
module_name,
version_id
FROM aws.cloudformation.module_default_versions
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.cloudformation.module_default_versions (
Arn,
ModuleName,
VersionId,
region
)
SELECT
'{{ Arn }}',
'{{ ModuleName }}',
'{{ VersionId }}',
'{{ region }}';

Permissions

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

Create

cloudformation:DescribeType,
cloudformation:SetTypeDefaultVersion

Read

cloudformation:DescribeType

List

cloudformation:ListTypes