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.
Idaws.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 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.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
typestringThe kind of extension
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all type_activations in a region.

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 aws.cloudformation.type_activations
WHERE region = 'us-east-1';

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 aws.cloudformation.type_activations
WHERE region = 'us-east-1' AND data__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 aws.cloudformation.type_activations (
ExecutionRoleArn,
PublisherId,
LoggingConfig,
PublicTypeArn,
AutoUpdate,
TypeNameAlias,
VersionBump,
MajorVersion,
TypeName,
Type,
region
)
SELECT
'{{ ExecutionRoleArn }}',
'{{ PublisherId }}',
'{{ LoggingConfig }}',
'{{ PublicTypeArn }}',
'{{ AutoUpdate }}',
'{{ TypeNameAlias }}',
'{{ VersionBump }}',
'{{ MajorVersion }}',
'{{ TypeName }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cloudformation.type_activations
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

cloudformation:ActivateType,
cloudformation:DescribeType,
iam:PassRole

Update

cloudformation:ActivateType,
cloudformation:DescribeType,
iam:PassRole

Read

cloudformation:DescribeType

Delete

cloudformation:DeactivateType,
cloudformation:DescribeType

List

cloudformation:ListTypes