Interface CfnEnvironmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEnvironmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.672Z")
@Stability(Stable)
public interface CfnEnvironmentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnEnvironment.
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.*;
CfnEnvironmentProps cfnEnvironmentProps = CfnEnvironmentProps.builder()
.applicationId("applicationId")
.name("name")
// the properties below are optional
.deletionProtectionCheck("deletionProtectionCheck")
.description("description")
.monitors(List.of(MonitorsProperty.builder()
.alarmArn("alarmArn")
.alarmRoleArn("alarmRoleArn")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEnvironmentPropsstatic final classAn implementation forCfnEnvironmentProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnEnvironmentProps.Builderbuilder()The application ID.default StringA parameter to configure deletion protection.default StringA description of the environment.default ObjectAmazon CloudWatch alarms to monitor during the deployment process.getName()A name for the environment.getTags()Metadata to assign to the environment.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplicationId
The application ID.- See Also:
-
getName
A name for the environment.- See Also:
-
getDeletionProtectionCheck
A parameter to configure deletion protection.Deletion protection prevents a user from deleting an environment if your application called either GetLatestConfiguration or GetConfiguration in the environment during the specified interval.
This parameter supports the following values:
BYPASS: Instructs AWS AppConfig to bypass the deletion protection check and delete a configuration profile even if deletion protection would have otherwise prevented it.APPLY: Instructs the deletion protection check to run, even if deletion protection is disabled at the account level.APPLYalso forces the deletion protection check to run against resources created in the past hour, which are normally excluded from deletion protection checks.ACCOUNT_DEFAULT: The default setting, which instructs AWS AppConfig to implement the deletion protection value specified in theUpdateAccountSettingsAPI.
- See Also:
-
getDescription
A description of the environment.- See Also:
-
getMonitors
Amazon CloudWatch alarms to monitor during the deployment process.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEnvironment.MonitorsProperty>- See Also:
-
getTags
Metadata to assign to the environment.Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
- See Also:
-
builder
- Returns:
- a
CfnEnvironmentProps.BuilderofCfnEnvironmentProps
-