#[non_exhaustive]pub struct CreateMitigationActionInput {
pub action_name: Option<String>,
pub role_arn: Option<String>,
pub action_params: Option<MitigationActionParams>,
pub tags: Option<Vec<Tag>>,
}
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.action_name: Option<String>
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
role_arn: Option<String>
The ARN of the IAM role that is used to apply the mitigation action.
action_params: Option<MitigationActionParams>
Defines the type of action and the parameters for that action.
Metadata that can be used to manage the mitigation action.
Implementations§
source§impl CreateMitigationActionInput
impl CreateMitigationActionInput
sourcepub fn action_name(&self) -> Option<&str>
pub fn action_name(&self) -> Option<&str>
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(&self) -> Option<&MitigationActionParams>
pub fn action_params(&self) -> Option<&MitigationActionParams>
Defines the type of action and the parameters for that action.
Metadata that can be used to manage the mitigation action.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateMitigationActionInput
impl CreateMitigationActionInput
sourcepub fn builder() -> CreateMitigationActionInputBuilder
pub fn builder() -> CreateMitigationActionInputBuilder
Creates a new builder-style object to manufacture CreateMitigationActionInput
.
Trait Implementations§
source§impl Clone for CreateMitigationActionInput
impl Clone for CreateMitigationActionInput
source§fn clone(&self) -> CreateMitigationActionInput
fn clone(&self) -> CreateMitigationActionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateMitigationActionInput
impl Debug for CreateMitigationActionInput
source§impl PartialEq for CreateMitigationActionInput
impl PartialEq for CreateMitigationActionInput
source§fn eq(&self, other: &CreateMitigationActionInput) -> bool
fn eq(&self, other: &CreateMitigationActionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateMitigationActionInput
Auto Trait Implementations§
impl Freeze for CreateMitigationActionInput
impl RefUnwindSafe for CreateMitigationActionInput
impl Send for CreateMitigationActionInput
impl Sync for CreateMitigationActionInput
impl Unpin for CreateMitigationActionInput
impl UnwindSafe for CreateMitigationActionInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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