Class CfnConfigurationProfile
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::AppConfig::ConfigurationProfile.
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
- Create a deployment strategy
- Deploy the configuration
For more information, see AWS AppConfig in the AWS AppConfig User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appconfig.*;
CfnConfigurationProfile cfnConfigurationProfile = CfnConfigurationProfile.Builder.create(this, "MyCfnConfigurationProfile")
.applicationId("applicationId")
.locationUri("locationUri")
.name("name")
// the properties below are optional
.description("description")
.retrievalRoleArn("retrievalRoleArn")
.tags(List.of(TagsProperty.builder()
.key("key")
.value("value")
.build()))
.type("type")
.validators(List.of(ValidatorsProperty.builder()
.content("content")
.type("type")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConfigurationProfile.static interfaceMetadata to assign to the configuration profile.static interfaceA validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnConfigurationProfile(Construct scope, String id, CfnConfigurationProfileProps props) Create a newAWS::AppConfig::ConfigurationProfile.protectedCfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe application ID.A description of the configuration profile.A URI to locate the configuration.getName()A name for the configuration profile.The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri.getTags()Metadata to assign to the configuration profile.getType()The type of configurations contained in the profile.A list of methods for validating the configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationId(String value) The application ID.voidsetDescription(String value) A description of the configuration profile.voidsetLocationUri(String value) A URI to locate the configuration.voidA name for the configuration profile.voidsetRetrievalRoleArn(String value) The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri.voidMetadata to assign to the configuration profile.voidThe type of configurations contained in the profile.voidsetValidators(List<Object> value) A list of methods for validating the configuration.voidsetValidators(IResolvable value) A list of methods for validating the configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConfigurationProfile
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConfigurationProfile
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConfigurationProfile
@Stability(Stable) public CfnConfigurationProfile(@NotNull Construct scope, @NotNull String id, @NotNull CfnConfigurationProfileProps props) Create a newAWS::AppConfig::ConfigurationProfile.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getApplicationId
The application ID. -
setApplicationId
The application ID. -
getLocationUri
A URI to locate the configuration. You can specify the following:.- 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://my-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).
- For the AWS AppConfig hosted configuration store and for feature flags, specify
-
setLocationUri
A URI to locate the configuration. You can specify the following:.- 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://my-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).
- For the AWS AppConfig hosted configuration store and for feature flags, specify
-
getName
A name for the configuration profile. -
setName
A name for the configuration profile. -
getDescription
A description of the configuration profile. -
setDescription
A description of the configuration profile. -
getRetrievalRoleArn
The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri.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.
-
setRetrievalRoleArn
The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri.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.
-
getTags
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.
-
setTags
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.
-
getType
The type of configurations contained in the profile.AWS AppConfig supports
feature flagsandfreeformconfigurations. 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.FeatureFlagsAWS.Freeform -
setType
The type of configurations contained in the profile.AWS AppConfig supports
feature flagsandfreeformconfigurations. 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.FeatureFlagsAWS.Freeform -
getValidators
A list of methods for validating the configuration. -
setValidators
A list of methods for validating the configuration. -
setValidators
A list of methods for validating the configuration.
-