Class CfnComputeEnvironment.EcsSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnComputeEnvironment.EcsSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeEnvironment.EcsSettingsProperty>
- Enclosing interface:
CfnComputeEnvironment.EcsSettingsProperty
@Stability(Stable)
public static final class CfnComputeEnvironment.EcsSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeEnvironment.EcsSettingsProperty>
A builder for
CfnComputeEnvironment.EcsSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerInsights(String containerInsights) Sets the value ofCfnComputeEnvironment.EcsSettingsProperty.getContainerInsights()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerInsights
@Stability(Stable) public CfnComputeEnvironment.EcsSettingsProperty.Builder containerInsights(String containerInsights) Sets the value ofCfnComputeEnvironment.EcsSettingsProperty.getContainerInsights()- Parameters:
containerInsights- The CloudWatch Container Insights setting applied to the Amazon ECS cluster that backs this compute environment. After you set this property, you can't revert it to the default (unset) state in which the setting is managed outside of AWS Batch. If you remove this property after previously setting it, AWS Batch treats the omission as DISABLED, because the underlying API has no way to unset the value. Because of this, if a stack rollback would return this property to its previous unset state, AWS Batch sets it to DISABLED instead.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeEnvironment.EcsSettingsProperty>- Returns:
- a new instance of
CfnComputeEnvironment.EcsSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-