Struct aws_sdk_iot::input::CancelJobExecutionInput
source · #[non_exhaustive]pub struct CancelJobExecutionInput { /* private fields */ }
Implementations§
source§impl CancelJobExecutionInput
impl CancelJobExecutionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelJobExecution, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelJobExecution, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CancelJobExecution
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CancelJobExecutionInput
.
source§impl CancelJobExecutionInput
impl CancelJobExecutionInput
sourcepub fn thing_name(&self) -> Option<&str>
pub fn thing_name(&self) -> Option<&str>
The name of the thing whose execution of the job will be canceled.
sourcepub fn force(&self) -> bool
pub fn force(&self) -> bool
(Optional) If true
the job execution will be canceled if it has status IN_PROGRESS or QUEUED, otherwise the job execution will be canceled only if it has status QUEUED. If you attempt to cancel a job execution that is IN_PROGRESS, and you do not set force
to true
, then an InvalidStateTransitionException
will be thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
sourcepub fn expected_version(&self) -> Option<i64>
pub fn expected_version(&self) -> 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.)
Trait Implementations§
source§impl Clone for CancelJobExecutionInput
impl Clone for CancelJobExecutionInput
source§fn clone(&self) -> CancelJobExecutionInput
fn clone(&self) -> CancelJobExecutionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CancelJobExecutionInput
impl Debug for CancelJobExecutionInput
source§impl PartialEq<CancelJobExecutionInput> for CancelJobExecutionInput
impl PartialEq<CancelJobExecutionInput> for CancelJobExecutionInput
source§fn eq(&self, other: &CancelJobExecutionInput) -> bool
fn eq(&self, other: &CancelJobExecutionInput) -> bool
self
and other
values to be equal, and is used
by ==
.