amazonka-ecs-1.4.5: 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 #

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:

  • ucaCluster - 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 - 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.

data UpdateContainerAgent #

See: updateContainerAgent smart constructor.

Instances

Eq UpdateContainerAgent # 
Data UpdateContainerAgent # 

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 # 
Show UpdateContainerAgent # 
Generic UpdateContainerAgent # 
Hashable UpdateContainerAgent # 
ToJSON UpdateContainerAgent # 
NFData UpdateContainerAgent # 

Methods

rnf :: UpdateContainerAgent -> () #

AWSRequest UpdateContainerAgent # 
ToQuery UpdateContainerAgent # 
ToPath UpdateContainerAgent # 
ToHeaders UpdateContainerAgent # 
type Rep UpdateContainerAgent # 
type Rep UpdateContainerAgent = D1 (MetaData "UpdateContainerAgent" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.4.5-1D9d7zfufpXJ1qZUbuOrWH" 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 # 

Request Lenses

ucaCluster :: Lens' UpdateContainerAgent (Maybe Text) #

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 #

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 #

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 #

See: updateContainerAgentResponse smart constructor.

Instances

Eq UpdateContainerAgentResponse # 
Data UpdateContainerAgentResponse # 

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 # 
Show UpdateContainerAgentResponse # 
Generic UpdateContainerAgentResponse # 
NFData UpdateContainerAgentResponse # 
type Rep UpdateContainerAgentResponse # 
type Rep UpdateContainerAgentResponse = D1 (MetaData "UpdateContainerAgentResponse" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.4.5-1D9d7zfufpXJ1qZUbuOrWH" 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

ucarsContainerInstance :: Lens' UpdateContainerAgentResponse (Maybe ContainerInstance) #

The container instance for which the container agent was updated.