#[non_exhaustive]pub struct EnableSecurityHubInput {
pub tags: Option<HashMap<String, String>>,
pub enable_default_standards: Option<bool>,
pub control_finding_generator: Option<ControlFindingGenerator>,
}
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.The tags to add to the hub resource when you enable Security Hub.
enable_default_standards: Option<bool>
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
control_finding_generator: Option<ControlFindingGenerator>
This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.
If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
Implementations§
source§impl EnableSecurityHubInput
impl EnableSecurityHubInput
The tags to add to the hub resource when you enable Security Hub.
sourcepub fn enable_default_standards(&self) -> Option<bool>
pub fn enable_default_standards(&self) -> Option<bool>
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn control_finding_generator(&self) -> Option<&ControlFindingGenerator>
pub fn control_finding_generator(&self) -> Option<&ControlFindingGenerator>
This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.
If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
source§impl EnableSecurityHubInput
impl EnableSecurityHubInput
sourcepub fn builder() -> EnableSecurityHubInputBuilder
pub fn builder() -> EnableSecurityHubInputBuilder
Creates a new builder-style object to manufacture EnableSecurityHubInput
.
Trait Implementations§
source§impl Clone for EnableSecurityHubInput
impl Clone for EnableSecurityHubInput
source§fn clone(&self) -> EnableSecurityHubInput
fn clone(&self) -> EnableSecurityHubInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableSecurityHubInput
impl Debug for EnableSecurityHubInput
source§impl PartialEq for EnableSecurityHubInput
impl PartialEq for EnableSecurityHubInput
source§fn eq(&self, other: &EnableSecurityHubInput) -> bool
fn eq(&self, other: &EnableSecurityHubInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EnableSecurityHubInput
Auto Trait Implementations§
impl Freeze for EnableSecurityHubInput
impl RefUnwindSafe for EnableSecurityHubInput
impl Send for EnableSecurityHubInput
impl Sync for EnableSecurityHubInput
impl Unpin for EnableSecurityHubInput
impl UnwindSafe for EnableSecurityHubInput
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