@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.295Z") @Stability(value=Stable) public class CfnConfigurationProfile extends CfnResource implements IInspectable
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.
AWS AppConfig requires that you create resources and deploy a configuration in the following order:
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConfigurationProfile.Builder
A fluent builder for
CfnConfigurationProfile. |
static interface |
CfnConfigurationProfile.TagsProperty
Metadata to assign to the configuration profile.
|
static interface |
CfnConfigurationProfile.ValidatorsProperty
A validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConfigurationProfile(software.constructs.Construct scope,
String id,
CfnConfigurationProfileProps props)
Create a new `AWS::AppConfig::ConfigurationProfile`.
|
protected |
CfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
The application ID.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the configuration profile.
|
String |
getLocationUri()
A URI to locate the configuration.
|
String |
getName()
A name for the configuration profile.
|
String |
getRetrievalRoleArn()
The ARN of an IAM role with permission to access the configuration at the specified `LocationUri` .
|
List<CfnConfigurationProfile.TagsProperty> |
getTags()
Metadata to assign to the configuration profile.
|
String |
getType()
The type of configurations contained in the profile.
|
Object |
getValidators()
A list of methods for validating the configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationId(String value)
The application ID.
|
void |
setDescription(String value)
A description of the configuration profile.
|
void |
setLocationUri(String value)
A URI to locate the configuration.
|
void |
setName(String value)
A name for the configuration profile.
|
void |
setRetrievalRoleArn(String value)
The ARN of an IAM role with permission to access the configuration at the specified `LocationUri` .
|
void |
setTags(List<CfnConfigurationProfile.TagsProperty> value)
Metadata to assign to the configuration profile.
|
void |
setType(String value)
The type of configurations contained in the profile.
|
void |
setValidators(IResolvable value)
A list of methods for validating the configuration.
|
void |
setValidators(List<Object> value)
A list of methods for validating the configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConfigurationProfile(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConfigurationProfileProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable)
public void setApplicationId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getLocationUri()
You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store and for feature flags, specify hosted . For an SSM document, specify either the document name in the format ssm-document://<Document_name> or the Amazon Resource Name (ARN). For a parameter, specify either the parameter name in the format ssm-parameter://<Parameter_name> or the ARN. 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
@Stability(value=Stable)
public void setLocationUri(@NotNull
String value)
You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store and for feature flags, specify hosted . For an SSM document, specify either the document name in the format ssm-document://<Document_name> or the Amazon Resource Name (ARN). For a parameter, specify either the parameter name in the format ssm-parameter://<Parameter_name> or the ARN. 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
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRetrievalRoleArn()
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.
@Stability(value=Stable)
public void setRetrievalRoleArn(@Nullable
String value)
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.
@Stability(value=Stable) @Nullable public List<CfnConfigurationProfile.TagsProperty> getTags()
Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
@Stability(value=Stable)
public void setTags(@Nullable
List<CfnConfigurationProfile.TagsProperty> value)
Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
@Stability(value=Stable) @Nullable public String getType()
AWS AppConfig supports feature flags and freeform 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 for Type :
AWS.AppConfig.FeatureFlags
AWS.Freeform
@Stability(value=Stable)
public void setType(@Nullable
String value)
AWS AppConfig supports feature flags and freeform 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 for Type :
AWS.AppConfig.FeatureFlags
AWS.Freeform
@Stability(value=Stable) @Nullable public Object getValidators()
@Stability(value=Stable)
public void setValidators(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.