Skip to main content

public_type_versions

Creates, updates, deletes or gets a public_type_version resource or lists public_type_versions in a region

Overview

Namepublic_type_versions
TypeResource
DescriptionTest and Publish a resource that has been registered in the CloudFormation Registry.
Idaws.cloudformation.public_type_versions

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Number (ARN) of the extension.
type_version_arnstringThe Amazon Resource Number (ARN) of the extension with the versionId.
public_version_numberstringThe version number of a public third-party extension
publisher_idstringThe publisher id assigned by CloudFormation for publishing in this region.
public_type_arnstringThe Amazon Resource Number (ARN) assigned to the public extension upon publication
type_namestringThe name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
log_delivery_bucketstringA url to the S3 bucket where logs for the testType run will be available
typestringThe kind of extension
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all public_type_versions in a region.

SELECT
region,
arn,
type_version_arn,
public_version_number,
publisher_id,
public_type_arn,
type_name,
log_delivery_bucket,
type
FROM aws.cloudformation.public_type_versions
WHERE region = 'us-east-1';

Gets all properties from an individual public_type_version.

SELECT
region,
arn,
type_version_arn,
public_version_number,
publisher_id,
public_type_arn,
type_name,
log_delivery_bucket,
type
FROM aws.cloudformation.public_type_versions
WHERE region = 'us-east-1' AND data__Identifier = '<PublicTypeArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.cloudformation.public_type_versions (
Arn,
PublicVersionNumber,
TypeName,
LogDeliveryBucket,
Type,
region
)
SELECT
'{{ Arn }}',
'{{ PublicVersionNumber }}',
'{{ TypeName }}',
'{{ LogDeliveryBucket }}',
'{{ Type }}',
'{{ region }}';

Permissions

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

Create

cloudformation:TestType,
cloudformation:DescribeType,
cloudformation:PublishType,
cloudformation:DescribePublisher,
s3:GetObject,
s3:PutObject

Read

cloudformation:DescribeType,
cloudformation:DescribePublisher

List

cloudformation:ListTypes