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 |
Returns a list of packages.
Synopsis
- data ListPackages = ListPackages' {}
- newListPackages :: ListPackages
- listPackages_nextToken :: Lens' ListPackages (Maybe Text)
- listPackages_maxResults :: Lens' ListPackages (Maybe Natural)
- data ListPackagesResponse = ListPackagesResponse' {
- packages :: Maybe [PackageListItem]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListPackagesResponse :: Int -> ListPackagesResponse
- listPackagesResponse_packages :: Lens' ListPackagesResponse (Maybe [PackageListItem])
- listPackagesResponse_nextToken :: Lens' ListPackagesResponse (Maybe Text)
- listPackagesResponse_httpStatus :: Lens' ListPackagesResponse Int
Creating a Request
data ListPackages Source #
See: newListPackages
smart constructor.
Instances
newListPackages :: ListPackages Source #
Create a value of ListPackages
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:ListPackages'
, listPackages_nextToken
- Specify the pagination token from a previous request to retrieve the
next page of results.
$sel:maxResults:ListPackages'
, listPackages_maxResults
- The maximum number of packages to return in one page of results.
Request Lenses
listPackages_nextToken :: Lens' ListPackages (Maybe Text) Source #
Specify the pagination token from a previous request to retrieve the next page of results.
listPackages_maxResults :: Lens' ListPackages (Maybe Natural) Source #
The maximum number of packages to return in one page of results.
Destructuring the Response
data ListPackagesResponse Source #
See: newListPackagesResponse
smart constructor.
ListPackagesResponse' | |
|
Instances
newListPackagesResponse Source #
Create a value of ListPackagesResponse
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:packages:ListPackagesResponse'
, listPackagesResponse_packages
- A list of packages.
$sel:nextToken:ListPackages'
, listPackagesResponse_nextToken
- A pagination token that's included if more results are available.
$sel:httpStatus:ListPackagesResponse'
, listPackagesResponse_httpStatus
- The response's http status code.
Response Lenses
listPackagesResponse_packages :: Lens' ListPackagesResponse (Maybe [PackageListItem]) Source #
A list of packages.
listPackagesResponse_nextToken :: Lens' ListPackagesResponse (Maybe Text) Source #
A pagination token that's included if more results are available.
listPackagesResponse_httpStatus :: Lens' ListPackagesResponse Int Source #
The response's http status code.