CfnConfigurationProfilePropsMixin

class aws_cdk.mixins_preview.aws_appconfig.mixins.CfnConfigurationProfilePropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::AppConfig::ConfigurationProfile resource 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-configurationprofile.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

ValidatorsProperty

class CfnConfigurationProfilePropsMixin.ValidatorsProperty(*, content=None, type=None)

Bases: object

A 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 type JSON_SCHEMA and LAMBDA.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html#cfn-appconfig-configurationprofile-validators-content

type

AWS AppConfig supports validators of type JSON_SCHEMA and LAMBDA.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html#cfn-appconfig-configurationprofile-validators-type