Struct aws_sdk_securityhub::types::ParameterConfiguration
source · #[non_exhaustive]pub struct ParameterConfiguration {
pub value_type: Option<ParameterValueType>,
pub value: Option<ParameterValue>,
}
Expand description
An object that provides the current value of a security control parameter and identifies whether it has been customized.
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.value_type: Option<ParameterValueType>
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default Security Hub behavior.
When ValueType
is set equal to DEFAULT
, the default behavior can be a specific Security Hub default value, or the default behavior can be to ignore a specific parameter. When ValueType
is set equal to DEFAULT
, Security Hub ignores user-provided input for the Value
field.
When ValueType
is set equal to CUSTOM
, the Value
field can't be empty.
value: Option<ParameterValue>
The current value of a control parameter.
Implementations§
source§impl ParameterConfiguration
impl ParameterConfiguration
sourcepub fn value_type(&self) -> Option<&ParameterValueType>
pub fn value_type(&self) -> Option<&ParameterValueType>
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default Security Hub behavior.
When ValueType
is set equal to DEFAULT
, the default behavior can be a specific Security Hub default value, or the default behavior can be to ignore a specific parameter. When ValueType
is set equal to DEFAULT
, Security Hub ignores user-provided input for the Value
field.
When ValueType
is set equal to CUSTOM
, the Value
field can't be empty.
sourcepub fn value(&self) -> Option<&ParameterValue>
pub fn value(&self) -> Option<&ParameterValue>
The current value of a control parameter.
source§impl ParameterConfiguration
impl ParameterConfiguration
sourcepub fn builder() -> ParameterConfigurationBuilder
pub fn builder() -> ParameterConfigurationBuilder
Creates a new builder-style object to manufacture ParameterConfiguration
.
Trait Implementations§
source§impl Clone for ParameterConfiguration
impl Clone for ParameterConfiguration
source§fn clone(&self) -> ParameterConfiguration
fn clone(&self) -> ParameterConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParameterConfiguration
impl Debug for ParameterConfiguration
source§impl PartialEq for ParameterConfiguration
impl PartialEq for ParameterConfiguration
source§fn eq(&self, other: &ParameterConfiguration) -> bool
fn eq(&self, other: &ParameterConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParameterConfiguration
Auto Trait Implementations§
impl Freeze for ParameterConfiguration
impl RefUnwindSafe for ParameterConfiguration
impl Send for ParameterConfiguration
impl Sync for ParameterConfiguration
impl Unpin for ParameterConfiguration
impl UnwindSafe for ParameterConfiguration
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