Struct aws_sdk_ecs::operation::deregister_container_instance::DeregisterContainerInstanceInput
source · #[non_exhaustive]pub struct DeregisterContainerInstanceInput {
pub cluster: Option<String>,
pub container_instance: Option<String>,
pub force: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cluster: Option<String>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister. If you do not specify a cluster, the default cluster is assumed.
container_instance: Option<String>The container instance ID or full ARN of the container instance to deregister. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
force: Option<bool>Forces the container instance to be deregistered. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running until you terminate the instance or the tasks stop through some other means, but they're orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler starts another copy of that task, on a different container instance if possible.
Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer target group are deregistered. They begin connection draining according to the settings on the load balancer or target group.
Implementations§
source§impl DeregisterContainerInstanceInput
impl DeregisterContainerInstanceInput
sourcepub fn cluster(&self) -> Option<&str>
pub fn cluster(&self) -> Option<&str>
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn container_instance(&self) -> Option<&str>
pub fn container_instance(&self) -> Option<&str>
The container instance ID or full ARN of the container instance to deregister. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
sourcepub fn force(&self) -> Option<bool>
pub fn force(&self) -> Option<bool>
Forces the container instance to be deregistered. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running until you terminate the instance or the tasks stop through some other means, but they're orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler starts another copy of that task, on a different container instance if possible.
Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer target group are deregistered. They begin connection draining according to the settings on the load balancer or target group.
source§impl DeregisterContainerInstanceInput
impl DeregisterContainerInstanceInput
sourcepub fn builder() -> DeregisterContainerInstanceInputBuilder
pub fn builder() -> DeregisterContainerInstanceInputBuilder
Creates a new builder-style object to manufacture DeregisterContainerInstanceInput.
Trait Implementations§
source§impl Clone for DeregisterContainerInstanceInput
impl Clone for DeregisterContainerInstanceInput
source§fn clone(&self) -> DeregisterContainerInstanceInput
fn clone(&self) -> DeregisterContainerInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for DeregisterContainerInstanceInput
impl PartialEq for DeregisterContainerInstanceInput
source§fn eq(&self, other: &DeregisterContainerInstanceInput) -> bool
fn eq(&self, other: &DeregisterContainerInstanceInput) -> bool
self and other values to be equal, and is used
by ==.