amazonka-ecs-1.4.4: Amazon EC2 Container Service SDK.

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

Network.AWS.ECS.UpdateContainerAgent

Contents

Description

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux with the 'ecs-init' service installed and running. For help updating the Amazon ECS container agent on other operating systems, see Manually Updating the Amazon ECS Container Agent in the Amazon EC2 Container Service Developer Guide.

Synopsis

Creating a Request

updateContainerAgent Source #

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

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

data UpdateContainerAgent Source #

See: updateContainerAgent smart constructor.

Instances

Eq UpdateContainerAgent Source # 
Data UpdateContainerAgent Source # 

Methods

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

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

toConstr :: UpdateContainerAgent -> Constr #

dataTypeOf :: UpdateContainerAgent -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateContainerAgent Source # 
Show UpdateContainerAgent Source # 
Generic UpdateContainerAgent Source # 
Hashable UpdateContainerAgent Source # 
NFData UpdateContainerAgent Source # 

Methods

rnf :: UpdateContainerAgent -> () #

AWSRequest UpdateContainerAgent Source # 
ToPath UpdateContainerAgent Source # 
ToHeaders UpdateContainerAgent Source # 
ToQuery UpdateContainerAgent Source # 
ToJSON UpdateContainerAgent Source # 
type Rep UpdateContainerAgent Source # 
type Rep UpdateContainerAgent = D1 (MetaData "UpdateContainerAgent" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.4.4-AOgjorMzZtJAck2Ytj5moD" False) (C1 (MetaCons "UpdateContainerAgent'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ucaCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ucaContainerInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateContainerAgent Source # 

Request Lenses

ucaCluster :: Lens' UpdateContainerAgent (Maybe Text) Source #

The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on. If you do not specify a cluster, the default cluster is assumed.

ucaContainerInstance :: Lens' UpdateContainerAgent Text Source #

The container instance ID or full Amazon Resource Name (ARN) entries for the container instance on which you would like to update the Amazon ECS container agent.

Destructuring the Response

updateContainerAgentResponse Source #

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

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

data UpdateContainerAgentResponse Source #

See: updateContainerAgentResponse smart constructor.

Instances

Eq UpdateContainerAgentResponse Source # 
Data UpdateContainerAgentResponse Source # 

Methods

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

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

toConstr :: UpdateContainerAgentResponse -> Constr #

dataTypeOf :: UpdateContainerAgentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateContainerAgentResponse Source # 
Show UpdateContainerAgentResponse Source # 
Generic UpdateContainerAgentResponse Source # 
NFData UpdateContainerAgentResponse Source # 
type Rep UpdateContainerAgentResponse Source # 
type Rep UpdateContainerAgentResponse = D1 (MetaData "UpdateContainerAgentResponse" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.4.4-AOgjorMzZtJAck2Ytj5moD" False) (C1 (MetaCons "UpdateContainerAgentResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ucarsContainerInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContainerInstance))) (S1 (MetaSel (Just Symbol "_ucarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses