amazonka-batch-1.6.1: Amazon Batch SDK.

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

Network.AWS.Batch.CreateJobQueue

Contents

Description

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

Creating a Request

createJobQueue Source #

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 is ENABLED , 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 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 - 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.

data CreateJobQueue Source #

See: createJobQueue smart constructor.

Instances
Eq CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Data CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateJobQueue -> c CreateJobQueue #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateJobQueue #

toConstr :: CreateJobQueue -> Constr #

dataTypeOf :: CreateJobQueue -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateJobQueue) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateJobQueue) #

gmapT :: (forall b. Data b => b -> b) -> CreateJobQueue -> CreateJobQueue #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateJobQueue -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateJobQueue -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateJobQueue -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateJobQueue -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateJobQueue -> m CreateJobQueue #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateJobQueue -> m CreateJobQueue #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateJobQueue -> m CreateJobQueue #

Read CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Show CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Generic CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Associated Types

type Rep CreateJobQueue :: Type -> Type #

Hashable CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

ToJSON CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

AWSRequest CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Associated Types

type Rs CreateJobQueue :: Type #

ToHeaders CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

ToPath CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

ToQuery CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

NFData CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Methods

rnf :: CreateJobQueue -> () #

type Rep CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

type Rep CreateJobQueue = D1 (MetaData "CreateJobQueue" "Network.AWS.Batch.CreateJobQueue" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "CreateJobQueue'" PrefixI True) ((S1 (MetaSel (Just "_cjqState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe JQState)) :*: S1 (MetaSel (Just "_cjqJobQueueName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cjqPriority") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_cjqComputeEnvironmentOrder") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ComputeEnvironmentOrder]))))
type Rs CreateJobQueue Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

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:

data CreateJobQueueResponse Source #

See: createJobQueueResponse smart constructor.

Instances
Eq CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Data CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateJobQueueResponse -> c CreateJobQueueResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateJobQueueResponse #

toConstr :: CreateJobQueueResponse -> Constr #

dataTypeOf :: CreateJobQueueResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateJobQueueResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateJobQueueResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateJobQueueResponse -> CreateJobQueueResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateJobQueueResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateJobQueueResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateJobQueueResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateJobQueueResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateJobQueueResponse -> m CreateJobQueueResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateJobQueueResponse -> m CreateJobQueueResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateJobQueueResponse -> m CreateJobQueueResponse #

Read CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Show CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Generic CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Associated Types

type Rep CreateJobQueueResponse :: Type -> Type #

NFData CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

Methods

rnf :: CreateJobQueueResponse -> () #

type Rep CreateJobQueueResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateJobQueue

type Rep CreateJobQueueResponse = D1 (MetaData "CreateJobQueueResponse" "Network.AWS.Batch.CreateJobQueue" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "CreateJobQueueResponse'" PrefixI True) (S1 (MetaSel (Just "_cjqrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_cjqrsJobQueueName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cjqrsJobQueueARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

Response Lenses

cjqrsJobQueueARN :: Lens' CreateJobQueueResponse Text Source #

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