Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists all available Amazon Inspector rules packages.
This operation returns paginated results.
Synopsis
- listRulesPackages :: ListRulesPackages
- data ListRulesPackages
- lrpNextToken :: Lens' ListRulesPackages (Maybe Text)
- lrpMaxResults :: Lens' ListRulesPackages (Maybe Int)
- listRulesPackagesResponse :: Int -> ListRulesPackagesResponse
- data ListRulesPackagesResponse
- lrprsNextToken :: Lens' ListRulesPackagesResponse (Maybe Text)
- lrprsResponseStatus :: Lens' ListRulesPackagesResponse Int
- lrprsRulesPackageARNs :: Lens' ListRulesPackagesResponse [Text]
Creating a Request
listRulesPackages :: ListRulesPackages Source #
Creates a value of ListRulesPackages
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrpNextToken
- 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.lrpMaxResults
- 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.
data ListRulesPackages Source #
See: listRulesPackages
smart constructor.
Instances
Request Lenses
lrpNextToken :: 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.
lrpMaxResults :: 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
listRulesPackagesResponse Source #
Creates a value of ListRulesPackagesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrprsNextToken
- 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.lrprsResponseStatus
- -- | The response status code.lrprsRulesPackageARNs
- The list of ARNs that specifies the rules packages returned by the action.
data ListRulesPackagesResponse Source #
See: listRulesPackagesResponse
smart constructor.
Instances
Response Lenses
lrprsNextToken :: 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.
lrprsResponseStatus :: Lens' ListRulesPackagesResponse Int Source #
- - | The response status code.
lrprsRulesPackageARNs :: Lens' ListRulesPackagesResponse [Text] Source #
The list of ARNs that specifies the rules packages returned by the action.