Class UnmanagedComputeEnvironmentProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.batch.UnmanagedComputeEnvironmentProps.Jsii$Proxy
All Implemented Interfaces:
ComputeEnvironmentProps, UnmanagedComputeEnvironmentProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
UnmanagedComputeEnvironmentProps

@Stability(Stable) @Internal public static final class UnmanagedComputeEnvironmentProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements UnmanagedComputeEnvironmentProps
An implementation for UnmanagedComputeEnvironmentProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(UnmanagedComputeEnvironmentProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the UnmanagedComputeEnvironmentProps.Builder.
  • Method Details

    • getUnmanagedvCpus

      public final Number getUnmanagedvCpus()
      Description copied from interface: UnmanagedComputeEnvironmentProps
      The vCPUs this Compute Environment provides. Used only by the scheduler to schedule jobs in Queues that use FairshareSchedulingPolicys.

      If this parameter is not provided on a fairshare queue, no capacity is reserved; that is, the FairshareSchedulingPolicy is ignored.

      Default: 0

      Specified by:
      getUnmanagedvCpus in interface UnmanagedComputeEnvironmentProps
    • getComputeEnvironmentName

      public final String getComputeEnvironmentName()
      Description copied from interface: ComputeEnvironmentProps
      The name of the ComputeEnvironment.

      Default: - generated by CloudFormation

      Specified by:
      getComputeEnvironmentName in interface ComputeEnvironmentProps
    • getEnabled

      public final Boolean getEnabled()
      Description copied from interface: ComputeEnvironmentProps
      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.

      Default: true

      Specified by:
      getEnabled in interface ComputeEnvironmentProps
    • getServiceRole

      public final IRole getServiceRole()
      Description copied from interface: ComputeEnvironmentProps
      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

      Specified by:
      getServiceRole in interface ComputeEnvironmentProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object