type_activations
Creates, updates, deletes or gets a type_activation resource or lists type_activations in a region
Overview
| Name | type_activations |
| Type | Resource |
| Description | Enable a resource that has been published in the CloudFormation Registry. |
| Id | aws.cloudformation.type_activations |
Fields
| Name | Datatype | Description |
|---|---|---|
arn | string | The Amazon Resource Name (ARN) of the extension. |
execution_role_arn | string | The 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_id | string | The publisher id assigned by CloudFormation for publishing in this region. |
logging_config | object | Specifies logging configuration information for a type. |
public_type_arn | string | The Amazon Resource Number (ARN) assigned to the public extension upon publication |
auto_update | boolean | Whether 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_alias | string | An 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_bump | string | Manually 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_version | string | The Major Version of the type you want to enable |
type_name | string | The name of the type being registered. We recommend that type names adhere to the following pattern: company_or_organization::service::type. |
type | string | The kind of extension |
region | string | AWS region. |
For more information, see AWS::CloudFormation::TypeActivation.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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.
- Required Properties
- All Properties
- Manifest
/*+ 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 }}';
/*+ 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 }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: type_activation
props:
- name: ExecutionRoleArn
value: '{{ ExecutionRoleArn }}'
- name: PublisherId
value: '{{ PublisherId }}'
- name: LoggingConfig
value:
LogGroupName: '{{ LogGroupName }}'
LogRoleArn: '{{ LogRoleArn }}'
- name: PublicTypeArn
value: '{{ PublicTypeArn }}'
- name: AutoUpdate
value: '{{ AutoUpdate }}'
- name: TypeNameAlias
value: '{{ TypeNameAlias }}'
- name: VersionBump
value: '{{ VersionBump }}'
- name: MajorVersion
value: '{{ MajorVersion }}'
- name: TypeName
value: '{{ TypeName }}'
- name: Type
value: '{{ Type }}'
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