Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data Disable = Disable' {
- accountIds :: Maybe [Text]
- resourceTypes :: Maybe [ResourceScanType]
- newDisable :: Disable
- disable_accountIds :: Lens' Disable (Maybe [Text])
- disable_resourceTypes :: Lens' Disable (Maybe [ResourceScanType])
- data DisableResponse = DisableResponse' {
- failedAccounts :: Maybe [FailedAccount]
- httpStatus :: Int
- accounts :: [Account]
- newDisableResponse :: Int -> DisableResponse
- disableResponse_failedAccounts :: Lens' DisableResponse (Maybe [FailedAccount])
- disableResponse_httpStatus :: Lens' DisableResponse Int
- disableResponse_accounts :: Lens' DisableResponse [Account]
Creating a Request
See: newDisable
smart constructor.
Disable' | |
|
Instances
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.
DisableResponse' | |
|
Instances
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.