@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.296Z") 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnConfigurationProfile(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getApplicationId()
The application ID.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description of the configuration profile.
|
java.lang.String |
getLocationUri()
A URI to locate the configuration.
|
java.lang.String |
getName()
A name for the configuration profile.
|
java.lang.String |
getRetrievalRoleArn()
The ARN of an IAM role with permission to access the configuration at the specified `LocationUri` .
|
java.util.List<CfnConfigurationProfile.TagsProperty> |
getTags()
Metadata to assign to the configuration profile.
|
java.lang.String |
getType()
The type of configurations contained in the profile.
|
java.lang.Object |
getValidators()
A list of methods for validating the configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setApplicationId(java.lang.String value)
The application ID.
|
void |
setDescription(java.lang.String value)
A description of the configuration profile.
|
void |
setLocationUri(java.lang.String value)
A URI to locate the configuration.
|
void |
setName(java.lang.String value)
A name for the configuration profile.
|
void |
setRetrievalRoleArn(java.lang.String value)
The ARN of an IAM role with permission to access the configuration at the specified `LocationUri` .
|
void |
setTags(java.util.List<CfnConfigurationProfile.TagsProperty> value)
Metadata to assign to the configuration profile.
|
void |
setType(java.lang.String value)
The type of configurations contained in the profile.
|
void |
setValidators(IResolvable value)
A list of methods for validating the configuration.
|
void |
setValidators(java.util.List<java.lang.Object> value)
A list of methods for validating the configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConfigurationProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnConfigurationProfile(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getApplicationId()
public void setApplicationId(java.lang.String value)
public java.lang.String getLocationUri()
hosted
.ssm-parameter://<parameter name>
or the ARN.secretsmanager
://s3://<bucket>/<objectKey>
. Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json
ssm-document://<document name>
or the Amazon Resource Name (ARN).public void setLocationUri(java.lang.String value)
hosted
.ssm-parameter://<parameter name>
or the ARN.secretsmanager
://s3://<bucket>/<objectKey>
. Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json
ssm-document://<document name>
or the Amazon Resource Name (ARN).public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.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.
public void setRetrievalRoleArn(java.lang.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.
public java.util.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.
public void setTags(java.util.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.
public java.lang.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
public void setType(java.lang.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
public java.lang.Object getValidators()
public void setValidators(IResolvable value)
public void setValidators(java.util.List<java.lang.Object> value)