Struct aws_sdk_iot::input::StartOnDemandAuditTaskInput
source · #[non_exhaustive]pub struct StartOnDemandAuditTaskInput { /* private fields */ }
Implementations§
source§impl StartOnDemandAuditTaskInput
impl StartOnDemandAuditTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartOnDemandAuditTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartOnDemandAuditTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartOnDemandAuditTask
>
Examples found in repository?
src/client.rs (line 24015)
24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartOnDemandAuditTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartOnDemandAuditTaskError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartOnDemandAuditTaskOutput,
aws_smithy_http::result::SdkError<crate::error::StartOnDemandAuditTaskError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartOnDemandAuditTaskInput
.
source§impl StartOnDemandAuditTaskInput
impl StartOnDemandAuditTaskInput
sourcepub fn target_check_names(&self) -> Option<&[String]>
pub fn target_check_names(&self) -> Option<&[String]>
Which checks are performed during the audit. The checks you specify must be enabled for your account or an exception occurs. Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or UpdateAccountAuditConfiguration
to select which checks are enabled.
Trait Implementations§
source§impl Clone for StartOnDemandAuditTaskInput
impl Clone for StartOnDemandAuditTaskInput
source§fn clone(&self) -> StartOnDemandAuditTaskInput
fn clone(&self) -> StartOnDemandAuditTaskInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more