amazonka-inspector2-2.0: Amazon Inspector2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Inspector2.Enable

Description

Enables Amazon Inspector scans for one or more Amazon Web Services accounts.

Synopsis

Creating a Request

data Enable Source #

See: newEnable smart constructor.

Constructors

Enable' 

Fields

Instances

Instances details
ToJSON Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

ToHeaders Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

toHeaders :: Enable -> [Header] #

ToPath Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

toPath :: Enable -> ByteString #

ToQuery Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

AWSRequest Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Associated Types

type AWSResponse Enable #

Generic Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Associated Types

type Rep Enable :: Type -> Type #

Methods

from :: Enable -> Rep Enable x #

to :: Rep Enable x -> Enable #

Read Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Show Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

NFData Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

rnf :: Enable -> () #

Eq Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

(==) :: Enable -> Enable -> Bool #

(/=) :: Enable -> Enable -> Bool #

Hashable Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

hashWithSalt :: Int -> Enable -> Int #

hash :: Enable -> Int #

type AWSResponse Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

type Rep Enable Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

type Rep Enable = D1 ('MetaData "Enable" "Amazonka.Inspector2.Enable" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "Enable'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ResourceScanType)))))

newEnable Source #

Create a value of Enable 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:accountIds:Enable', enable_accountIds - A list of account IDs you want to enable Amazon Inspector scans for.

$sel:clientToken:Enable', enable_clientToken - The idempotency token for the request.

$sel:resourceTypes:Enable', enable_resourceTypes - The resource scan types you want to enable.

Request Lenses

enable_accountIds :: Lens' Enable (Maybe [Text]) Source #

A list of account IDs you want to enable Amazon Inspector scans for.

enable_clientToken :: Lens' Enable (Maybe Text) Source #

The idempotency token for the request.

enable_resourceTypes :: Lens' Enable (NonEmpty ResourceScanType) Source #

The resource scan types you want to enable.

Destructuring the Response

data EnableResponse Source #

See: newEnableResponse smart constructor.

Constructors

EnableResponse' 

Fields

  • failedAccounts :: Maybe [FailedAccount]

    Information on any accounts for which Amazon Inspector scans could not be enabled. Details are provided for each account.

  • httpStatus :: Int

    The response's http status code.

  • accounts :: [Account]

    Information on the accounts that have had Amazon Inspector scans successfully enabled. Details are provided for each account.

Instances

Instances details
Generic EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Associated Types

type Rep EnableResponse :: Type -> Type #

Read EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Show EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

NFData EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

Methods

rnf :: EnableResponse -> () #

Eq EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

type Rep EnableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Enable

type Rep EnableResponse = D1 ('MetaData "EnableResponse" "Amazonka.Inspector2.Enable" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "EnableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedAccount])) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "accounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Account]))))

newEnableResponse Source #

Create a value of EnableResponse 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:failedAccounts:EnableResponse', enableResponse_failedAccounts - Information on any accounts for which Amazon Inspector scans could not be enabled. Details are provided for each account.

$sel:httpStatus:EnableResponse', enableResponse_httpStatus - The response's http status code.

$sel:accounts:EnableResponse', enableResponse_accounts - Information on the accounts that have had Amazon Inspector scans successfully enabled. Details are provided for each account.

Response Lenses

enableResponse_failedAccounts :: Lens' EnableResponse (Maybe [FailedAccount]) Source #

Information on any accounts for which Amazon Inspector scans could not be enabled. Details are provided for each account.

enableResponse_httpStatus :: Lens' EnableResponse Int Source #

The response's http status code.

enableResponse_accounts :: Lens' EnableResponse [Account] Source #

Information on the accounts that have had Amazon Inspector scans successfully enabled. Details are provided for each account.