Struct aws_sdk_iot::client::fluent_builders::CancelJob [−][src]
pub struct CancelJob<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CancelJob
.
Cancels a job.
Requires permission to access the CancelJob action.
Implementations
impl<C, M, R> CancelJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CancelJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<CancelJobOutput, SdkError<CancelJobError>> where
R::Policy: SmithyRetryPolicy<CancelJobInputOperationOutputAlias, CancelJobOutput, CancelJobError, CancelJobInputOperationRetryAlias>,
pub async fn send(self) -> Result<CancelJobOutput, SdkError<CancelJobError>> where
R::Policy: SmithyRetryPolicy<CancelJobInputOperationOutputAlias, CancelJobOutput, CancelJobError, CancelJobInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The unique identifier you assigned to this job when it was created.
The unique identifier you assigned to this job when it was created.
(Optional)A reason code string that explains why the job was canceled.
(Optional)A reason code string that explains why the job was canceled.
An optional comment string describing 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.
(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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CancelJob<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CancelJob<C, M, R>
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