amazonka-batch-1.6.0: 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.UpdateComputeEnvironment

Contents

Description

Updates an AWS Batch compute environment.

Synopsis

Creating a Request

updateComputeEnvironment Source #

Creates a value of UpdateComputeEnvironment with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • uceState - The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
  • uceComputeResources - Details of the compute resources managed by the compute environment. Required for a managed compute environment.
  • uceServiceRole - The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.
  • uceComputeEnvironment - The name or full Amazon Resource Name (ARN) of the compute environment to update.

data UpdateComputeEnvironment Source #

See: updateComputeEnvironment smart constructor.

Instances

Eq UpdateComputeEnvironment Source # 
Data UpdateComputeEnvironment Source # 

Methods

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

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

toConstr :: UpdateComputeEnvironment -> Constr #

dataTypeOf :: UpdateComputeEnvironment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateComputeEnvironment Source # 
Show UpdateComputeEnvironment Source # 
Generic UpdateComputeEnvironment Source # 
Hashable UpdateComputeEnvironment Source # 
ToJSON UpdateComputeEnvironment Source # 
NFData UpdateComputeEnvironment Source # 
AWSRequest UpdateComputeEnvironment Source # 
ToHeaders UpdateComputeEnvironment Source # 
ToPath UpdateComputeEnvironment Source # 
ToQuery UpdateComputeEnvironment Source # 
type Rep UpdateComputeEnvironment Source # 
type Rep UpdateComputeEnvironment = D1 * (MetaData "UpdateComputeEnvironment" "Network.AWS.Batch.UpdateComputeEnvironment" "amazonka-batch-1.6.0-Fzr0qfVbg64JgYF5rBSQhW" False) (C1 * (MetaCons "UpdateComputeEnvironment'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uceState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe CEState))) (S1 * (MetaSel (Just Symbol "_uceComputeResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ComputeResourceUpdate)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uceServiceRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_uceComputeEnvironment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateComputeEnvironment Source # 

Request Lenses

uceState :: Lens' UpdateComputeEnvironment (Maybe CEState) Source #

The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.

uceComputeResources :: Lens' UpdateComputeEnvironment (Maybe ComputeResourceUpdate) Source #

Details of the compute resources managed by the compute environment. Required for a managed compute environment.

uceServiceRole :: Lens' UpdateComputeEnvironment (Maybe Text) Source #

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.

uceComputeEnvironment :: Lens' UpdateComputeEnvironment Text Source #

The name or full Amazon Resource Name (ARN) of the compute environment to update.

Destructuring the Response

updateComputeEnvironmentResponse Source #

Creates a value of UpdateComputeEnvironmentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateComputeEnvironmentResponse Source #

See: updateComputeEnvironmentResponse smart constructor.

Instances

Eq UpdateComputeEnvironmentResponse Source # 
Data UpdateComputeEnvironmentResponse Source # 

Methods

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

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

toConstr :: UpdateComputeEnvironmentResponse -> Constr #

dataTypeOf :: UpdateComputeEnvironmentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateComputeEnvironmentResponse Source # 
Show UpdateComputeEnvironmentResponse Source # 
Generic UpdateComputeEnvironmentResponse Source # 
NFData UpdateComputeEnvironmentResponse Source # 
type Rep UpdateComputeEnvironmentResponse Source # 
type Rep UpdateComputeEnvironmentResponse = D1 * (MetaData "UpdateComputeEnvironmentResponse" "Network.AWS.Batch.UpdateComputeEnvironment" "amazonka-batch-1.6.0-Fzr0qfVbg64JgYF5rBSQhW" False) (C1 * (MetaCons "UpdateComputeEnvironmentResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ucersComputeEnvironmentName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ucersComputeEnvironmentARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ucersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

ucersComputeEnvironmentARN :: Lens' UpdateComputeEnvironmentResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the compute environment.