Struct aws_sdk_securityhub::operation::enable_security_hub::builders::EnableSecurityHubInputBuilder
source · #[non_exhaustive]pub struct EnableSecurityHubInputBuilder { /* private fields */ }
Expand description
A builder for EnableSecurityHubInput
.
Implementations§
source§impl EnableSecurityHubInputBuilder
impl EnableSecurityHubInputBuilder
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags to add to the hub resource when you enable Security Hub.
The tags to add to the hub resource when you enable Security Hub.
The tags to add to the hub resource when you enable Security Hub.
sourcepub fn enable_default_standards(self, input: bool) -> Self
pub fn enable_default_standards(self, input: bool) -> Self
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn set_enable_default_standards(self, input: Option<bool>) -> Self
pub fn set_enable_default_standards(self, input: Option<bool>) -> Self
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn get_enable_default_standards(&self) -> &Option<bool>
pub fn get_enable_default_standards(&self) -> &Option<bool>
Whether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for EnableDefaultStandards
, it is set to true
. To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
sourcepub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
pub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
This field, used when enabling Security Hub, specifies 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.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn set_control_finding_generator(
self,
input: Option<ControlFindingGenerator>
) -> Self
pub fn set_control_finding_generator( self, input: Option<ControlFindingGenerator> ) -> Self
This field, used when enabling Security Hub, specifies 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.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
pub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
This field, used when enabling Security Hub, specifies 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.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn build(self) -> Result<EnableSecurityHubInput, BuildError>
pub fn build(self) -> Result<EnableSecurityHubInput, BuildError>
Consumes the builder and constructs a EnableSecurityHubInput
.
source§impl EnableSecurityHubInputBuilder
impl EnableSecurityHubInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableSecurityHubInputBuilder
impl Clone for EnableSecurityHubInputBuilder
source§fn clone(&self) -> EnableSecurityHubInputBuilder
fn clone(&self) -> EnableSecurityHubInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EnableSecurityHubInputBuilder
impl Default for EnableSecurityHubInputBuilder
source§fn default() -> EnableSecurityHubInputBuilder
fn default() -> EnableSecurityHubInputBuilder
source§impl PartialEq for EnableSecurityHubInputBuilder
impl PartialEq for EnableSecurityHubInputBuilder
source§fn eq(&self, other: &EnableSecurityHubInputBuilder) -> bool
fn eq(&self, other: &EnableSecurityHubInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.