Class CfnConfigurationProfile
- All Implemented Interfaces:
IInspectable,ITaggableV2,IConfigurationProfileRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 .
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
.deletionProtectionCheck("deletionProtectionCheck")
.description("description")
.kmsKeyIdentifier("kmsKeyIdentifier")
.retrievalRoleArn("retrievalRoleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.validators(List.of(ValidatorsProperty.builder()
.content("content")
.type("type")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConfigurationProfile.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.services.appconfig.IConfigurationProfileRef
IConfigurationProfileRef.Jsii$Default, IConfigurationProfileRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef) CfnConfigurationProfile(software.constructs.Construct scope, String id, CfnConfigurationProfileProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe application ID.The configuration profile ID.The Amazon Resource Name of the AWS Key Management Service key to encrypt new configuration data versions in the AWS AppConfig hosted configuration store.Tag Manager which manages the tags for this resource.A reference to a ConfigurationProfile resource.A parameter to configure deletion protection.A description of the configuration profile.The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.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.voidsetDeletionProtectionCheck(String value) A parameter to configure deletion protection.voidsetDescription(String value) A description of the configuration profile.voidsetKmsKeyIdentifier(String value) The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnConfigurationProfileProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrConfigurationProfileId
The configuration profile ID. -
getAttrKmsKeyArn
The Amazon Resource Name of the AWS Key Management Service key to encrypt new configuration data versions in the AWS AppConfig hosted configuration store.This attribute is only used for
hostedconfiguration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an AWS KMS key for that particular service. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConfigurationProfileRef
A reference to a ConfigurationProfile resource.- Specified by:
getConfigurationProfileRefin interfaceIConfigurationProfileRef
-
getApplicationId
The application ID. -
setApplicationId
The application ID. -
getLocationUri
A URI to locate the configuration.You can specify the following:.
-
setLocationUri
A URI to locate the configuration.You can specify the following:.
-
getName
A name for the configuration profile. -
setName
A name for the configuration profile. -
getDeletionProtectionCheck
A parameter to configure deletion protection. -
setDeletionProtectionCheck
A parameter to configure deletion protection. -
getDescription
A description of the configuration profile. -
setDescription
A description of the configuration profile. -
getKmsKeyIdentifier
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated. -
setKmsKeyIdentifier
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated. -
getRetrievalRoleArn
The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri. -
setRetrievalRoleArn
The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri. -
getTags
Metadata to assign to the configuration profile. -
setTags
Metadata to assign to the configuration profile. -
getType
The type of configurations contained in the profile. -
setType
The type of configurations contained in the profile. -
getValidators
A list of methods for validating the configuration.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnConfigurationProfile.ValidatorsProperty> -
setValidators
A list of methods for validating the configuration. -
setValidators
A list of methods for validating the configuration.
-