![]() |
![]()
| ![]() |
![]()
NAMEPaws::Batch::CreateJobQueue - Arguments for method CreateJobQueue on Paws::Batch DESCRIPTIONThis 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. SYNOPSISmy $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' => 1, 'State' => 'ENABLED' ); # Results: my $jobQueueArn = $CreateJobQueueResponse->jobQueueArn; my $jobQueueName = $CreateJobQueueResponse->jobQueueName; # Returns a 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.
{ 'ComputeEnvironment' => 'C4OnDemand', 'Order' => 1 }, { 'ComputeEnvironment' => 'M4Spot', 'Order' => 2 } ], 'JobQueueName' => 'HighPriority', 'Priority' => 10, '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> ATTRIBUTESREQUIRED 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 run a specific 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. All of the compute environments must be either EC2 ("EC2" or "SPOT") or Fargate ("FARGATE" or "FARGATE_SPOT"); EC2 and Fargate compute environments can't be mixed. All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue. REQUIRED JobQueueName => StrThe name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed. REQUIRED Priority => IntThe 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. All of the compute environments must be either EC2 ("EC2" or "SPOT") or Fargate ("FARGATE" or "FARGATE_SPOT"); EC2 and Fargate compute environments cannot be mixed. State => StrThe state of the job queue. If the job queue state is "ENABLED", it is able to accept jobs. If the job queue state is "DISABLED", new jobs can't be added to the queue, but jobs already in the queue can finish. Valid values are: "ENABLED", "DISABLED" Tags => Paws::Batch::TagrisTagsMapThe tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS Batch User Guide. SEE ALSOThis class forms part of Paws, documenting arguments for method CreateJobQueue in Paws::Batch BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|