Smaws_Client_ECS.UpdateContainerAgentUpdates 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MissingVersionException of Types.missing_version_exception
| `NoUpdateAvailableException of Types.no_update_available_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.update_container_agent_request ->
(Types.update_container_agent_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MissingVersionException of Types.missing_version_exception
| `NoUpdateAvailableException of Types.no_update_available_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.update_container_agent_request ->
(Types.update_container_agent_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MissingVersionException of Types.missing_version_exception
| `NoUpdateAvailableException of Types.no_update_available_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result