Struct aws_sdk_ecs::operation::update_container_agent::builders::UpdateContainerAgentFluentBuilder
source · pub struct UpdateContainerAgentFluentBuilder { /* 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.
Agent updates with the UpdateContainerAgent
API operation do not apply to Windows container instances. We recommend that you launch new container instances to update the agent version in your Windows clusters.
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§
source§impl UpdateContainerAgentFluentBuilder
impl UpdateContainerAgentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateContainerAgentInputBuilder
pub fn as_input(&self) -> &UpdateContainerAgentInputBuilder
Access the UpdateContainerAgent as a reference.
sourcepub async fn send(
self
) -> Result<UpdateContainerAgentOutput, SdkError<UpdateContainerAgentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateContainerAgentOutput, SdkError<UpdateContainerAgentError, HttpResponse>>
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.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateContainerAgentOutput, UpdateContainerAgentError>, SdkError<UpdateContainerAgentError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateContainerAgentOutput, UpdateContainerAgentError>, SdkError<UpdateContainerAgentError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
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.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
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.
sourcepub fn container_instance(self, input: impl Into<String>) -> Self
pub fn container_instance(self, input: impl Into<String>) -> Self
The container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.
sourcepub fn set_container_instance(self, input: Option<String>) -> Self
pub fn set_container_instance(self, input: Option<String>) -> Self
The container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.
sourcepub fn get_container_instance(&self) -> &Option<String>
pub fn get_container_instance(&self) -> &Option<String>
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§
source§impl Clone for UpdateContainerAgentFluentBuilder
impl Clone for UpdateContainerAgentFluentBuilder
source§fn clone(&self) -> UpdateContainerAgentFluentBuilder
fn clone(&self) -> UpdateContainerAgentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more