Interface IComputeEnvironment
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IComputeEnvironment.Jsii$Default,IFargateComputeEnvironment,IFargateComputeEnvironment.Jsii$Default,IManagedComputeEnvironment,IManagedComputeEnvironment.Jsii$Default,IManagedEc2EcsComputeEnvironment,IManagedEc2EcsComputeEnvironment.Jsii$Default,IUnmanagedComputeEnvironment,IUnmanagedComputeEnvironment.Jsii$Default
- All Known Implementing Classes:
FargateComputeEnvironment,IComputeEnvironment.Jsii$Proxy,IFargateComputeEnvironment.Jsii$Proxy,IManagedComputeEnvironment.Jsii$Proxy,IManagedEc2EcsComputeEnvironment.Jsii$Proxy,IUnmanagedComputeEnvironment.Jsii$Proxy,ManagedEc2EcsComputeEnvironment,ManagedEc2EksComputeEnvironment,UnmanagedComputeEnvironment
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:33.375Z")
@Stability(Stable)
public interface IComputeEnvironment
extends software.amazon.jsii.JsiiSerializable, IResource
Represents a ComputeEnvironment.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIComputeEnvironment.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of this compute environment.The name of the ComputeEnvironment.Whether or not this ComputeEnvironment can accept jobs from a Queue.default IRoleThe role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComputeEnvironmentArn
The ARN of this compute environment. -
getComputeEnvironmentName
The name of the ComputeEnvironment. -
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. -
getServiceRole
The role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.Default: - a serviceRole will be created for managed CEs, none for unmanaged CEs
-