Struct aws_sdk_iot::input::CreateScheduledAuditInput
source · #[non_exhaustive]pub struct CreateScheduledAuditInput { /* private fields */ }
Implementations§
source§impl CreateScheduledAuditInput
impl CreateScheduledAuditInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateScheduledAudit, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateScheduledAudit, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateScheduledAudit
>
Examples found in repository?
7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateScheduledAudit,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateScheduledAuditError>,
> {
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::CreateScheduledAuditOutput,
aws_smithy_http::result::SdkError<crate::error::CreateScheduledAuditError>,
> {
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 CreateScheduledAuditInput
.
source§impl CreateScheduledAuditInput
impl CreateScheduledAuditInput
sourcepub fn frequency(&self) -> Option<&AuditFrequency>
pub fn frequency(&self) -> Option<&AuditFrequency>
How often the scheduled audit takes place, either DAILY
, WEEKLY
, BIWEEKLY
or MONTHLY
. The start time of each audit is determined by the system.
sourcepub fn day_of_month(&self) -> Option<&str>
pub fn day_of_month(&self) -> Option<&str>
The day of the month on which the scheduled audit takes place. This can be "1" through "31" or "LAST". This field is required if the "frequency" parameter is set to MONTHLY
. If days 29 to 31 are specified, and the month doesn't have that many days, the audit takes place on the LAST
day of the month.
sourcepub fn day_of_week(&self) -> Option<&DayOfWeek>
pub fn day_of_week(&self) -> Option<&DayOfWeek>
The day of the week on which the scheduled audit takes place, either SUN
, MON
, TUE
, WED
, THU
, FRI
, or SAT
. This field is required if the frequency
parameter is set to WEEKLY
or BIWEEKLY
.
sourcepub fn target_check_names(&self) -> Option<&[String]>
pub fn target_check_names(&self) -> Option<&[String]>
Which checks are performed during the scheduled audit. 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 scheduled_audit_name(&self) -> Option<&str>
pub fn scheduled_audit_name(&self) -> Option<&str>
The name you want to give to the scheduled audit. (Max. 128 chars)
Metadata that can be used to manage the scheduled audit.
Trait Implementations§
source§impl Clone for CreateScheduledAuditInput
impl Clone for CreateScheduledAuditInput
source§fn clone(&self) -> CreateScheduledAuditInput
fn clone(&self) -> CreateScheduledAuditInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more