amazonka-ecs-1.6.1: Amazon EC2 Container Service 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.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 Elastic 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:

  • 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 ARN entries for the container instance on which you would like to update the Amazon ECS container agent.

data UpdateContainerAgent Source #

See: updateContainerAgent smart constructor.

Instances
Eq UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Data UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.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 Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Show UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Generic UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Associated Types

type Rep UpdateContainerAgent :: Type -> Type #

Hashable UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

ToJSON UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

AWSRequest UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Associated Types

type Rs UpdateContainerAgent :: Type #

ToHeaders UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

ToPath UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

ToQuery UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

NFData UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Methods

rnf :: UpdateContainerAgent -> () #

type Rep UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

type Rep UpdateContainerAgent = D1 (MetaData "UpdateContainerAgent" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "UpdateContainerAgent'" PrefixI True) (S1 (MetaSel (Just "_ucaCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ucaContainerInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UpdateContainerAgent Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

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

Defined in Network.AWS.ECS.UpdateContainerAgent

Data UpdateContainerAgentResponse Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

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

Defined in Network.AWS.ECS.UpdateContainerAgent

Show UpdateContainerAgentResponse Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Generic UpdateContainerAgentResponse Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

Associated Types

type Rep UpdateContainerAgentResponse :: Type -> Type #

NFData UpdateContainerAgentResponse Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

type Rep UpdateContainerAgentResponse Source # 
Instance details

Defined in Network.AWS.ECS.UpdateContainerAgent

type Rep UpdateContainerAgentResponse = D1 (MetaData "UpdateContainerAgentResponse" "Network.AWS.ECS.UpdateContainerAgent" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "UpdateContainerAgentResponse'" PrefixI True) (S1 (MetaSel (Just "_ucarsContainerInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContainerInstance)) :*: S1 (MetaSel (Just "_ucarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ucarsContainerInstance :: Lens' UpdateContainerAgentResponse (Maybe ContainerInstance) Source #

The container instance for which the container agent was updated.