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.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 # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Data UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

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 # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Show UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Generic UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Associated Types

type Rep UpdateComputeEnvironment :: Type -> Type #

Hashable UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

ToJSON UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

AWSRequest UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Associated Types

type Rs UpdateComputeEnvironment :: Type #

ToHeaders UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

ToPath UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

ToQuery UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

NFData UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

type Rep UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

type Rep UpdateComputeEnvironment = D1 (MetaData "UpdateComputeEnvironment" "Network.AWS.Batch.UpdateComputeEnvironment" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "UpdateComputeEnvironment'" PrefixI True) ((S1 (MetaSel (Just "_uceState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CEState)) :*: S1 (MetaSel (Just "_uceComputeResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ComputeResourceUpdate))) :*: (S1 (MetaSel (Just "_uceServiceRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uceComputeEnvironment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

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 # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Data UpdateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

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 # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Show UpdateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Generic UpdateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

Associated Types

type Rep UpdateComputeEnvironmentResponse :: Type -> Type #

NFData UpdateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

type Rep UpdateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.UpdateComputeEnvironment

type Rep UpdateComputeEnvironmentResponse = D1 (MetaData "UpdateComputeEnvironmentResponse" "Network.AWS.Batch.UpdateComputeEnvironment" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "UpdateComputeEnvironmentResponse'" PrefixI True) (S1 (MetaSel (Just "_ucersComputeEnvironmentName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ucersComputeEnvironmentARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ucersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

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

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