#[non_exhaustive]pub struct SecurityHubPolicyBuilder { /* private fields */ }
Expand description
A builder for SecurityHubPolicy
.
Implementations§
source§impl SecurityHubPolicyBuilder
impl SecurityHubPolicyBuilder
sourcepub fn service_enabled(self, input: bool) -> Self
pub fn service_enabled(self, input: bool) -> Self
Indicates whether Security Hub is enabled in the policy.
sourcepub fn set_service_enabled(self, input: Option<bool>) -> Self
pub fn set_service_enabled(self, input: Option<bool>) -> Self
Indicates whether Security Hub is enabled in the policy.
sourcepub fn get_service_enabled(&self) -> &Option<bool>
pub fn get_service_enabled(&self) -> &Option<bool>
Indicates whether Security Hub is enabled in the policy.
sourcepub fn enabled_standard_identifiers(self, input: impl Into<String>) -> Self
pub fn enabled_standard_identifiers(self, input: impl Into<String>) -> Self
Appends an item to enabled_standard_identifiers
.
To override the contents of this collection use set_enabled_standard_identifiers
.
A list that defines which security standards are enabled in the configuration policy.
sourcepub fn set_enabled_standard_identifiers(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_enabled_standard_identifiers( self, input: Option<Vec<String>> ) -> Self
A list that defines which security standards are enabled in the configuration policy.
sourcepub fn get_enabled_standard_identifiers(&self) -> &Option<Vec<String>>
pub fn get_enabled_standard_identifiers(&self) -> &Option<Vec<String>>
A list that defines which security standards are enabled in the configuration policy.
sourcepub fn security_controls_configuration(
self,
input: SecurityControlsConfiguration
) -> Self
pub fn security_controls_configuration( self, input: SecurityControlsConfiguration ) -> Self
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.
sourcepub fn set_security_controls_configuration(
self,
input: Option<SecurityControlsConfiguration>
) -> Self
pub fn set_security_controls_configuration( self, input: Option<SecurityControlsConfiguration> ) -> Self
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.
sourcepub fn get_security_controls_configuration(
&self
) -> &Option<SecurityControlsConfiguration>
pub fn get_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.
sourcepub fn build(self) -> SecurityHubPolicy
pub fn build(self) -> SecurityHubPolicy
Consumes the builder and constructs a SecurityHubPolicy
.
Trait Implementations§
source§impl Clone for SecurityHubPolicyBuilder
impl Clone for SecurityHubPolicyBuilder
source§fn clone(&self) -> SecurityHubPolicyBuilder
fn clone(&self) -> SecurityHubPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityHubPolicyBuilder
impl Debug for SecurityHubPolicyBuilder
source§impl Default for SecurityHubPolicyBuilder
impl Default for SecurityHubPolicyBuilder
source§fn default() -> SecurityHubPolicyBuilder
fn default() -> SecurityHubPolicyBuilder
source§impl PartialEq for SecurityHubPolicyBuilder
impl PartialEq for SecurityHubPolicyBuilder
source§fn eq(&self, other: &SecurityHubPolicyBuilder) -> bool
fn eq(&self, other: &SecurityHubPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.