Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all available Amazon Inspector rules packages.
This operation returns paginated results.
Synopsis
- data ListRulesPackages = ListRulesPackages' {}
- newListRulesPackages :: ListRulesPackages
- listRulesPackages_nextToken :: Lens' ListRulesPackages (Maybe Text)
- listRulesPackages_maxResults :: Lens' ListRulesPackages (Maybe Int)
- data ListRulesPackagesResponse = ListRulesPackagesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- rulesPackageArns :: [Text]
- newListRulesPackagesResponse :: Int -> ListRulesPackagesResponse
- listRulesPackagesResponse_nextToken :: Lens' ListRulesPackagesResponse (Maybe Text)
- listRulesPackagesResponse_httpStatus :: Lens' ListRulesPackagesResponse Int
- listRulesPackagesResponse_rulesPackageArns :: Lens' ListRulesPackagesResponse [Text]
Creating a Request
data ListRulesPackages Source #
See: newListRulesPackages
smart constructor.
ListRulesPackages' | |
|
Instances
newListRulesPackages :: ListRulesPackages Source #
Create a value of ListRulesPackages
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:nextToken:ListRulesPackages'
, listRulesPackages_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the ListRulesPackages
action. Subsequent calls to the action fill nextToken in the request
with the value of NextToken from the previous response to continue
listing data.
$sel:maxResults:ListRulesPackages'
, listRulesPackages_maxResults
- You can use this parameter to indicate the maximum number of items you
want in the response. The default value is 10. The maximum value is 500.
Request Lenses
listRulesPackages_nextToken :: Lens' ListRulesPackages (Maybe Text) Source #
You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listRulesPackages_maxResults :: Lens' ListRulesPackages (Maybe Int) Source #
You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
Destructuring the Response
data ListRulesPackagesResponse Source #
See: newListRulesPackagesResponse
smart constructor.
ListRulesPackagesResponse' | |
|
Instances
newListRulesPackagesResponse Source #
Create a value of ListRulesPackagesResponse
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:nextToken:ListRulesPackages'
, listRulesPackagesResponse_nextToken
- When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request. If there
is no more data to be listed, this parameter is set to null.
$sel:httpStatus:ListRulesPackagesResponse'
, listRulesPackagesResponse_httpStatus
- The response's http status code.
$sel:rulesPackageArns:ListRulesPackagesResponse'
, listRulesPackagesResponse_rulesPackageArns
- The list of ARNs that specifies the rules packages returned by the
action.
Response Lenses
listRulesPackagesResponse_nextToken :: Lens' ListRulesPackagesResponse (Maybe Text) Source #
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
listRulesPackagesResponse_httpStatus :: Lens' ListRulesPackagesResponse Int Source #
The response's http status code.
listRulesPackagesResponse_rulesPackageArns :: Lens' ListRulesPackagesResponse [Text] Source #
The list of ARNs that specifies the rules packages returned by the action.