Class JobQueue

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.batch.JobQueue
All Implemented Interfaces:
IConstruct, IDependable, IResource, IJobQueue, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.665Z") @Stability(Experimental) public class JobQueue extends Resource implements IJobQueue
(experimental) Batch Job Queue.

Defines a batch job queue to define how submitted batch jobs should be ran based on specified batch compute environments.

Example:

 ComputeEnvironment sharedComputeEnvs;
 JobQueue highPrioQueue = JobQueue.Builder.create(this, "JobQueue")
         .computeEnvironments(List.of(JobQueueComputeEnvironment.builder()
                 .computeEnvironment(sharedComputeEnvs)
                 .order(1)
                 .build()))
         .priority(2)
         .build();
 JobQueue lowPrioQueue = JobQueue.Builder.create(this, "JobQueue")
         .computeEnvironments(List.of(JobQueueComputeEnvironment.builder()
                 .computeEnvironment(sharedComputeEnvs)
                 .order(1)
                 .build()))
         .priority(1)
         .build();
 
  • Constructor Details

    • JobQueue

      protected JobQueue(software.amazon.jsii.JsiiObjectRef objRef)
    • JobQueue

      protected JobQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • JobQueue

      @Stability(Experimental) public JobQueue(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull JobQueueProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromJobQueueArn

      @Stability(Experimental) @NotNull public static IJobQueue fromJobQueueArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String jobQueueArn)
      (experimental) Fetches an existing batch job queue by its amazon resource name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      jobQueueArn - This parameter is required.
    • getJobQueueArn

      @Stability(Experimental) @NotNull public String getJobQueueArn()
      (experimental) The ARN of this batch job queue.
      Specified by:
      getJobQueueArn in interface IJobQueue
    • getJobQueueName

      @Stability(Experimental) @NotNull public String getJobQueueName()
      (experimental) A name for the job queue.

      Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

      Specified by:
      getJobQueueName in interface IJobQueue