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

Description

Updates a job queue.

Synopsis

Creating a Request

data UpdateJobQueue Source #

Contains the parameters for UpdateJobQueue.

See: newUpdateJobQueue smart constructor.

Constructors

UpdateJobQueue' 

Fields

  • state :: Maybe JQState

    Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can 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.

  • priority :: Maybe 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 :: Maybe [ComputeEnvironmentOrder]

    Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should run a given job. Compute environments must be in the VALID state before you can associate them 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.

  • jobQueue :: Text

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

Instances

Instances details
Eq UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Read UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Show UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Generic UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Associated Types

type Rep UpdateJobQueue :: Type -> Type #

NFData UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Methods

rnf :: UpdateJobQueue -> () #

Hashable UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

ToJSON UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

AWSRequest UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Associated Types

type AWSResponse UpdateJobQueue #

ToHeaders UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

ToPath UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

ToQuery UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

type Rep UpdateJobQueue Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

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

Defined in Amazonka.Batch.UpdateJobQueue

newUpdateJobQueue Source #

Create a value of UpdateJobQueue 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:UpdateJobQueue', updateJobQueue_state - Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can 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:priority:UpdateJobQueue', updateJobQueue_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:UpdateJobQueue', updateJobQueue_computeEnvironmentOrder - Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should run a given job. Compute environments must be in the VALID state before you can associate them 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.

$sel:jobQueue:UpdateJobQueue', updateJobQueue_jobQueue - The name or the Amazon Resource Name (ARN) of the job queue.

Request Lenses

updateJobQueue_state :: Lens' UpdateJobQueue (Maybe JQState) Source #

Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can 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.

updateJobQueue_priority :: Lens' UpdateJobQueue (Maybe 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.

updateJobQueue_computeEnvironmentOrder :: Lens' UpdateJobQueue (Maybe [ComputeEnvironmentOrder]) Source #

Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should run a given job. Compute environments must be in the VALID state before you can associate them 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.

updateJobQueue_jobQueue :: Lens' UpdateJobQueue Text Source #

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

Destructuring the Response

data UpdateJobQueueResponse Source #

See: newUpdateJobQueueResponse smart constructor.

Constructors

UpdateJobQueueResponse' 

Fields

Instances

Instances details
Eq UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Read UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Show UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Generic UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Associated Types

type Rep UpdateJobQueueResponse :: Type -> Type #

NFData UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

Methods

rnf :: UpdateJobQueueResponse -> () #

type Rep UpdateJobQueueResponse Source # 
Instance details

Defined in Amazonka.Batch.UpdateJobQueue

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

newUpdateJobQueueResponse Source #

Create a value of UpdateJobQueueResponse 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:jobQueueArn:UpdateJobQueueResponse', updateJobQueueResponse_jobQueueArn - The Amazon Resource Name (ARN) of the job queue.

$sel:jobQueueName:UpdateJobQueueResponse', updateJobQueueResponse_jobQueueName - The name of the job queue.

$sel:httpStatus:UpdateJobQueueResponse', updateJobQueueResponse_httpStatus - The response's http status code.

Response Lenses

updateJobQueueResponse_jobQueueArn :: Lens' UpdateJobQueueResponse (Maybe Text) Source #

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