CfnConfigurationProfilePropsMixin
- class aws_cdk.mixins_preview.aws_appconfig.mixins.CfnConfigurationProfilePropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::AppConfig::ConfigurationProfileresource creates a configuration profile that enables AWS AppConfig to access the configuration source.Valid configuration sources include AWS Systems Manager (SSM) documents, SSM Parameter Store parameters, and Amazon S3 . A configuration profile includes the following information.
The Uri location of the configuration data.
The AWS Identity and Access Management ( IAM ) role that provides access to the configuration data.
A validator for the configuration data. Available validators include either a JSON Schema or the Amazon Resource Name (ARN) of an AWS Lambda function.
AWS AppConfig requires that you create resources and deploy a configuration in the following order:
Create an application
Create an environment
Create a configuration profile
Choose a pre-defined deployment strategy or create your own
Deploy the configuration
For more information, see AWS AppConfig in the AWS AppConfig User Guide .
- See:
- CloudformationResource:
AWS::AppConfig::ConfigurationProfile
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_appconfig import mixins as appconfig_mixins cfn_configuration_profile_props_mixin = appconfig_mixins.CfnConfigurationProfilePropsMixin(appconfig_mixins.CfnConfigurationProfileMixinProps( application_id="applicationId", deletion_protection_check="deletionProtectionCheck", description="description", kms_key_identifier="kmsKeyIdentifier", location_uri="locationUri", name="name", retrieval_role_arn="retrievalRoleArn", tags=[CfnTag( key="key", value="value" )], type="type", validators=[appconfig_mixins.CfnConfigurationProfilePropsMixin.ValidatorsProperty( content="content", type="type" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppConfig::ConfigurationProfile.- Parameters:
props (
Union[CfnConfigurationProfileMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationId', 'deletionProtectionCheck', 'description', 'kmsKeyIdentifier', 'locationUri', 'name', 'retrievalRoleArn', 'tags', 'type', 'validators']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ValidatorsProperty
- class CfnConfigurationProfilePropsMixin.ValidatorsProperty(*, content=None, type=None)
Bases:
objectA validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended.
To validate your application configuration data, you provide a schema or an AWS Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid. For more information, see About validators in the AWS AppConfig User Guide .
- Parameters:
content (
Optional[str]) – Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.type (
Optional[str]) – AWS AppConfig supports validators of typeJSON_SCHEMAandLAMBDA.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_appconfig import mixins as appconfig_mixins validators_property = appconfig_mixins.CfnConfigurationProfilePropsMixin.ValidatorsProperty( content="content", type="type" )
Attributes
- content
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
- type
AWS AppConfig supports validators of type
JSON_SCHEMAandLAMBDA.