| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ServiceCatalog.ListPortfolios
Description
Lists all portfolios in the catalog.
This operation returns paginated results.
Synopsis
- data ListPortfolios = ListPortfolios' {}
- newListPortfolios :: ListPortfolios
- listPortfolios_acceptLanguage :: Lens' ListPortfolios (Maybe Text)
- listPortfolios_pageSize :: Lens' ListPortfolios (Maybe Natural)
- listPortfolios_pageToken :: Lens' ListPortfolios (Maybe Text)
- 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.
Constructors
| ListPortfolios' | |
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:pageSize:ListPortfolios', listPortfolios_pageSize - The maximum number of items to return with this call.
$sel:pageToken:ListPortfolios', listPortfolios_pageToken - The page token for the next set of results. To retrieve the first set of
results, use null.
Request Lenses
listPortfolios_acceptLanguage :: Lens' ListPortfolios (Maybe Text) Source #
The language code.
en- English (default)jp- Japanesezh- Chinese
listPortfolios_pageSize :: Lens' ListPortfolios (Maybe Natural) Source #
The maximum number of items to return with this call.
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.
Destructuring the Response
data ListPortfoliosResponse Source #
See: newListPortfoliosResponse smart constructor.
Constructors
| ListPortfoliosResponse' | |
Fields
| |
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.