SetTypeConfiguration
Specifies the configuration data for a registered CloudFormation extension, in the given account and Region.
To view the current configuration data for an extension, refer to the
ConfigurationSchema
element of DescribeType. For
more information, see Edit configuration
data for extensions in your account in the
AWS CloudFormation User Guide.
Important
It's strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more details on dynamic references, see Specify values stored in other services using dynamic references in the AWS CloudFormation User Guide.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- Configuration
-
The configuration data for the extension, in this account and Region.
The configuration data must be formatted as JSON, and validate against the schema returned in the
ConfigurationSchema
response element of DescribeType. For more information, see Defining the account-level configuration of an extension in the AWS CloudFormation Command Line Interface (CLI) User Guide.Type: String
Length Constraints: Minimum length of 1. Maximum length of 204800.
Pattern:
[\s\S]+
Required: Yes
- ConfigurationAlias
-
An alias by which to refer to this extension configuration data.
Conditional: Specifying a configuration alias is required when setting a configuration for a resource type extension.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
^[a-zA-Z0-9]{1,256}$
Required: No
- Type
-
The type of extension.
Conditional: You must specify
ConfigurationArn
, orType
andTypeName
.Type: String
Valid Values:
RESOURCE | MODULE | HOOK
Required: No
- TypeArn
-
The Amazon Resource Name (ARN) for the extension, in this account and Region.
For public extensions, this will be the ARN assigned when you call the ActivateType API operation in this account and Region. For private extensions, this will be the ARN assigned when you call the RegisterType API operation in this account and Region.
Do not include the extension versions suffix at the end of the ARN. You can set the configuration for an extension, but not for a specific extension version.
Type: String
Length Constraints: Maximum length of 1024.
Pattern:
arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+
Required: No
- TypeName
-
The name of the extension.
Conditional: You must specify
ConfigurationArn
, orType
andTypeName
.Type: String
Length Constraints: Minimum length of 10. Maximum length of 204.
Pattern:
[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}
Required: No
Response Elements
The following element is returned by the service.
- ConfigurationArn
-
The Amazon Resource Name (ARN) for the configuration data, in this account and Region.
Conditional: You must specify
ConfigurationArn
, orType
andTypeName
.Type: String
Length Constraints: Maximum length of 1024.
Pattern:
arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type-configuration/.+
Errors
For information about the errors that are common to all actions, see Common Errors.
- CFNRegistry
-
An error occurred during a CloudFormation registry operation.
HTTP Status Code: 400
- TypeNotFound
-
The specified extension doesn't exist in the CloudFormation registry.
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: