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:
IEnvironmentAware,IResource,IComputeEnvironment,IUnmanagedComputeEnvironment,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.728Z")
@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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forUnmanagedComputeEnvironment.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IComputeEnvironment
IComputeEnvironment.Jsii$Default, IComputeEnvironment.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IUnmanagedComputeEnvironment
IUnmanagedComputeEnvironment.Jsii$Default, IUnmanagedComputeEnvironment.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmanagedComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedUnmanagedComputeEnvironment(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 IUnmanagedComputeEnvironmentfromUnmanagedComputeEnvironmentArn(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, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
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:
getComputeEnvironmentArnin interfaceIComputeEnvironment
-
getComputeEnvironmentName
The name of the ComputeEnvironment.- Specified by:
getComputeEnvironmentNamein 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
STARTEDorRUNNINGstates will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down tominvCpus.To ensure you aren't billed for unused capacity, set
minvCpusto0.- Specified by:
getEnabledin 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:
getServiceRolein interfaceIComputeEnvironment
-
getUnmanagedvCPUs
The vCPUs this Compute Environment provides. Used only by the scheduler to schedule jobs inQueues that useFairshareSchedulingPolicys.If this parameter is not provided on a fairshare queue, no capacity is reserved; that is, the
FairshareSchedulingPolicyis ignored.- Specified by:
getUnmanagedvCPUsin interfaceIUnmanagedComputeEnvironment
-