Struct aws_sdk_ecs::client::fluent_builders::UpdateContainerAgent
source · [−]pub struct UpdateContainerAgent<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Fluent builder constructing a request to UpdateContainerAgent.
Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent doesn't 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. This updates 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.
Implementations
impl<C, M, R> UpdateContainerAgent<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateContainerAgent<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateContainerAgentOutput, SdkError<UpdateContainerAgentError>> where
R::Policy: SmithyRetryPolicy<UpdateContainerAgentInputOperationOutputAlias, UpdateContainerAgentOutput, UpdateContainerAgentError, UpdateContainerAgentInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateContainerAgentOutput, SdkError<UpdateContainerAgentError>> where
R::Policy: SmithyRetryPolicy<UpdateContainerAgentInputOperationOutputAlias, UpdateContainerAgentOutput, UpdateContainerAgentError, UpdateContainerAgentInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
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.
The container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.
The container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateContainerAgent<C, M, R>
impl<C, M, R> Send for UpdateContainerAgent<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateContainerAgent<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateContainerAgent<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateContainerAgent<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more