| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Batch.UpdateJobQueue
Description
Updates a job queue.
Synopsis
- data UpdateJobQueue = UpdateJobQueue' {}
- newUpdateJobQueue :: Text -> UpdateJobQueue
- updateJobQueue_computeEnvironmentOrder :: Lens' UpdateJobQueue (Maybe [ComputeEnvironmentOrder])
- updateJobQueue_priority :: Lens' UpdateJobQueue (Maybe Int)
- updateJobQueue_schedulingPolicyArn :: Lens' UpdateJobQueue (Maybe Text)
- updateJobQueue_state :: Lens' UpdateJobQueue (Maybe JQState)
- updateJobQueue_jobQueue :: Lens' UpdateJobQueue Text
- data UpdateJobQueueResponse = UpdateJobQueueResponse' {
- jobQueueArn :: Maybe Text
- jobQueueName :: Maybe Text
- httpStatus :: Int
- newUpdateJobQueueResponse :: Int -> UpdateJobQueueResponse
- updateJobQueueResponse_jobQueueArn :: Lens' UpdateJobQueueResponse (Maybe Text)
- updateJobQueueResponse_jobQueueName :: Lens' UpdateJobQueueResponse (Maybe Text)
- updateJobQueueResponse_httpStatus :: Lens' UpdateJobQueueResponse Int
Creating a Request
data UpdateJobQueue Source #
Contains the parameters for UpdateJobQueue.
See: newUpdateJobQueue smart constructor.
Constructors
| UpdateJobQueue' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateJobQueue |
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:
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 runs 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, 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.
UpdateJobQueue, updateJobQueue_schedulingPolicyArn - Amazon Resource Name (ARN) of the fair share scheduling policy. Once a
job queue is created, the fair share scheduling policy can be replaced
but not removed. The format is
aws:Partition:batch:Region:Account:scheduling-policy/Name .
For example,
aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.
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.
UpdateJobQueue, updateJobQueue_jobQueue - The name or the Amazon Resource Name (ARN) of the job queue.
Request Lenses
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 runs 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_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_schedulingPolicyArn :: Lens' UpdateJobQueue (Maybe Text) Source #
Amazon Resource Name (ARN) of the fair share scheduling policy. Once a
job queue is created, the fair share scheduling policy can be replaced
but not removed. The format is
aws:Partition:batch:Region:Account:scheduling-policy/Name .
For example,
aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.
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_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
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:
UpdateJobQueueResponse, updateJobQueueResponse_jobQueueArn - The Amazon Resource Name (ARN) of the job queue.
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.
updateJobQueueResponse_jobQueueName :: Lens' UpdateJobQueueResponse (Maybe Text) Source #
The name of the job queue.
updateJobQueueResponse_httpStatus :: Lens' UpdateJobQueueResponse Int Source #
The response's http status code.