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 |
Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
Synopsis
- data Enable = Enable' {}
- newEnable :: NonEmpty ResourceScanType -> Enable
- enable_accountIds :: Lens' Enable (Maybe [Text])
- enable_clientToken :: Lens' Enable (Maybe Text)
- enable_resourceTypes :: Lens' Enable (NonEmpty ResourceScanType)
- data EnableResponse = EnableResponse' {
- failedAccounts :: Maybe [FailedAccount]
- httpStatus :: Int
- accounts :: [Account]
- newEnableResponse :: Int -> EnableResponse
- enableResponse_failedAccounts :: Lens' EnableResponse (Maybe [FailedAccount])
- enableResponse_httpStatus :: Lens' EnableResponse Int
- enableResponse_accounts :: Lens' EnableResponse [Account]
Creating a Request
See: newEnable
smart constructor.
Enable' | |
|
Instances
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_resourceTypes :: Lens' Enable (NonEmpty ResourceScanType) Source #
The resource scan types you want to enable.
Destructuring the Response
data EnableResponse Source #
See: newEnableResponse
smart constructor.
EnableResponse' | |
|
Instances
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.