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

Amazonka.ECS.UpdateContainerAgent

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.

The UpdateContainerAgent API isn't supported for container instances using the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent, you can update the ecs-init package which will update the agent. For more information, see Updating the Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

The UpdateContainerAgent API requires an Amazon ECS-optimized AMI or Amazon Linux AMI 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

data UpdateContainerAgent Source #

See: newUpdateContainerAgent smart constructor.

Constructors

UpdateContainerAgent' 

Fields

  • cluster :: 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.

  • containerInstance :: Text

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

Instances

Instances details
Eq UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Read UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Show UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Generic UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Associated Types

type Rep UpdateContainerAgent :: Type -> Type #

NFData UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Methods

rnf :: UpdateContainerAgent -> () #

Hashable UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

ToJSON UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

AWSRequest UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Associated Types

type AWSResponse UpdateContainerAgent #

ToHeaders UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

ToPath UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

ToQuery UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

type Rep UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

type Rep UpdateContainerAgent = D1 ('MetaData "UpdateContainerAgent" "Amazonka.ECS.UpdateContainerAgent" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "UpdateContainerAgent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "containerInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateContainerAgent Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

newUpdateContainerAgent Source #

Create a value of UpdateContainerAgent with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cluster:UpdateContainerAgent', updateContainerAgent_cluster - 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.

$sel:containerInstance:UpdateContainerAgent', updateContainerAgent_containerInstance - The container instance ID or full ARN entries for the container instance on which you would like to update the Amazon ECS container agent.

Request Lenses

updateContainerAgent_cluster :: 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.

updateContainerAgent_containerInstance :: 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

data UpdateContainerAgentResponse Source #

See: newUpdateContainerAgentResponse smart constructor.

Constructors

UpdateContainerAgentResponse' 

Fields

Instances

Instances details
Eq UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Read UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Show UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Generic UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

Associated Types

type Rep UpdateContainerAgentResponse :: Type -> Type #

NFData UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

type Rep UpdateContainerAgentResponse Source # 
Instance details

Defined in Amazonka.ECS.UpdateContainerAgent

type Rep UpdateContainerAgentResponse = D1 ('MetaData "UpdateContainerAgentResponse" "Amazonka.ECS.UpdateContainerAgent" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "UpdateContainerAgentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerInstance)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateContainerAgentResponse Source #

Create a value of UpdateContainerAgentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:containerInstance:UpdateContainerAgent', updateContainerAgentResponse_containerInstance - The container instance for which the container agent was updated.

$sel:httpStatus:UpdateContainerAgentResponse', updateContainerAgentResponse_httpStatus - The response's http status code.

Response Lenses

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

The container instance for which the container agent was updated.