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 ==
.