Class Environment.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.Environment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Environment>
- Enclosing class:
Environment
@Stability(Stable)
public static final class Environment.Builder
extends Object
implements software.amazon.jsii.Builder<Environment>
A fluent builder for
Environment
.-
Method Summary
Modifier and TypeMethodDescriptionapplication
(IApplication application) The application to be associated with the environment.build()
static Environment.Builder
deletionProtectionCheck
(DeletionProtectionCheck deletionProtectionCheck) A property to prevent accidental deletion of active environments.description
(String description) The description of the environment.environmentName
(String environmentName) The name of the environment.The monitors for the environment.
-
Method Details
-
create
@Stability(Stable) public static Environment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Environment.Builder
.
-
deletionProtectionCheck
@Stability(Stable) public Environment.Builder deletionProtectionCheck(DeletionProtectionCheck deletionProtectionCheck) A property to prevent accidental deletion of active environments.Default: undefined - AppConfig default is ACCOUNT_DEFAULT
- Parameters:
deletionProtectionCheck
- A property to prevent accidental deletion of active environments. This parameter is required.- Returns:
this
-
description
The description of the environment.Default: - No description.
- Parameters:
description
- The description of the environment. This parameter is required.- Returns:
this
-
environmentName
The name of the environment.Default: - A name is generated.
- Parameters:
environmentName
- The name of the environment. This parameter is required.- Returns:
this
-
monitors
The monitors for the environment.Default: - No monitors.
- Parameters:
monitors
- The monitors for the environment. This parameter is required.- Returns:
this
-
application
The application to be associated with the environment.- Parameters:
application
- The application to be associated with the environment. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Environment>
- Returns:
- a newly built instance of
Environment
.
-