AWS::CloudFormation::TypeActivation - AWS CloudFormation

AWS::CloudFormation::TypeActivation

Activates a public third-party extension, making it available for use in stack templates. Once you have activated a public third-party extension in your account and Region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Using public extensions in the AWS CloudFormation User Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::CloudFormation::TypeActivation", "Properties" : { "AutoUpdate" : Boolean, "ExecutionRoleArn" : String, "LoggingConfig" : LoggingConfig, "MajorVersion" : String, "PublicTypeArn" : String, "PublisherId" : String, "Type" : String, "TypeName" : String, "TypeNameAlias" : String, "VersionBump" : String } }

YAML

Type: AWS::CloudFormation::TypeActivation Properties: AutoUpdate: Boolean ExecutionRoleArn: String LoggingConfig: LoggingConfig MajorVersion: String PublicTypeArn: String PublisherId: String Type: String TypeName: String TypeNameAlias: String VersionBump: String

Properties

AutoUpdate

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.

The default is true.

Required: No

Type: Boolean

Update requires: No interruption

ExecutionRoleArn

The name of the IAM execution role to use to activate the extension.

Required: No

Type: String

Pattern: arn:.+:iam::[0-9]{12}:role/.+

Minimum: 1

Maximum: 256

Update requires: No interruption

LoggingConfig

Specifies logging configuration information for an extension.

Required: No

Type: LoggingConfig

Update requires: Replacement

MajorVersion

The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.

You can specify MajorVersion or VersionBump, but not both.

Required: No

Type: String

Minimum: 1

Maximum: 100000

Update requires: No interruption

PublicTypeArn

The Amazon Resource Number (ARN) of the public extension.

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

Required: Conditional

Type: String

Pattern: arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+

Maximum: 1024

Update requires: No interruption

PublisherId

The ID of the extension publisher.

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

Required: Conditional

Type: String

Pattern: [0-9a-zA-Z]{40}

Minimum: 1

Maximum: 40

Update requires: No interruption

Type

The extension type.

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

Required: Conditional

Type: String

Allowed values: RESOURCE | MODULE | HOOK

Update requires: No interruption

TypeName

The name of the extension.

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

Required: Conditional

Type: String

Pattern: [A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}

Update requires: No interruption

TypeNameAlias

An alias to assign to the public extension, in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.

An extension alias must be unique within a given account and Region. You can activate the same public resource multiple times in the same account and Region, using different type name aliases.

Required: No

Type: String

Pattern: [A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}

Minimum: 10

Maximum: 204

Update requires: No interruption

VersionBump

Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdate.

  • MAJOR: CloudFormation updates the extension to the newest major version, if one is available.

  • MINOR: CloudFormation updates the extension to the newest minor version, if one is available.

Required: No

Type: String

Allowed values: MAJOR | MINOR

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the Amazon Resource Number (ARN) of the activated extension, in this account and Region.

{ "Ref": "arn:aws:cloudformation:us-east-1:123456789013:type/resource/My-Example" }

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

The Amazon Resource Name (ARN) of the activated extension, in this account and Region.