CfnConfigurationProfileProps
- class aws_cdk.aws_appconfig.CfnConfigurationProfileProps(*, application_id, location_uri, name, description=None, kms_key_identifier=None, retrieval_role_arn=None, tags=None, type=None, validators=None)
Bases:
object
Properties for defining a
CfnConfigurationProfile
.- Parameters:
application_id (
str
) – The application ID.location_uri (
str
) – A URI to locate the configuration. You can specify the following:. - For the AWS AppConfig hosted configuration store and for feature flags, specifyhosted
. - For an AWS Systems Manager Parameter Store parameter, specify either the parameter name in the formatssm-parameter://<parameter name>
or the ARN. - For an AWS CodePipeline pipeline, specify the URI in the following format:codepipeline
://. - For an AWS Secrets Manager secret, specify the URI in the following format:secretsmanager
://. - For an Amazon S3 object, specify the URI in the following format:s3://<bucket>/<objectKey>
. Here is an example:s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json
- For an SSM document, specify either the document name in the formatssm-document://<document name>
or the Amazon Resource Name (ARN).name (
str
) – A name for the configuration profile.description (
Optional
[str
]) – A description of the configuration profile.kms_key_identifier (
Optional
[str
]) – The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.retrieval_role_arn (
Optional
[str
]) – The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri
. .. epigraph:: A retrieval role ARN is not required for configurations stored in the AWS AppConfig hosted configuration store. It is required for all other sources that store your configuration.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.type (
Optional
[str
]) – The type of configurations contained in the profile. AWS AppConfig supportsfeature flags
andfreeform
configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values forType
:AWS.AppConfig.FeatureFlags
AWS.Freeform
validators (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,ValidatorsProperty
,Dict
[str
,Any
]]],None
]) – A list of methods for validating the configuration.
- 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 import aws_appconfig as appconfig cfn_configuration_profile_props = appconfig.CfnConfigurationProfileProps( application_id="applicationId", location_uri="locationUri", name="name", # the properties below are optional description="description", kms_key_identifier="kmsKeyIdentifier", retrieval_role_arn="retrievalRoleArn", tags=[CfnTag( key="key", value="value" )], type="type", validators=[appconfig.CfnConfigurationProfile.ValidatorsProperty( content="content", type="type" )] )
Attributes
- application_id
The application ID.
- description
A description of the configuration profile.
- kms_key_identifier
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
- location_uri
.
For the AWS AppConfig hosted configuration store and for feature flags, specify
hosted
.For an AWS Systems Manager Parameter Store parameter, specify either the parameter name in the format
ssm-parameter://<parameter name>
or the ARN.For an AWS CodePipeline pipeline, specify the URI in the following format:
codepipeline
://.For an AWS Secrets Manager secret, specify the URI in the following format:
secretsmanager
://.For an Amazon S3 object, specify the URI in the following format:
s3://<bucket>/<objectKey>
. Here is an example:s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json
For an SSM document, specify either the document name in the format
ssm-document://<document name>
or the Amazon Resource Name (ARN).
- See:
- Type:
A URI to locate the configuration. You can specify the following
- name
A name for the configuration profile.
- retrieval_role_arn
The ARN of an IAM role with permission to access the configuration at the specified
LocationUri
.A retrieval role ARN is not required for configurations stored in the AWS AppConfig hosted configuration store. It is required for all other sources that store your configuration.
- tags
Metadata to assign to the configuration profile.
Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
- type
The type of configurations contained in the profile.
AWS AppConfig supports
feature flags
andfreeform
configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values forType
:AWS.AppConfig.FeatureFlags
AWS.Freeform
- validators
A list of methods for validating the configuration.