Class CfnServiceEnvironment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.batch.CfnServiceEnvironment
- All Implemented Interfaces:
IInspectable,IServiceEnvironmentRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:15.180Z")
@Stability(Stable)
public class CfnServiceEnvironment
extends CfnResource
implements IInspectable, IServiceEnvironmentRef, ITaggableV2
Creates a service environment for running service jobs.
Service environments define capacity limits for specific service types such as SageMaker Training jobs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
CfnServiceEnvironment cfnServiceEnvironment = CfnServiceEnvironment.Builder.create(this, "MyCfnServiceEnvironment")
.capacityLimits(List.of(CapacityLimitProperty.builder()
.capacityUnit("capacityUnit")
.maxCapacity(123)
.build()))
.serviceEnvironmentType("serviceEnvironmentType")
// the properties below are optional
.serviceEnvironmentName("serviceEnvironmentName")
.state("state")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServiceEnvironment.static interfaceDefines the capacity limit for a service environment.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.batch.IServiceEnvironmentRef
IServiceEnvironmentRef.Jsii$Default, IServiceEnvironmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnServiceEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceEnvironment(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceEnvironment(software.constructs.Construct scope, String id, CfnServiceEnvironmentProps props) Create a newAWS::Batch::ServiceEnvironment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the service environment.The capacity limits for the service environment.Tag Manager which manages the tags for this resource.The name of the service environment.A reference to a ServiceEnvironment resource.The type of service environment.getState()The state of the service environment.getTags()The tags associated with the service environment.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnServiceEnvironment.renderProperties(Map<String, Object> props) voidsetCapacityLimits(List<Object> value) The capacity limits for the service environment.voidsetCapacityLimits(IResolvable value) The capacity limits for the service environment.voidsetServiceEnvironmentName(String value) The name of the service environment.voidsetServiceEnvironmentType(String value) The type of service environment.voidThe state of the service environment.voidThe tags associated with the service environment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnServiceEnvironment
protected CfnServiceEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceEnvironment
protected CfnServiceEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceEnvironment
@Stability(Stable) public CfnServiceEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnServiceEnvironmentProps props) Create a newAWS::Batch::ServiceEnvironment.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForServiceEnvironment
@Stability(Stable) @NotNull public static String arnForServiceEnvironment(@NotNull IServiceEnvironmentRef resource) - Parameters:
resource- This parameter is required.
-
isCfnServiceEnvironment
Checks whether the given object is a CfnServiceEnvironment.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrServiceEnvironmentArn
The Amazon Resource Name (ARN) of the service environment. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServiceEnvironmentRef
A reference to a ServiceEnvironment resource.- Specified by:
getServiceEnvironmentRefin interfaceIServiceEnvironmentRef
-
getCapacityLimits
The capacity limits for the service environment.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnServiceEnvironment.CapacityLimitProperty> -
setCapacityLimits
The capacity limits for the service environment. -
setCapacityLimits
The capacity limits for the service environment. -
getServiceEnvironmentType
The type of service environment. -
setServiceEnvironmentType
The type of service environment. -
getServiceEnvironmentName
The name of the service environment. -
setServiceEnvironmentName
The name of the service environment. -
getState
The state of the service environment. -
setState
The state of the service environment. -
getTags
The tags associated with the service environment. -
setTags
The tags associated with the service environment.
-