#[non_exhaustive]pub struct StartDetectMitigationActionsTaskInput {
pub task_id: Option<String>,
pub target: Option<DetectMitigationActionsTaskTarget>,
pub actions: Option<Vec<String>>,
pub violation_event_occurrence_range: Option<ViolationEventOccurrenceRange>,
pub include_only_active_violations: Option<bool>,
pub include_suppressed_alerts: Option<bool>,
pub client_request_token: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.task_id: Option<String>
The unique identifier of the task.
target: Option<DetectMitigationActionsTaskTarget>
Specifies the ML Detect findings to which the mitigation actions are applied.
actions: Option<Vec<String>>
The actions to be performed when a device has unexpected behavior.
violation_event_occurrence_range: Option<ViolationEventOccurrenceRange>
Specifies the time period of which violation events occurred between.
include_only_active_violations: Option<bool>
Specifies to list only active violations.
include_suppressed_alerts: Option<bool>
Specifies to include suppressed alerts.
client_request_token: Option<String>
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.
Implementations
sourceimpl StartDetectMitigationActionsTaskInput
impl StartDetectMitigationActionsTaskInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartDetectMitigationActionsTask, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartDetectMitigationActionsTask, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<StartDetectMitigationActionsTask
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartDetectMitigationActionsTaskInput
sourceimpl 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
sourceimpl Clone for StartDetectMitigationActionsTaskInput
impl Clone for StartDetectMitigationActionsTaskInput
sourcefn clone(&self) -> StartDetectMitigationActionsTaskInput
fn clone(&self) -> StartDetectMitigationActionsTaskInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<StartDetectMitigationActionsTaskInput> for StartDetectMitigationActionsTaskInput
impl PartialEq<StartDetectMitigationActionsTaskInput> for StartDetectMitigationActionsTaskInput
sourcefn eq(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
fn eq(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
fn ne(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for StartDetectMitigationActionsTaskInput
Auto Trait Implementations
impl RefUnwindSafe for StartDetectMitigationActionsTaskInput
impl Send for StartDetectMitigationActionsTaskInput
impl Sync for StartDetectMitigationActionsTaskInput
impl Unpin for StartDetectMitigationActionsTaskInput
impl UnwindSafe for StartDetectMitigationActionsTaskInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more