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 |
List all available bundles.
This operation returns paginated results.
Synopsis
- data ListBundles = ListBundles' {}
- newListBundles :: ListBundles
- listBundles_nextToken :: Lens' ListBundles (Maybe Text)
- listBundles_maxResults :: Lens' ListBundles (Maybe Int)
- data ListBundlesResponse = ListBundlesResponse' {
- bundleList :: Maybe [BundleDetails]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListBundlesResponse :: Int -> ListBundlesResponse
- listBundlesResponse_bundleList :: Lens' ListBundlesResponse (Maybe [BundleDetails])
- listBundlesResponse_nextToken :: Lens' ListBundlesResponse (Maybe Text)
- listBundlesResponse_httpStatus :: Lens' ListBundlesResponse Int
Creating a Request
data ListBundles Source #
Request structure to request all available bundles.
See: newListBundles
smart constructor.
Instances
newListBundles :: ListBundles Source #
Create a value of ListBundles
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:ListBundles'
, listBundles_nextToken
- Pagination token. Set to null to start listing bundles from start. If
non-null pagination token is returned in a result, then pass its value
in here in another request to list more bundles.
$sel:maxResults:ListBundles'
, listBundles_maxResults
- Maximum number of records to list in a single response.
Request Lenses
listBundles_nextToken :: Lens' ListBundles (Maybe Text) Source #
Pagination token. Set to null to start listing bundles from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more bundles.
listBundles_maxResults :: Lens' ListBundles (Maybe Int) Source #
Maximum number of records to list in a single response.
Destructuring the Response
data ListBundlesResponse Source #
Result structure contains a list of all available bundles with details.
See: newListBundlesResponse
smart constructor.
ListBundlesResponse' | |
|
Instances
newListBundlesResponse Source #
Create a value of ListBundlesResponse
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:bundleList:ListBundlesResponse'
, listBundlesResponse_bundleList
- A list of bundles.
$sel:nextToken:ListBundles'
, listBundlesResponse_nextToken
- Pagination token. If non-null pagination token is returned in a result,
then pass its value in another request to fetch more entries.
$sel:httpStatus:ListBundlesResponse'
, listBundlesResponse_httpStatus
- The response's http status code.
Response Lenses
listBundlesResponse_bundleList :: Lens' ListBundlesResponse (Maybe [BundleDetails]) Source #
A list of bundles.
listBundlesResponse_nextToken :: Lens' ListBundlesResponse (Maybe Text) Source #
Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.
listBundlesResponse_httpStatus :: Lens' ListBundlesResponse Int Source #
The response's http status code.