#[non_exhaustive]pub struct StartDetectMitigationActionsTaskInput { /* private fields */ }
Implementations§
source§impl StartDetectMitigationActionsTaskInput
impl StartDetectMitigationActionsTaskInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartDetectMitigationActionsTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartDetectMitigationActionsTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartDetectMitigationActionsTask
>
Examples found in repository?
src/client.rs (line 23859)
23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartDetectMitigationActionsTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartDetectMitigationActionsTaskError>,
> {
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::StartDetectMitigationActionsTaskOutput,
aws_smithy_http::result::SdkError<crate::error::StartDetectMitigationActionsTaskError>,
> {
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 StartDetectMitigationActionsTaskInput
.
source§impl StartDetectMitigationActionsTaskInput
impl StartDetectMitigationActionsTaskInput
sourcepub fn target(&self) -> Option<&DetectMitigationActionsTaskTarget>
pub fn target(&self) -> Option<&DetectMitigationActionsTaskTarget>
Specifies the ML Detect findings to which the mitigation actions are applied.
sourcepub fn actions(&self) -> Option<&[String]>
pub fn actions(&self) -> Option<&[String]>
The actions to be performed when a device has unexpected behavior.
sourcepub fn violation_event_occurrence_range(
&self
) -> Option<&ViolationEventOccurrenceRange>
pub fn violation_event_occurrence_range(
&self
) -> Option<&ViolationEventOccurrenceRange>
Specifies the time period of which violation events occurred between.
sourcepub fn include_only_active_violations(&self) -> Option<bool>
pub fn include_only_active_violations(&self) -> Option<bool>
Specifies to list only active violations.
sourcepub fn include_suppressed_alerts(&self) -> Option<bool>
pub fn include_suppressed_alerts(&self) -> Option<bool>
Specifies to include suppressed alerts.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task 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 StartDetectMitigationActionsTaskInput
impl Clone for StartDetectMitigationActionsTaskInput
source§fn clone(&self) -> StartDetectMitigationActionsTaskInput
fn clone(&self) -> StartDetectMitigationActionsTaskInput
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