Struct aws_sdk_iot::input::UpdateAuditSuppressionInput
source · #[non_exhaustive]pub struct UpdateAuditSuppressionInput { /* private fields */ }
Implementations§
source§impl UpdateAuditSuppressionInput
impl UpdateAuditSuppressionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAuditSuppression, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAuditSuppression, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateAuditSuppression
>
Examples found in repository?
src/client.rs (line 24992)
24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateAuditSuppression,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateAuditSuppressionError>,
> {
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::UpdateAuditSuppressionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateAuditSuppressionError>,
> {
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 UpdateAuditSuppressionInput
.
source§impl UpdateAuditSuppressionInput
impl UpdateAuditSuppressionInput
sourcepub fn check_name(&self) -> Option<&str>
pub fn check_name(&self) -> Option<&str>
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
sourcepub fn resource_identifier(&self) -> Option<&ResourceIdentifier>
pub fn resource_identifier(&self) -> Option<&ResourceIdentifier>
Information that identifies the noncompliant resource.
sourcepub fn expiration_date(&self) -> Option<&DateTime>
pub fn expiration_date(&self) -> Option<&DateTime>
The expiration date (epoch timestamp in seconds) that you want the suppression to adhere to.
sourcepub fn suppress_indefinitely(&self) -> Option<bool>
pub fn suppress_indefinitely(&self) -> Option<bool>
Indicates whether a suppression should exist indefinitely or not.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the audit suppression.
Trait Implementations§
source§impl Clone for UpdateAuditSuppressionInput
impl Clone for UpdateAuditSuppressionInput
source§fn clone(&self) -> UpdateAuditSuppressionInput
fn clone(&self) -> UpdateAuditSuppressionInput
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