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 portfolios in the catalog.
This operation returns paginated results.
Synopsis
- data ListPortfolios = ListPortfolios' {}
- newListPortfolios :: ListPortfolios
- listPortfolios_acceptLanguage :: Lens' ListPortfolios (Maybe Text)
- listPortfolios_pageToken :: Lens' ListPortfolios (Maybe Text)
- listPortfolios_pageSize :: Lens' ListPortfolios (Maybe Natural)
- data ListPortfoliosResponse = ListPortfoliosResponse' {}
- newListPortfoliosResponse :: Int -> ListPortfoliosResponse
- listPortfoliosResponse_nextPageToken :: Lens' ListPortfoliosResponse (Maybe Text)
- listPortfoliosResponse_portfolioDetails :: Lens' ListPortfoliosResponse (Maybe [PortfolioDetail])
- listPortfoliosResponse_httpStatus :: Lens' ListPortfoliosResponse Int
Creating a Request
data ListPortfolios Source #
See: newListPortfolios
smart constructor.
Instances
newListPortfolios :: ListPortfolios Source #
Create a value of ListPortfolios
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:acceptLanguage:ListPortfolios'
, listPortfolios_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:pageToken:ListPortfolios'
, listPortfolios_pageToken
- The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:pageSize:ListPortfolios'
, listPortfolios_pageSize
- The maximum number of items to return with this call.
Request Lenses
listPortfolios_acceptLanguage :: Lens' ListPortfolios (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
listPortfolios_pageToken :: Lens' ListPortfolios (Maybe Text) Source #
The page token for the next set of results. To retrieve the first set of results, use null.
listPortfolios_pageSize :: Lens' ListPortfolios (Maybe Natural) Source #
The maximum number of items to return with this call.
Destructuring the Response
data ListPortfoliosResponse Source #
See: newListPortfoliosResponse
smart constructor.
ListPortfoliosResponse' | |
|
Instances
newListPortfoliosResponse Source #
Create a value of ListPortfoliosResponse
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:nextPageToken:ListPortfoliosResponse'
, listPortfoliosResponse_nextPageToken
- The page token to use to retrieve the next set of results. If there are
no additional results, this value is null.
$sel:portfolioDetails:ListPortfoliosResponse'
, listPortfoliosResponse_portfolioDetails
- Information about the portfolios.
$sel:httpStatus:ListPortfoliosResponse'
, listPortfoliosResponse_httpStatus
- The response's http status code.
Response Lenses
listPortfoliosResponse_nextPageToken :: Lens' ListPortfoliosResponse (Maybe Text) Source #
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
listPortfoliosResponse_portfolioDetails :: Lens' ListPortfoliosResponse (Maybe [PortfolioDetail]) Source #
Information about the portfolios.
listPortfoliosResponse_httpStatus :: Lens' ListPortfoliosResponse Int Source #
The response's http status code.