Struct aws_sdk_iot::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskInput
source · #[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§
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) -> &[String]
pub fn actions(&self) -> &[String]
The actions to be performed when a device has unexpected behavior.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
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.
source§impl StartDetectMitigationActionsTaskInput
impl StartDetectMitigationActionsTaskInput
sourcepub fn builder() -> StartDetectMitigationActionsTaskInputBuilder
pub fn builder() -> StartDetectMitigationActionsTaskInputBuilder
Creates a new builder-style object to manufacture StartDetectMitigationActionsTaskInput
.
Trait Implementations§
source§impl Clone for StartDetectMitigationActionsTaskInput
impl Clone for StartDetectMitigationActionsTaskInput
source§fn clone(&self) -> StartDetectMitigationActionsTaskInput
fn clone(&self) -> StartDetectMitigationActionsTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for StartDetectMitigationActionsTaskInput
impl PartialEq for StartDetectMitigationActionsTaskInput
source§fn eq(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
fn eq(&self, other: &StartDetectMitigationActionsTaskInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StartDetectMitigationActionsTaskInput
Auto Trait Implementations§
impl Freeze for StartDetectMitigationActionsTaskInput
impl RefUnwindSafe for StartDetectMitigationActionsTaskInput
impl Send for StartDetectMitigationActionsTaskInput
impl Sync for StartDetectMitigationActionsTaskInput
impl Unpin for StartDetectMitigationActionsTaskInput
impl UnwindSafe for StartDetectMitigationActionsTaskInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more