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.Disable

Description

Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.

Synopsis

Creating a Request

data Disable Source #

See: newDisable smart constructor.

Constructors

Disable' 

Fields

Instances

Instances details
ToJSON Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

ToHeaders Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

toHeaders :: Disable -> [Header] #

ToPath Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

toPath :: Disable -> ByteString #

ToQuery Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

AWSRequest Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Associated Types

type AWSResponse Disable #

Generic Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Associated Types

type Rep Disable :: Type -> Type #

Methods

from :: Disable -> Rep Disable x #

to :: Rep Disable x -> Disable #

Read Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Show Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

NFData Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

rnf :: Disable -> () #

Eq Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

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

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

Hashable Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

hashWithSalt :: Int -> Disable -> Int #

hash :: Disable -> Int #

type AWSResponse Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

type Rep Disable Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

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

newDisable :: Disable Source #

Create a value of Disable 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:Disable', disable_accountIds - An array of account IDs you want to disable Amazon Inspector scans for.

$sel:resourceTypes:Disable', disable_resourceTypes - The resource scan types you want to disable.

Request Lenses

disable_accountIds :: Lens' Disable (Maybe [Text]) Source #

An array of account IDs you want to disable Amazon Inspector scans for.

disable_resourceTypes :: Lens' Disable (Maybe [ResourceScanType]) Source #

The resource scan types you want to disable.

Destructuring the Response

data DisableResponse Source #

See: newDisableResponse smart constructor.

Constructors

DisableResponse' 

Fields

  • failedAccounts :: Maybe [FailedAccount]

    Information on any accounts for which Amazon Inspector scans could not be disabled. 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 disabled. Details are provided for each account.

Instances

Instances details
Generic DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Associated Types

type Rep DisableResponse :: Type -> Type #

Read DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Show DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

NFData DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

Methods

rnf :: DisableResponse -> () #

Eq DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

type Rep DisableResponse Source # 
Instance details

Defined in Amazonka.Inspector2.Disable

type Rep DisableResponse = D1 ('MetaData "DisableResponse" "Amazonka.Inspector2.Disable" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "DisableResponse'" '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]))))

newDisableResponse Source #

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

$sel:httpStatus:DisableResponse', disableResponse_httpStatus - The response's http status code.

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

Response Lenses

disableResponse_failedAccounts :: Lens' DisableResponse (Maybe [FailedAccount]) Source #

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

disableResponse_httpStatus :: Lens' DisableResponse Int Source #

The response's http status code.

disableResponse_accounts :: Lens' DisableResponse [Account] Source #

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