@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.305Z") @Stability(value=Stable) public class CfnEnvironment extends CfnResource implements IInspectable
The AWS::AppConfig::Environment resource creates an environment, which is a logical deployment group of AWS AppConfig targets, such as applications in a Beta or Production environment. You define one or more environments for each AWS AppConfig application. You can also define environments for application subcomponents such as the Web , Mobile and Back-end components for your application. You can configure Amazon CloudWatch alarms for each environment. The system monitors alarms during a configuration deployment. If an alarm is triggered, the system rolls back the configuration.
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.*;
CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment")
.applicationId("applicationId")
.name("name")
// the properties below are optional
.description("description")
.monitors(List.of(MonitorsProperty.builder()
.alarmArn("alarmArn")
.alarmRoleArn("alarmRoleArn")
.build()))
.tags(List.of(TagsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEnvironment.Builder
A fluent builder for
CfnEnvironment. |
static interface |
CfnEnvironment.MonitorsProperty
Amazon CloudWatch alarms to monitor during the deployment process.
|
static interface |
CfnEnvironment.TagsProperty
Metadata to assign to the environment.
|
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 |
|---|---|
|
CfnEnvironment(software.constructs.Construct scope,
String id,
CfnEnvironmentProps props)
Create a new `AWS::AppConfig::Environment`.
|
protected |
CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEnvironment(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 environment.
|
Object |
getMonitors()
Amazon CloudWatch alarms to monitor during the deployment process.
|
String |
getName()
A name for the environment.
|
List<CfnEnvironment.TagsProperty> |
getTags()
Metadata to assign to the environment.
|
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 environment.
|
void |
setMonitors(IResolvable value)
Amazon CloudWatch alarms to monitor during the deployment process.
|
void |
setMonitors(List<Object> value)
Amazon CloudWatch alarms to monitor during the deployment process.
|
void |
setName(String value)
A name for the environment.
|
void |
setTags(List<CfnEnvironment.TagsProperty> value)
Metadata to assign to the environment.
|
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 CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEnvironment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEnvironmentProps 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 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 Object getMonitors()
@Stability(value=Stable)
public void setMonitors(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setMonitors(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public List<CfnEnvironment.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<CfnEnvironment.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.
Copyright © 2022. All rights reserved.