The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::Batch::CreateJobQueue - Arguments for method CreateJobQueue on Paws::Batch

DESCRIPTION

This class represents the parameters used for calling the method CreateJobQueue on the AWS Batch service. Use the attributes of this class as arguments to method CreateJobQueue.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateJobQueue.

SYNOPSIS

    my $batch = Paws->service('Batch');
    # To create a job queue with a single compute environment
    # This example creates a job queue called LowPriority that uses the M4Spot
    # compute environment.
    my $CreateJobQueueResponse = $batch->CreateJobQueue(
      {
        'ComputeEnvironmentOrder' => [

          {
            'ComputeEnvironment' => 'M4Spot',
            'Order'              => 1
          }
        ],
        'JobQueueName' => 'LowPriority',
        'Priority'     => 10,
        'State'        => 'ENABLED'
      }
    );

    # Results:
    my $jobQueueArn  = $CreateJobQueueResponse->jobQueueArn;
    my $jobQueueName = $CreateJobQueueResponse->jobQueueName;

    # Returns a L<Paws::Batch::CreateJobQueueResponse> object.
    # To create a job queue with multiple compute environments
    # This example creates a job queue called HighPriority that uses the
    # C4OnDemand compute environment with an order of 1 and the M4Spot compute
    # environment with an order of 2.
    my $CreateJobQueueResponse = $batch->CreateJobQueue(
      {
        'ComputeEnvironmentOrder' => [

          {
            'ComputeEnvironment' => 'C4OnDemand',
            'Order'              => 1
          },

          {
            'ComputeEnvironment' => 'M4Spot',
            'Order'              => 2
          }
        ],
        'JobQueueName' => 'HighPriority',
        'Priority'     => 1,
        'State'        => 'ENABLED'
      }
    );

    # Results:
    my $jobQueueArn  = $CreateJobQueueResponse->jobQueueArn;
    my $jobQueueName = $CreateJobQueueResponse->jobQueueName;

    # Returns a L<Paws::Batch::CreateJobQueueResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/batch/CreateJobQueue

ATTRIBUTES

REQUIRED ComputeEnvironmentOrder => ArrayRef[Paws::Batch::ComputeEnvironmentOrder]

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment should execute a given job. Compute environments must be in the VALID state before you can associate them with a job queue. You can associate up to three compute environments with a job queue.

REQUIRED JobQueueName => Str

The name of the job queue.

REQUIRED Priority => Int

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.

State => Str

The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs.

Valid values are: "ENABLED", "DISABLED"

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateJobQueue in Paws::Batch

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues