Struct aws_sdk_securityhub::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationInputBuilder
source · #[non_exhaustive]pub struct UpdateSecurityHubConfigurationInputBuilder { /* private fields */ }
Expand description
A builder for UpdateSecurityHubConfigurationInput
.
Implementations§
source§impl UpdateSecurityHubConfigurationInputBuilder
impl UpdateSecurityHubConfigurationInputBuilder
sourcepub fn auto_enable_controls(self, input: bool) -> Self
pub fn auto_enable_controls(self, input: bool) -> Self
Whether to automatically enable new controls when they are added to standards that are enabled.
By default, this is set to true
, and new controls are enabled automatically. To not automatically enable new controls, set this to false
.
sourcepub fn set_auto_enable_controls(self, input: Option<bool>) -> Self
pub fn set_auto_enable_controls(self, input: Option<bool>) -> Self
Whether to automatically enable new controls when they are added to standards that are enabled.
By default, this is set to true
, and new controls are enabled automatically. To not automatically enable new controls, set this to false
.
sourcepub fn get_auto_enable_controls(&self) -> &Option<bool>
pub fn get_auto_enable_controls(&self) -> &Option<bool>
Whether to automatically enable new controls when they are added to standards that are enabled.
By default, this is set to true
, and new controls are enabled automatically. To not automatically enable new controls, set this to false
.
sourcepub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
pub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
Updates 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.
For accounts that are part of an organization, this value can only be updated in the administrator account.
sourcepub fn set_control_finding_generator(
self,
input: Option<ControlFindingGenerator>
) -> Self
pub fn set_control_finding_generator( self, input: Option<ControlFindingGenerator> ) -> Self
Updates 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.
For accounts that are part of an organization, this value can only be updated in the administrator account.
sourcepub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
pub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
Updates 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.
For accounts that are part of an organization, this value can only be updated in the administrator account.
sourcepub fn build(self) -> Result<UpdateSecurityHubConfigurationInput, BuildError>
pub fn build(self) -> Result<UpdateSecurityHubConfigurationInput, BuildError>
Consumes the builder and constructs a UpdateSecurityHubConfigurationInput
.
source§impl UpdateSecurityHubConfigurationInputBuilder
impl UpdateSecurityHubConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateSecurityHubConfigurationOutput, SdkError<UpdateSecurityHubConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateSecurityHubConfigurationOutput, SdkError<UpdateSecurityHubConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateSecurityHubConfigurationInputBuilder
impl Clone for UpdateSecurityHubConfigurationInputBuilder
source§fn clone(&self) -> UpdateSecurityHubConfigurationInputBuilder
fn clone(&self) -> UpdateSecurityHubConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateSecurityHubConfigurationInputBuilder
impl Default for UpdateSecurityHubConfigurationInputBuilder
source§fn default() -> UpdateSecurityHubConfigurationInputBuilder
fn default() -> UpdateSecurityHubConfigurationInputBuilder
source§impl PartialEq for UpdateSecurityHubConfigurationInputBuilder
impl PartialEq for UpdateSecurityHubConfigurationInputBuilder
source§fn eq(&self, other: &UpdateSecurityHubConfigurationInputBuilder) -> bool
fn eq(&self, other: &UpdateSecurityHubConfigurationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateSecurityHubConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateSecurityHubConfigurationInputBuilder
impl RefUnwindSafe for UpdateSecurityHubConfigurationInputBuilder
impl Send for UpdateSecurityHubConfigurationInputBuilder
impl Sync for UpdateSecurityHubConfigurationInputBuilder
impl Unpin for UpdateSecurityHubConfigurationInputBuilder
impl UnwindSafe for UpdateSecurityHubConfigurationInputBuilder
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