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.
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.
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 for StopTaskInput
impl PartialEq 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 ==
.impl StructuralPartialEq for StopTaskInput
Auto Trait Implementations§
impl Freeze for StopTaskInput
impl RefUnwindSafe for StopTaskInput
impl Send for StopTaskInput
impl Sync for StopTaskInput
impl Unpin for StopTaskInput
impl UnwindSafe for StopTaskInput
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> 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