Class CfnComputeEnvironmentPropsMixin.EcsSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnComputeEnvironmentPropsMixin.EcsSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeEnvironmentPropsMixin.EcsSettingsProperty>
- Enclosing interface:
CfnComputeEnvironmentPropsMixin.EcsSettingsProperty
@Stability(Stable)
public static final class CfnComputeEnvironmentPropsMixin.EcsSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeEnvironmentPropsMixin.EcsSettingsProperty>
A builder for
CfnComputeEnvironmentPropsMixin.EcsSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerInsights(String containerInsights)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerInsights
@Stability(Stable) public CfnComputeEnvironmentPropsMixin.EcsSettingsProperty.Builder containerInsights(String containerInsights) - 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<CfnComputeEnvironmentPropsMixin.EcsSettingsProperty>- Returns:
- a new instance of
CfnComputeEnvironmentPropsMixin.EcsSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-