Struct aws_sdk_securityhub::types::SecurityHubPolicy
source · #[non_exhaustive]pub struct SecurityHubPolicy {
pub service_enabled: Option<bool>,
pub enabled_standard_identifiers: Option<Vec<String>>,
pub security_controls_configuration: Option<SecurityControlsConfiguration>,
}
Expand description
An object that defines how Security Hub is configured. The configuration policy includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
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.service_enabled: Option<bool>
Indicates whether Security Hub is enabled in the policy.
enabled_standard_identifiers: Option<Vec<String>>
A list that defines which security standards are enabled in the configuration policy.
security_controls_configuration: Option<SecurityControlsConfiguration>
An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
Implementations§
source§impl SecurityHubPolicy
impl SecurityHubPolicy
sourcepub fn service_enabled(&self) -> Option<bool>
pub fn service_enabled(&self) -> Option<bool>
Indicates whether Security Hub is enabled in the policy.
sourcepub fn enabled_standard_identifiers(&self) -> &[String]
pub fn enabled_standard_identifiers(&self) -> &[String]
A list that defines which security standards are enabled in the configuration policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .enabled_standard_identifiers.is_none()
.
sourcepub fn security_controls_configuration(
&self
) -> Option<&SecurityControlsConfiguration>
pub fn security_controls_configuration( &self ) -> Option<&SecurityControlsConfiguration>
An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
source§impl SecurityHubPolicy
impl SecurityHubPolicy
sourcepub fn builder() -> SecurityHubPolicyBuilder
pub fn builder() -> SecurityHubPolicyBuilder
Creates a new builder-style object to manufacture SecurityHubPolicy
.
Trait Implementations§
source§impl Clone for SecurityHubPolicy
impl Clone for SecurityHubPolicy
source§fn clone(&self) -> SecurityHubPolicy
fn clone(&self) -> SecurityHubPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityHubPolicy
impl Debug for SecurityHubPolicy
source§impl PartialEq for SecurityHubPolicy
impl PartialEq for SecurityHubPolicy
source§fn eq(&self, other: &SecurityHubPolicy) -> bool
fn eq(&self, other: &SecurityHubPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityHubPolicy
Auto Trait Implementations§
impl Freeze for SecurityHubPolicy
impl RefUnwindSafe for SecurityHubPolicy
impl Send for SecurityHubPolicy
impl Sync for SecurityHubPolicy
impl Unpin for SecurityHubPolicy
impl UnwindSafe for SecurityHubPolicy
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