Struct aws_sdk_iot::input::UpdateScheduledAuditInput
source · #[non_exhaustive]pub struct UpdateScheduledAuditInput { /* private fields */ }
Implementations§
source§impl UpdateScheduledAuditInput
impl UpdateScheduledAuditInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateScheduledAudit, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateScheduledAudit, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateScheduledAudit
>
Examples found in repository?
26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateScheduledAudit,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateScheduledAuditError>,
> {
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::UpdateScheduledAuditOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateScheduledAuditError>,
> {
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 UpdateScheduledAuditInput
.
source§impl UpdateScheduledAuditInput
impl UpdateScheduledAuditInput
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-31 are specified, and the month does not 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. This can be one of 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 of the scheduled audit. (Max. 128 chars)
Trait Implementations§
source§impl Clone for UpdateScheduledAuditInput
impl Clone for UpdateScheduledAuditInput
source§fn clone(&self) -> UpdateScheduledAuditInput
fn clone(&self) -> UpdateScheduledAuditInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more