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
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-08-20T12:34:38.564Z")
@Stability(Stable)
public class CfnServiceEnvironment
extends CfnResource
implements IInspectable, 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 class
A fluent builder forCfnServiceEnvironment
.static interface
Defines the capacity limit for a service environment.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnServiceEnvironment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnServiceEnvironment
(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceEnvironment
(software.constructs.Construct scope, String id, CfnServiceEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.The type of service environment.getState()
The state of the service environment.getTags()
The tags associated with the service environment.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCapacityLimits
(List<Object> value) The capacity limits for the service environment.void
setCapacityLimits
(IResolvable value) The capacity limits for the service environment.void
setServiceEnvironmentName
(String value) The name of the service environment.void
setServiceEnvironmentType
(String value) The type of service environment.void
The state of the service environment.void
The 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getCapacityLimits
The capacity limits for the service environment. -
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.
-