libZSservicesZSamazonka-securityhubZSamazonka-securityhub
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SecurityHub.DescribeHub

Description

Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub.

Synopsis

Creating a Request

data DescribeHub Source #

See: newDescribeHub smart constructor.

Constructors

DescribeHub' 

Fields

Instances

Instances details
Eq DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Read DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Show DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Generic DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Associated Types

type Rep DescribeHub :: Type -> Type #

NFData DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Methods

rnf :: DescribeHub -> () #

Hashable DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

AWSRequest DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Associated Types

type AWSResponse DescribeHub #

ToHeaders DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Methods

toHeaders :: DescribeHub -> [Header] #

ToPath DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

ToQuery DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

type Rep DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

type Rep DescribeHub = D1 ('MetaData "DescribeHub" "Amazonka.SecurityHub.DescribeHub" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "DescribeHub'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hubArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse DescribeHub Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

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.

Constructors

DescribeHubResponse' 

Fields

  • autoEnableControls :: Maybe Bool

    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.

  • subscribedAt :: Maybe Text

    The date and time when Security Hub was enabled in the account.

  • hubArn :: Maybe Text

    The ARN of the Hub resource that was retrieved.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Read DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Show DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Generic DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Associated Types

type Rep DescribeHubResponse :: Type -> Type #

NFData DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

Methods

rnf :: DescribeHubResponse -> () #

type Rep DescribeHubResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.DescribeHub

type Rep DescribeHubResponse = D1 ('MetaData "DescribeHubResponse" "Amazonka.SecurityHub.DescribeHub" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "DescribeHubResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoEnableControls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "subscribedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "hubArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.