libZSservicesZSamazonka-batchZSamazonka-batch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Batch.CreateJobQueue

Description

Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments.

You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.

Synopsis

Creating a Request

data CreateJobQueue Source #

Contains the parameters for CreateJobQueue.

See: newCreateJobQueue smart constructor.

Constructors

CreateJobQueue' 

Fields

  • state :: Maybe JQState

    The 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.

  • tags :: Maybe (HashMap Text Text)

    The 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 Batch resources in Batch User Guide.

  • jobQueueName :: Text

    The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.

  • 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. 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.

  • computeEnvironmentOrder :: [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. Batch doesn't support mixing compute environment architecture types in a single job queue.

Instances

Instances details
Eq CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Read CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Show CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Generic CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Associated Types

type Rep CreateJobQueue :: Type -> Type #

NFData CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Methods

rnf :: CreateJobQueue -> () #

Hashable CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

ToJSON CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

AWSRequest CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Associated Types

type AWSResponse CreateJobQueue #

ToHeaders CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

ToPath CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

ToQuery CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

type Rep CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

type Rep CreateJobQueue = D1 ('MetaData "CreateJobQueue" "Amazonka.Batch.CreateJobQueue" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "CreateJobQueue'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JQState)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "jobQueueName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "computeEnvironmentOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ComputeEnvironmentOrder])))))
type AWSResponse CreateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

newCreateJobQueue Source #

Create a value of CreateJobQueue with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:state:CreateJobQueue', createJobQueue_state - The 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.

$sel:tags:CreateJobQueue', createJobQueue_tags - The 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 Batch resources in Batch User Guide.

$sel:jobQueueName:CreateJobQueue', createJobQueue_jobQueueName - The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.

$sel:priority:CreateJobQueue', createJobQueue_priority - 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. 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.

$sel:computeEnvironmentOrder:CreateJobQueue', createJobQueue_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. Batch doesn't support mixing compute environment architecture types in a single job queue.

Request Lenses

createJobQueue_state :: Lens' CreateJobQueue (Maybe JQState) Source #

The 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.

createJobQueue_tags :: Lens' CreateJobQueue (Maybe (HashMap Text Text)) Source #

The 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 Batch resources in Batch User Guide.

createJobQueue_jobQueueName :: Lens' CreateJobQueue Text Source #

The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.

createJobQueue_priority :: Lens' CreateJobQueue Int Source #

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. 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.

createJobQueue_computeEnvironmentOrder :: Lens' CreateJobQueue [ComputeEnvironmentOrder] Source #

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. Batch doesn't support mixing compute environment architecture types in a single job queue.

Destructuring the Response

data CreateJobQueueResponse Source #

See: newCreateJobQueueResponse smart constructor.

Constructors

CreateJobQueueResponse' 

Fields

Instances

Instances details
Eq CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Read CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Show CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Generic CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Associated Types

type Rep CreateJobQueueResponse :: Type -> Type #

NFData CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

Methods

rnf :: CreateJobQueueResponse -> () #

type Rep CreateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateJobQueue

type Rep CreateJobQueueResponse = D1 ('MetaData "CreateJobQueueResponse" "Amazonka.Batch.CreateJobQueue" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "CreateJobQueueResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "jobQueueName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "jobQueueArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateJobQueueResponse Source #

Create a value of CreateJobQueueResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateJobQueueResponse', createJobQueueResponse_httpStatus - The response's http status code.

$sel:jobQueueName:CreateJobQueue', createJobQueueResponse_jobQueueName - The name of the job queue.

$sel:jobQueueArn:CreateJobQueueResponse', createJobQueueResponse_jobQueueArn - The Amazon Resource Name (ARN) of the job queue.

Response Lenses

createJobQueueResponse_jobQueueArn :: Lens' CreateJobQueueResponse Text Source #

The Amazon Resource Name (ARN) of the job queue.