Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data EnableSecurityHub = EnableSecurityHub' {}
- newEnableSecurityHub :: EnableSecurityHub
- enableSecurityHub_enableDefaultStandards :: Lens' EnableSecurityHub (Maybe Bool)
- enableSecurityHub_tags :: Lens' EnableSecurityHub (Maybe (HashMap Text Text))
- data EnableSecurityHubResponse = EnableSecurityHubResponse' {
- httpStatus :: Int
- newEnableSecurityHubResponse :: Int -> EnableSecurityHubResponse
- enableSecurityHubResponse_httpStatus :: Lens' EnableSecurityHubResponse Int
Creating a Request
data EnableSecurityHub Source #
See: newEnableSecurityHub
smart constructor.
EnableSecurityHub' | |
|
Instances
newEnableSecurityHub :: EnableSecurityHub Source #
Create a value of EnableSecurityHub
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:enableDefaultStandards:EnableSecurityHub'
, enableSecurityHub_enableDefaultStandards
- 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
.
$sel:tags:EnableSecurityHub'
, enableSecurityHub_tags
- The tags to add to the hub resource when you enable Security Hub.
Request Lenses
enableSecurityHub_enableDefaultStandards :: Lens' EnableSecurityHub (Maybe Bool) Source #
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
.
enableSecurityHub_tags :: Lens' EnableSecurityHub (Maybe (HashMap Text Text)) Source #
The tags to add to the hub resource when you enable Security Hub.
Destructuring the Response
data EnableSecurityHubResponse Source #
See: newEnableSecurityHubResponse
smart constructor.
EnableSecurityHubResponse' | |
|
Instances
newEnableSecurityHubResponse Source #
Create a value of EnableSecurityHubResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:EnableSecurityHubResponse'
, enableSecurityHubResponse_httpStatus
- The response's http status code.
Response Lenses
enableSecurityHubResponse_httpStatus :: Lens' EnableSecurityHubResponse Int Source #
The response's http status code.