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 ==
.