Skip to main content

type_activations

Creates, updates, deletes or gets a type_activation resource or lists type_activations in a region

Overview

Nametype_activations
TypeResource
DescriptionEnable a resource that has been published in the CloudFormation Registry.
Idawscc.cloudformation.type_activations

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the extension.
execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM execution role to use to register the type. If your resource type calls AWS APIs in any of its handlers, you must create an IAM execution role that includes the necessary permissions to call those AWS APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your resource type with the appropriate credentials.
publisher_idstringThe reserved publisher id for this type, or the publisher id assigned by CloudFormation for publishing in this region.
logging_configobjectSpecifies logging configuration information for a type.
public_type_arnstringThe Amazon Resource Number (ARN) assigned to the public extension upon publication
auto_updatebooleanWhether to automatically update the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.
type_name_aliasstringAn alias to assign to the public extension in this account and region. If you specify an alias for the extension, you must then use the alias to refer to the extension in your templates.
version_bumpstringManually updates a previously-enabled type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdateEnabled
major_versionstringThe Major Version of the type you want to enable
type_namestringThe name of the type being registered.<br />We recommend that type names adhere to the following pattern: company&#95;or&#95;organization::service::type.
typestringThe kind of extension
regionstringAWS region.

For more information, see AWS::CloudFormation::TypeActivation.

Methods

NameResourceAccessible byRequired Params
create_resourcetype_activationsINSERTregion
delete_resourcetype_activationsDELETEIdentifier, region
update_resourcetype_activationsUPDATEIdentifier, PatchDocument, region
list_resourcestype_activations_list_onlySELECTregion
get_resourcetype_activationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual type_activation.

SELECT
region,
arn,
execution_role_arn,
publisher_id,
logging_config,
public_type_arn,
auto_update,
type_name_alias,
version_bump,
major_version,
type_name,
type
FROM awscc.cloudformation.type_activations
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cloudformation.type_activations (
ExecutionRoleArn,
PublisherId,
LoggingConfig,
PublicTypeArn,
AutoUpdate,
TypeNameAlias,
VersionBump,
MajorVersion,
TypeName,
Type,
region
)
SELECT
'{{ execution_role_arn }}',
'{{ publisher_id }}',
'{{ logging_config }}',
'{{ public_type_arn }}',
'{{ auto_update }}',
'{{ type_name_alias }}',
'{{ version_bump }}',
'{{ major_version }}',
'{{ type_name }}',
'{{ type }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a type_activation resource, using stack-deploy.

/*+ update */
UPDATE awscc.cloudformation.type_activations
SET PatchDocument = string('{{ {
"ExecutionRoleArn": execution_role_arn,
"PublisherId": publisher_id,
"PublicTypeArn": public_type_arn,
"AutoUpdate": auto_update,
"TypeNameAlias": type_name_alias,
"VersionBump": version_bump,
"MajorVersion": major_version,
"TypeName": type_name,
"Type": type
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.cloudformation.type_activations
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

cloudformation:ActivateType,
cloudformation:DescribeType,
iam:PassRole