pub struct EnableSecurityHub { /* 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.
-
CIS Amazon Web Services Foundations
-
Amazon Web Services Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the 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 EnableSecurityHub
impl EnableSecurityHub
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<EnableSecurityHub, AwsResponseRetryClassifier>, SdkError<EnableSecurityHubError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<EnableSecurityHub, AwsResponseRetryClassifier>, SdkError<EnableSecurityHubError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError>>
pub async fn send(
self
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError>>
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.
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.
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
.
Trait Implementations§
source§impl Clone for EnableSecurityHub
impl Clone for EnableSecurityHub
source§fn clone(&self) -> EnableSecurityHub
fn clone(&self) -> EnableSecurityHub
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more