Class CfnServiceEnvironment.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnServiceEnvironment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceEnvironment>
- Enclosing class:
CfnServiceEnvironment
@Stability(Stable)
public static final class CfnServiceEnvironment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceEnvironment>
A fluent builder for
CfnServiceEnvironment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
capacityLimits
(List<? extends Object> capacityLimits) The capacity limits for the service environment.capacityLimits
(IResolvable capacityLimits) The capacity limits for the service environment.serviceEnvironmentName
(String serviceEnvironmentName) The name of the service environment.serviceEnvironmentType
(String serviceEnvironmentType) The type of service environment.The state of the service environment.The tags associated with the service environment.
-
Method Details
-
create
@Stability(Stable) public static CfnServiceEnvironment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnServiceEnvironment.Builder
.
-
capacityLimits
The capacity limits for the service environment.This defines the maximum resources that can be used by service jobs in this environment.
- Parameters:
capacityLimits
- The capacity limits for the service environment. This parameter is required.- Returns:
this
- See Also:
-
capacityLimits
@Stability(Stable) public CfnServiceEnvironment.Builder capacityLimits(List<? extends Object> capacityLimits) The capacity limits for the service environment.This defines the maximum resources that can be used by service jobs in this environment.
- Parameters:
capacityLimits
- The capacity limits for the service environment. This parameter is required.- Returns:
this
- See Also:
-
serviceEnvironmentType
@Stability(Stable) public CfnServiceEnvironment.Builder serviceEnvironmentType(String serviceEnvironmentType) The type of service environment.For SageMaker Training jobs, this value is
SAGEMAKER_TRAINING
.- Parameters:
serviceEnvironmentType
- The type of service environment. This parameter is required.- Returns:
this
- See Also:
-
serviceEnvironmentName
@Stability(Stable) public CfnServiceEnvironment.Builder serviceEnvironmentName(String serviceEnvironmentName) The name of the service environment.- Parameters:
serviceEnvironmentName
- The name of the service environment. This parameter is required.- Returns:
this
- See Also:
-
state
The state of the service environment.Valid values are
ENABLED
andDISABLED
.- Parameters:
state
- The state of the service environment. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags associated with the service environment.Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources .
- Parameters:
tags
- The tags associated with the service environment. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServiceEnvironment>
- Returns:
- a newly built instance of
CfnServiceEnvironment
.
-