CloudFormation / Client / set_type_configuration
set_type_configuration¶
- CloudFormation.Client.set_type_configuration(**kwargs)¶
Specifies the configuration data for a CloudFormation extension, such as a resource or Hook, in the given account and Region.
For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
To view the current configuration data for an extension, refer to the
ConfigurationSchemaelement of DescribeType.Warning
It’s strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more information, see Specify values stored in other services using dynamic references in the CloudFormation User Guide.
For more information about setting the configuration data for resource types, see Defining the account-level configuration of an extension in the CloudFormation Command Line Interface (CLI) User Guide. For more information about setting the configuration data for Hooks, see the CloudFormation Hooks User Guide.
See also: AWS API Documentation
Request Syntax
response = client.set_type_configuration( TypeArn='string', Configuration='string', ConfigurationAlias='string', TypeName='string', Type='RESOURCE'|'MODULE'|'HOOK' )
- Parameters:
TypeArn (string) –
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.
Configuration (string) –
[REQUIRED]
The configuration data for the extension in this account and Region.
The configuration data must be formatted as JSON and validate against the extension’s schema returned in the
Schemaresponse element of DescribeType.ConfigurationAlias (string) –
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.
TypeName (string) –
The name of the extension.
Conditional: You must specify
ConfigurationArn, orTypeandTypeName.Type (string) –
The type of extension.
Conditional: You must specify
ConfigurationArn, orTypeandTypeName.
- Return type:
dict
- Returns:
Response Syntax
{ 'ConfigurationArn': 'string' }
Response Structure
(dict) –
ConfigurationArn (string) –
The Amazon Resource Name (ARN) for the configuration data in this account and Region.
Conditional: You must specify
ConfigurationArn, orTypeandTypeName.
Exceptions
CloudFormation.Client.exceptions.CFNRegistryExceptionCloudFormation.Client.exceptions.TypeNotFoundException