#[non_exhaustive]pub struct StartAuditMitigationActionsTaskInput { /* private fields */ }
Implementations§
source§impl StartAuditMitigationActionsTaskInput
impl StartAuditMitigationActionsTaskInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartAuditMitigationActionsTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartAuditMitigationActionsTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartAuditMitigationActionsTask
>
Examples found in repository?
23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartAuditMitigationActionsTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartAuditMitigationActionsTaskError>,
> {
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::StartAuditMitigationActionsTaskOutput,
aws_smithy_http::result::SdkError<crate::error::StartAuditMitigationActionsTaskError>,
> {
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 StartAuditMitigationActionsTaskInput
.
source§impl StartAuditMitigationActionsTaskInput
impl StartAuditMitigationActionsTaskInput
sourcepub fn task_id(&self) -> Option<&str>
pub fn task_id(&self) -> Option<&str>
A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.
sourcepub fn target(&self) -> Option<&AuditMitigationActionsTaskTarget>
pub fn target(&self) -> Option<&AuditMitigationActionsTaskTarget>
Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
sourcepub fn audit_check_to_actions_mapping(
&self
) -> Option<&HashMap<String, Vec<String>>>
pub fn audit_check_to_actions_mapping(
&self
) -> Option<&HashMap<String, Vec<String>>>
For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.
Trait Implementations§
source§impl Clone for StartAuditMitigationActionsTaskInput
impl Clone for StartAuditMitigationActionsTaskInput
source§fn clone(&self) -> StartAuditMitigationActionsTaskInput
fn clone(&self) -> StartAuditMitigationActionsTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more