pub struct StartNextPendingJobExecution<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to StartNextPendingJobExecution
.
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Implementations
impl<C, M, R> StartNextPendingJobExecution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> StartNextPendingJobExecution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<StartNextPendingJobExecutionOutput, SdkError<StartNextPendingJobExecutionError>> where
R::Policy: SmithyRetryPolicy<StartNextPendingJobExecutionInputOperationOutputAlias, StartNextPendingJobExecutionOutput, StartNextPendingJobExecutionError, StartNextPendingJobExecutionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<StartNextPendingJobExecutionOutput, SdkError<StartNextPendingJobExecutionError>> where
R::Policy: SmithyRetryPolicy<StartNextPendingJobExecutionInputOperationOutputAlias, StartNextPendingJobExecutionOutput, StartNextPendingJobExecutionError, StartNextPendingJobExecutionInputOperationRetryAlias>,
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 name of the thing associated with the device.
The name of the thing associated with the device.
Adds a key-value pair to statusDetails
.
To override the contents of this collection use set_status_details
.
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
) the job execution status will be automatically set to TIMED_OUT
. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob
using field timeoutConfig
).
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
) the job execution status will be automatically set to TIMED_OUT
. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob
using field timeoutConfig
).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for StartNextPendingJobExecution<C, M, R>
impl<C, M, R> Send for StartNextPendingJobExecution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for StartNextPendingJobExecution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for StartNextPendingJobExecution<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for StartNextPendingJobExecution<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