#[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 ==
.impl StructuralPartialEq for SecurityHubPolicyBuilder
Auto Trait Implementations§
impl Freeze for SecurityHubPolicyBuilder
impl RefUnwindSafe for SecurityHubPolicyBuilder
impl Send for SecurityHubPolicyBuilder
impl Sync for SecurityHubPolicyBuilder
impl Unpin for SecurityHubPolicyBuilder
impl UnwindSafe for SecurityHubPolicyBuilder
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