Struct aws_sdk_ecs::operation::stop_task::StopTaskInput
source · #[non_exhaustive]pub struct StopTaskInput {
pub cluster: Option<String>,
pub task: Option<String>,
pub reason: Option<String>,
}
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 task to stop. If you do not specify a cluster, the default cluster is assumed.
task: Option<String>
The task ID of the task to stop.
reason: Option<String>
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks
API operations on this task. Up to 255 characters are allowed in this message.
Implementations§
source§impl StopTaskInput
impl StopTaskInput
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 task to stop. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks
API operations on this task. Up to 255 characters are allowed in this message.
source§impl StopTaskInput
impl StopTaskInput
sourcepub fn builder() -> StopTaskInputBuilder
pub fn builder() -> StopTaskInputBuilder
Creates a new builder-style object to manufacture StopTaskInput
.
Trait Implementations§
source§impl Clone for StopTaskInput
impl Clone for StopTaskInput
source§fn clone(&self) -> StopTaskInput
fn clone(&self) -> StopTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StopTaskInput
impl Debug for StopTaskInput
source§impl PartialEq<StopTaskInput> for StopTaskInput
impl PartialEq<StopTaskInput> for StopTaskInput
source§fn eq(&self, other: &StopTaskInput) -> bool
fn eq(&self, other: &StopTaskInput) -> bool
self
and other
values to be equal, and is used
by ==
.