Class UnmanagedComputeEnvironment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.batch.UnmanagedComputeEnvironment
- All Implemented Interfaces:
IResource
,IComputeEnvironment
,IUnmanagedComputeEnvironment
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:39.472Z")
@Stability(Stable)
public class UnmanagedComputeEnvironment
extends Resource
implements IUnmanagedComputeEnvironment, IComputeEnvironment
Unmanaged ComputeEnvironments do not provision or manage EC2 instances on your behalf.
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.*; import software.amazon.awscdk.services.iam.*; Role role; UnmanagedComputeEnvironment unmanagedComputeEnvironment = UnmanagedComputeEnvironment.Builder.create(this, "MyUnmanagedComputeEnvironment") .computeEnvironmentName("computeEnvironmentName") .enabled(false) .serviceRole(role) .unmanagedvCpus(123) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forUnmanagedComputeEnvironment
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IComputeEnvironment
IComputeEnvironment.Jsii$Default, IComputeEnvironment.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IUnmanagedComputeEnvironment
IUnmanagedComputeEnvironment.Jsii$Default, IUnmanagedComputeEnvironment.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
UnmanagedComputeEnvironment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
UnmanagedComputeEnvironment
(software.amazon.jsii.JsiiObjectRef objRef) UnmanagedComputeEnvironment
(software.constructs.Construct scope, String id) UnmanagedComputeEnvironment
(software.constructs.Construct scope, String id, UnmanagedComputeEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IUnmanagedComputeEnvironment
fromUnmanagedComputeEnvironmentArn
(software.constructs.Construct scope, String id, String unmanagedComputeEnvironmentArn) Import an UnmanagedComputeEnvironment by its arn.The ARN of this compute environment.The name of the ComputeEnvironment.Whether or not this ComputeEnvironment can accept jobs from a Queue.The role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.The vCPUs this Compute Environment provides.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
UnmanagedComputeEnvironment
protected UnmanagedComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
UnmanagedComputeEnvironment
protected UnmanagedComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
UnmanagedComputeEnvironment
@Stability(Stable) public UnmanagedComputeEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable UnmanagedComputeEnvironmentProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
UnmanagedComputeEnvironment
@Stability(Stable) public UnmanagedComputeEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
fromUnmanagedComputeEnvironmentArn
@Stability(Stable) @NotNull public static IUnmanagedComputeEnvironment fromUnmanagedComputeEnvironmentArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String unmanagedComputeEnvironmentArn) Import an UnmanagedComputeEnvironment by its arn.- Parameters:
scope
- This parameter is required.id
- This parameter is required.unmanagedComputeEnvironmentArn
- This parameter is required.
-
getComputeEnvironmentArn
The ARN of this compute environment.- Specified by:
getComputeEnvironmentArn
in interfaceIComputeEnvironment
-
getComputeEnvironmentName
The name of the ComputeEnvironment.- Specified by:
getComputeEnvironmentName
in interfaceIComputeEnvironment
-
getEnabled
Whether or not this ComputeEnvironment can accept jobs from a Queue.Enabled ComputeEnvironments can accept jobs from a Queue and can scale instances up or down. Disabled ComputeEnvironments cannot accept jobs from a Queue or scale instances up or down.
If you change a ComputeEnvironment from enabled to disabled while it is executing jobs, Jobs in the
STARTED
orRUNNING
states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down tominvCpus
.To ensure you aren't billed for unused capacity, set
minvCpus
to0
.- Specified by:
getEnabled
in interfaceIComputeEnvironment
-
getServiceRole
The role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.- Specified by:
getServiceRole
in interfaceIComputeEnvironment
-
getUnmanagedvCPUs
The vCPUs this Compute Environment provides. Used only by the scheduler to schedule jobs inQueue
s that useFairshareSchedulingPolicy
s.If this parameter is not provided on a fairshare queue, no capacity is reserved; that is, the
FairshareSchedulingPolicy
is ignored.- Specified by:
getUnmanagedvCPUs
in interfaceIUnmanagedComputeEnvironment
-