Struct aws_sdk_iot::input::CancelJobInput
source · [−]#[non_exhaustive]pub struct CancelJobInput {
pub job_id: Option<String>,
pub reason_code: Option<String>,
pub comment: Option<String>,
pub force: bool,
}
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.job_id: Option<String>
The unique identifier you assigned to this job when it was created.
reason_code: Option<String>
(Optional)A reason code string that explains why the job was canceled.
comment: Option<String>
An optional comment string describing why the job was canceled.
force: bool
(Optional) If true
job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false
.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelJob, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelJob, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CancelJob
>
Creates a new builder-style object to manufacture CancelJobInput
The unique identifier you assigned to this job when it was created.
(Optional)A reason code string that explains why the job was canceled.
An optional comment string describing why the job was canceled.
(Optional) If true
job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false
.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
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 CancelJobInput
impl Send for CancelJobInput
impl Sync for CancelJobInput
impl Unpin for CancelJobInput
impl UnwindSafe for CancelJobInput
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