pub struct DeregisterContainerInstanceRequest {
pub cluster: Option<String>,
pub container_instance: String,
pub force: Option<bool>,
}
Fields
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: String
The container instance ID or full ARN of the container instance to deregister. The ARN contains the arn:aws:ecs
namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance
namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID
.
force: Option<bool>
Forces the deregistration of the container instance. 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 are 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.
Trait Implementations
sourceimpl Clone for DeregisterContainerInstanceRequest
impl Clone for DeregisterContainerInstanceRequest
sourcefn clone(&self) -> DeregisterContainerInstanceRequest
fn clone(&self) -> DeregisterContainerInstanceRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for DeregisterContainerInstanceRequest
impl Default for DeregisterContainerInstanceRequest
sourcefn default() -> DeregisterContainerInstanceRequest
fn default() -> DeregisterContainerInstanceRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<DeregisterContainerInstanceRequest> for DeregisterContainerInstanceRequest
impl PartialEq<DeregisterContainerInstanceRequest> for DeregisterContainerInstanceRequest
sourcefn eq(&self, other: &DeregisterContainerInstanceRequest) -> bool
fn eq(&self, other: &DeregisterContainerInstanceRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DeregisterContainerInstanceRequest) -> bool
fn ne(&self, other: &DeregisterContainerInstanceRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for DeregisterContainerInstanceRequest
Auto Trait Implementations
impl RefUnwindSafe for DeregisterContainerInstanceRequest
impl Send for DeregisterContainerInstanceRequest
impl Sync for DeregisterContainerInstanceRequest
impl Unpin for DeregisterContainerInstanceRequest
impl UnwindSafe for DeregisterContainerInstanceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more