Struct aws_sdk_ecs::input::StopTaskInput [−][src]
#[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 or full Amazon Resource Name (ARN) of the task to stop.
reason: Option<String>
An optional message specified when a task is stopped. For example, if you are 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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTask, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTask, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<StopTask
>
Creates a new builder-style object to manufacture StopTaskInput
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.
The task ID or full Amazon Resource Name (ARN) of the task to stop.
An optional message specified when a task is stopped. For example, if you are 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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StopTaskInput
impl Send for StopTaskInput
impl Sync for StopTaskInput
impl Unpin for StopTaskInput
impl UnwindSafe for StopTaskInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more