Struct aws_sdk_iot::client::fluent_builders::CancelAuditTask
source · pub struct CancelAuditTask { /* private fields */ }
Expand description
Fluent builder constructing a request to CancelAuditTask
.
Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in progress, an "InvalidRequestException" occurs.
Requires permission to access the CancelAuditTask action.
Implementations§
source§impl CancelAuditTask
impl CancelAuditTask
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CancelAuditTask, AwsResponseRetryClassifier>, SdkError<CancelAuditTaskError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CancelAuditTask, AwsResponseRetryClassifier>, SdkError<CancelAuditTaskError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CancelAuditTaskOutput, SdkError<CancelAuditTaskError>>
pub async fn send(
self
) -> Result<CancelAuditTaskOutput, SdkError<CancelAuditTaskError>>
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.
sourcepub fn task_id(self, input: impl Into<String>) -> Self
pub fn task_id(self, input: impl Into<String>) -> Self
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
sourcepub fn set_task_id(self, input: Option<String>) -> Self
pub fn set_task_id(self, input: Option<String>) -> Self
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
Trait Implementations§
source§impl Clone for CancelAuditTask
impl Clone for CancelAuditTask
source§fn clone(&self) -> CancelAuditTask
fn clone(&self) -> CancelAuditTask
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more