Class CfnEnvironmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appconfig.CfnEnvironmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentMixinProps>
- Enclosing interface:
CfnEnvironmentMixinProps
@Stability(Stable)
public static final class CfnEnvironmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironmentMixinProps>
A builder for
CfnEnvironmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Sets the value ofCfnEnvironmentMixinProps.getApplicationId()applicationId(IApplicationRef applicationId) Sets the value ofCfnEnvironmentMixinProps.getApplicationId()build()Builds the configured instance.deletionProtectionCheck(String deletionProtectionCheck) Sets the value ofCfnEnvironmentMixinProps.getDeletionProtectionCheck()description(String description) Sets the value ofCfnEnvironmentMixinProps.getDescription()Sets the value ofCfnEnvironmentMixinProps.getMonitors()monitors(IResolvable monitors) Sets the value ofCfnEnvironmentMixinProps.getMonitors()Sets the value ofCfnEnvironmentMixinProps.getName()Sets the value ofCfnEnvironmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnEnvironmentMixinProps.getApplicationId()- Parameters:
applicationId- The application ID.- Returns:
this
-
applicationId
@Stability(Stable) public CfnEnvironmentMixinProps.Builder applicationId(IApplicationRef applicationId) Sets the value ofCfnEnvironmentMixinProps.getApplicationId()- Parameters:
applicationId- The application ID.- Returns:
this
-
deletionProtectionCheck
@Stability(Stable) public CfnEnvironmentMixinProps.Builder deletionProtectionCheck(String deletionProtectionCheck) Sets the value ofCfnEnvironmentMixinProps.getDeletionProtectionCheck()- Parameters:
deletionProtectionCheck- 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.
- Returns:
this
-
description
Sets the value ofCfnEnvironmentMixinProps.getDescription()- Parameters:
description- A description of the environment.- Returns:
this
-
monitors
Sets the value ofCfnEnvironmentMixinProps.getMonitors()- Parameters:
monitors- Amazon CloudWatch alarms to monitor during the deployment process.- Returns:
this
-
monitors
@Stability(Stable) public CfnEnvironmentMixinProps.Builder monitors(List<? extends Object> monitors) Sets the value ofCfnEnvironmentMixinProps.getMonitors()- Parameters:
monitors- Amazon CloudWatch alarms to monitor during the deployment process.- Returns:
this
-
name
Sets the value ofCfnEnvironmentMixinProps.getName()- Parameters:
name- A name for the environment.- Returns:
this
-
tags
Sets the value ofCfnEnvironmentMixinProps.getTags()- Parameters:
tags- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironmentMixinProps>- Returns:
- a new instance of
CfnEnvironmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-