Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates an AWS 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 in which the AWS 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
- createJobQueue :: Text -> Int -> CreateJobQueue
- data CreateJobQueue
- cjqState :: Lens' CreateJobQueue (Maybe JQState)
- cjqJobQueueName :: Lens' CreateJobQueue Text
- cjqPriority :: Lens' CreateJobQueue Int
- cjqComputeEnvironmentOrder :: Lens' CreateJobQueue [ComputeEnvironmentOrder]
- createJobQueueResponse :: Int -> Text -> Text -> CreateJobQueueResponse
- data CreateJobQueueResponse
- cjqrsResponseStatus :: Lens' CreateJobQueueResponse Int
- cjqrsJobQueueName :: Lens' CreateJobQueueResponse Text
- cjqrsJobQueueARN :: Lens' CreateJobQueueResponse Text
Creating a Request
Creates a value of CreateJobQueue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjqState
- The state of the job queue. If the job queue state isENABLED
, it is able to accept jobs.cjqJobQueueName
- The name of the job queue.cjqPriority
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for thepriority
parameter) are evaluated first when associated with same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
.cjqComputeEnvironmentOrder
- 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 execute a given job. Compute environments must be in theVALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue.
data CreateJobQueue Source #
See: createJobQueue
smart constructor.
Instances
Request Lenses
cjqState :: Lens' CreateJobQueue (Maybe JQState) Source #
The state of the job queue. If the job queue state is ENABLED
, it is able to accept jobs.
cjqJobQueueName :: Lens' CreateJobQueue Text Source #
The name of the job queue.
cjqPriority :: 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 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
.
cjqComputeEnvironmentOrder :: 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 execute a given 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.
Destructuring the Response
createJobQueueResponse Source #
Creates a value of CreateJobQueueResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjqrsResponseStatus
- -- | The response status code.cjqrsJobQueueName
- The name of the job queue.cjqrsJobQueueARN
- The Amazon Resource Name (ARN) of the job queue.
data CreateJobQueueResponse Source #
See: createJobQueueResponse
smart constructor.
Instances
Response Lenses
cjqrsResponseStatus :: Lens' CreateJobQueueResponse Int Source #
- - | The response status code.
cjqrsJobQueueName :: Lens' CreateJobQueueResponse Text Source #
The name of the job queue.
cjqrsJobQueueARN :: Lens' CreateJobQueueResponse Text Source #
The Amazon Resource Name (ARN) of the job queue.