Struct aws_sdk_securityhub::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder
source · pub struct EnableSecurityHubFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to EnableSecurityHub
.
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the EnableSecurityHub
operation to enable Security Hub, you also automatically enable the following standards:
-
Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0
-
Amazon Web Services Foundational Security Best Practices
Other standards are not automatically enabled.
To opt out of automatically enabled standards, set EnableDefaultStandards
to false
.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards
operation. To disable a standard, use the BatchDisableStandards
operation.
To learn more, see the setup information in the Security Hub User Guide.
Implementations§
source§impl EnableSecurityHubFluentBuilder
impl EnableSecurityHubFluentBuilder
sourcepub fn as_input(&self) -> &EnableSecurityHubInputBuilder
pub fn as_input(&self) -> &EnableSecurityHubInputBuilder
Access the EnableSecurityHub as a reference.
sourcepub async fn send(
self
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError, HttpResponse>>
pub async fn send( self ) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<EnableSecurityHubOutput, EnableSecurityHubError, Self>
pub fn customize( self ) -> CustomizableOperation<EnableSecurityHubOutput, EnableSecurityHubError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
Trait Implementations§
source§impl Clone for EnableSecurityHubFluentBuilder
impl Clone for EnableSecurityHubFluentBuilder
source§fn clone(&self) -> EnableSecurityHubFluentBuilder
fn clone(&self) -> EnableSecurityHubFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more