Struct rustot::jobs::update::UpdateJobExecutionRequest[][src]

pub struct UpdateJobExecutionRequest<'a> {
    pub execution_number: Option<i64>,
    pub expected_version: Option<i64>,
    pub include_job_document: Option<bool>,
    pub include_job_execution_state: Option<bool>,
    pub status: JobStatus,
    pub status_details: Option<&'a StatusDetails>,
    pub step_timeout_in_minutes: Option<i64>,
    pub client_token: Option<&'a str>,
}
Expand description

Updates the status of a job execution. You can optionally create a step timer by setting a value for the stepTimeoutInMinutes property. If you don’t update the value of this property by running UpdateJobExecution again, the job execution times out when the step timer expires.

Topic: $aws/things/{thingName}/jobs/{jobId}/update

Fields

execution_number: Option<i64>

Optional. A number that identifies a particular job execution on a particular device.

expected_version: Option<i64>

Optional. The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)

include_job_document: Option<bool>

Optional. When set to true, the response contains the job document. The default is false.

include_job_execution_state: Option<bool>

Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.

status: JobStatus

The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.

status_details: Option<&'a StatusDetails>step_timeout_in_minutes: Option<i64>client_token: Option<&'a str>

A client token used to correlate requests and responses. Enter an arbitrary value here and it is reflected in the response.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.