Struct aws_sdk_iot::model::JobExecution
source · #[non_exhaustive]pub struct JobExecution { /* private fields */ }
Expand description
The job execution object represents the execution of a job on a particular device.
Implementations§
source§impl JobExecution
impl JobExecution
sourcepub fn job_id(&self) -> Option<&str>
pub fn job_id(&self) -> Option<&str>
The unique identifier you assigned to the job when it was created.
sourcepub fn status(&self) -> Option<&JobExecutionStatus>
pub fn status(&self) -> Option<&JobExecutionStatus>
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
sourcepub fn force_canceled(&self) -> Option<bool>
pub fn force_canceled(&self) -> Option<bool>
Will be true
if the job execution was canceled with the optional force
parameter set to true
.
sourcepub fn status_details(&self) -> Option<&JobExecutionStatusDetails>
pub fn status_details(&self) -> Option<&JobExecutionStatusDetails>
A collection of name/value pairs that describe the status of the job execution.
sourcepub fn thing_arn(&self) -> Option<&str>
pub fn thing_arn(&self) -> Option<&str>
The ARN of the thing on which the job execution is running.
sourcepub fn queued_at(&self) -> Option<&DateTime>
pub fn queued_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution was queued.
sourcepub fn started_at(&self) -> Option<&DateTime>
pub fn started_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution started.
sourcepub fn last_updated_at(&self) -> Option<&DateTime>
pub fn last_updated_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution was last updated.
sourcepub fn execution_number(&self) -> Option<i64>
pub fn execution_number(&self) -> Option<i64>
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
sourcepub fn version_number(&self) -> i64
pub fn version_number(&self) -> i64
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
sourcepub fn approximate_seconds_before_timed_out(&self) -> Option<i64>
pub fn approximate_seconds_before_timed_out(&self) -> Option<i64>
The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.
source§impl JobExecution
impl JobExecution
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobExecution
.
Trait Implementations§
source§impl Clone for JobExecution
impl Clone for JobExecution
source§fn clone(&self) -> JobExecution
fn clone(&self) -> JobExecution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobExecution
impl Debug for JobExecution
source§impl PartialEq<JobExecution> for JobExecution
impl PartialEq<JobExecution> for JobExecution
source§fn eq(&self, other: &JobExecution) -> bool
fn eq(&self, other: &JobExecution) -> bool
self
and other
values to be equal, and is used
by ==
.