Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a job queue.
Synopsis
- data UpdateJobQueue = UpdateJobQueue' {}
- newUpdateJobQueue :: Text -> UpdateJobQueue
- updateJobQueue_state :: Lens' UpdateJobQueue (Maybe JQState)
- updateJobQueue_priority :: Lens' UpdateJobQueue (Maybe Int)
- updateJobQueue_computeEnvironmentOrder :: Lens' UpdateJobQueue (Maybe [ComputeEnvironmentOrder])
- 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.
UpdateJobQueue' | |
|
Instances
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.
UpdateJobQueueResponse' | |
|
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:
$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.
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.