pub struct EnableSecurityHub<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> EnableSecurityHub<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> EnableSecurityHub<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError>> where
R::Policy: SmithyRetryPolicy<EnableSecurityHubInputOperationOutputAlias, EnableSecurityHubOutput, EnableSecurityHubError, EnableSecurityHubInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<EnableSecurityHubOutput, SdkError<EnableSecurityHubError>> where
R::Policy: SmithyRetryPolicy<EnableSecurityHubInputOperationOutputAlias, EnableSecurityHubOutput, EnableSecurityHubError, EnableSecurityHubInputOperationRetryAlias>,
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.
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
.
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
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for EnableSecurityHub<C, M, R>
impl<C, M, R> Send for EnableSecurityHub<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for EnableSecurityHub<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for EnableSecurityHub<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for EnableSecurityHub<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more