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 |
Returns details about the Hub resource in your account, including the
HubArn
and the time when you enabled Security Hub.
Synopsis
- data DescribeHub = DescribeHub' {}
- newDescribeHub :: DescribeHub
- describeHub_hubArn :: Lens' DescribeHub (Maybe Text)
- data DescribeHubResponse = DescribeHubResponse' {
- autoEnableControls :: Maybe Bool
- subscribedAt :: Maybe Text
- hubArn :: Maybe Text
- httpStatus :: Int
- newDescribeHubResponse :: Int -> DescribeHubResponse
- describeHubResponse_autoEnableControls :: Lens' DescribeHubResponse (Maybe Bool)
- describeHubResponse_subscribedAt :: Lens' DescribeHubResponse (Maybe Text)
- describeHubResponse_hubArn :: Lens' DescribeHubResponse (Maybe Text)
- describeHubResponse_httpStatus :: Lens' DescribeHubResponse Int
Creating a Request
data DescribeHub Source #
See: newDescribeHub
smart constructor.
Instances
newDescribeHub :: DescribeHub Source #
Create a value of DescribeHub
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:hubArn:DescribeHub'
, describeHub_hubArn
- The ARN of the Hub resource to retrieve.
Request Lenses
describeHub_hubArn :: Lens' DescribeHub (Maybe Text) Source #
The ARN of the Hub resource to retrieve.
Destructuring the Response
data DescribeHubResponse Source #
See: newDescribeHubResponse
smart constructor.
DescribeHubResponse' | |
|
Instances
newDescribeHubResponse Source #
Create a value of DescribeHubResponse
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:autoEnableControls:DescribeHubResponse'
, describeHubResponse_autoEnableControls
- Whether to automatically enable new controls when they are added to
standards that are enabled.
If set to true
, then new controls for enabled standards are enabled
automatically. If set to false
, then new controls are not enabled.
$sel:subscribedAt:DescribeHubResponse'
, describeHubResponse_subscribedAt
- The date and time when Security Hub was enabled in the account.
$sel:hubArn:DescribeHub'
, describeHubResponse_hubArn
- The ARN of the Hub resource that was retrieved.
$sel:httpStatus:DescribeHubResponse'
, describeHubResponse_httpStatus
- The response's http status code.
Response Lenses
describeHubResponse_autoEnableControls :: Lens' DescribeHubResponse (Maybe Bool) Source #
Whether to automatically enable new controls when they are added to standards that are enabled.
If set to true
, then new controls for enabled standards are enabled
automatically. If set to false
, then new controls are not enabled.
describeHubResponse_subscribedAt :: Lens' DescribeHubResponse (Maybe Text) Source #
The date and time when Security Hub was enabled in the account.
describeHubResponse_hubArn :: Lens' DescribeHubResponse (Maybe Text) Source #
The ARN of the Hub resource that was retrieved.
describeHubResponse_httpStatus :: Lens' DescribeHubResponse Int Source #
The response's http status code.