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.101.0 (build b95fe5d)", date="2024-08-02T00:29:07.191Z") @Stability(Stable) public interface IComputeEnvironment extends software.amazon.jsii.JsiiSerializable, IResource
Represents a ComputeEnvironment.
  • Method Details

    • getComputeEnvironmentArn

      @Stability(Stable) @NotNull String getComputeEnvironmentArn()
      The ARN of this compute environment.
    • getComputeEnvironmentName

      @Stability(Stable) @NotNull String getComputeEnvironmentName()
      The name of the ComputeEnvironment.
    • getEnabled

      @Stability(Stable) @NotNull Boolean 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 or RUNNING states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down to minvCpus.

      To ensure you aren't billed for unused capacity, set minvCpus to 0.

    • getServiceRole

      @Stability(Stable) @Nullable default IRole 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