Struct aws_sdk_ecs::operation::update_container_instances_state::UpdateContainerInstancesStateInput
source · #[non_exhaustive]pub struct UpdateContainerInstancesStateInput {
pub cluster: Option<String>,
pub container_instances: Option<Vec<String>>,
pub status: Option<ContainerInstanceStatus>,
}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 update. If you do not specify a cluster, the default cluster is assumed.
container_instances: Option<Vec<String>>A list of up to 10 container instance IDs or full ARN entries.
status: Option<ContainerInstanceStatus>The container instance state to update the container instance with. The only valid values for this action are ACTIVE and DRAINING. A container instance can only be updated to DRAINING status once it has reached an ACTIVE state. If a container instance is in REGISTERING, DEREGISTERING, or REGISTRATION_FAILED state you can describe the container instance but can't update the container instance state.
Implementations§
source§impl UpdateContainerInstancesStateInput
impl UpdateContainerInstancesStateInput
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 update. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn container_instances(&self) -> &[String]
pub fn container_instances(&self) -> &[String]
A list of up to 10 container instance IDs or full ARN entries.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .container_instances.is_none().
sourcepub fn status(&self) -> Option<&ContainerInstanceStatus>
pub fn status(&self) -> Option<&ContainerInstanceStatus>
The container instance state to update the container instance with. The only valid values for this action are ACTIVE and DRAINING. A container instance can only be updated to DRAINING status once it has reached an ACTIVE state. If a container instance is in REGISTERING, DEREGISTERING, or REGISTRATION_FAILED state you can describe the container instance but can't update the container instance state.
source§impl UpdateContainerInstancesStateInput
impl UpdateContainerInstancesStateInput
sourcepub fn builder() -> UpdateContainerInstancesStateInputBuilder
pub fn builder() -> UpdateContainerInstancesStateInputBuilder
Creates a new builder-style object to manufacture UpdateContainerInstancesStateInput.
Trait Implementations§
source§impl Clone for UpdateContainerInstancesStateInput
impl Clone for UpdateContainerInstancesStateInput
source§fn clone(&self) -> UpdateContainerInstancesStateInput
fn clone(&self) -> UpdateContainerInstancesStateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for UpdateContainerInstancesStateInput
impl PartialEq for UpdateContainerInstancesStateInput
source§fn eq(&self, other: &UpdateContainerInstancesStateInput) -> bool
fn eq(&self, other: &UpdateContainerInstancesStateInput) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateContainerInstancesStateInput
Auto Trait Implementations§
impl Freeze for UpdateContainerInstancesStateInput
impl RefUnwindSafe for UpdateContainerInstancesStateInput
impl Send for UpdateContainerInstancesStateInput
impl Sync for UpdateContainerInstancesStateInput
impl Unpin for UpdateContainerInstancesStateInput
impl UnwindSafe for UpdateContainerInstancesStateInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more