Struct aws_sdk_iot::input::CreateAuditSuppressionInput
source · #[non_exhaustive]pub struct CreateAuditSuppressionInput { /* private fields */ }
Implementations§
source§impl CreateAuditSuppressionInput
impl CreateAuditSuppressionInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateAuditSuppression, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateAuditSuppression, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateAuditSuppression
>
Examples found in repository?
4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateAuditSuppression,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateAuditSuppressionError>,
> {
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::CreateAuditSuppressionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateAuditSuppressionError>,
> {
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 CreateAuditSuppressionInput
.
source§impl CreateAuditSuppressionInput
impl CreateAuditSuppressionInput
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 epoch timestamp in seconds at which this suppression expires.
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.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Trait Implementations§
source§impl Clone for CreateAuditSuppressionInput
impl Clone for CreateAuditSuppressionInput
source§fn clone(&self) -> CreateAuditSuppressionInput
fn clone(&self) -> CreateAuditSuppressionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more