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 that the specified product is associated with.
This operation returns paginated results.
Synopsis
- data ListPortfoliosForProduct = ListPortfoliosForProduct' {}
- newListPortfoliosForProduct :: Text -> ListPortfoliosForProduct
- listPortfoliosForProduct_acceptLanguage :: Lens' ListPortfoliosForProduct (Maybe Text)
- listPortfoliosForProduct_pageToken :: Lens' ListPortfoliosForProduct (Maybe Text)
- listPortfoliosForProduct_pageSize :: Lens' ListPortfoliosForProduct (Maybe Natural)
- listPortfoliosForProduct_productId :: Lens' ListPortfoliosForProduct Text
- data ListPortfoliosForProductResponse = ListPortfoliosForProductResponse' {}
- newListPortfoliosForProductResponse :: Int -> ListPortfoliosForProductResponse
- listPortfoliosForProductResponse_nextPageToken :: Lens' ListPortfoliosForProductResponse (Maybe Text)
- listPortfoliosForProductResponse_portfolioDetails :: Lens' ListPortfoliosForProductResponse (Maybe [PortfolioDetail])
- listPortfoliosForProductResponse_httpStatus :: Lens' ListPortfoliosForProductResponse Int
Creating a Request
data ListPortfoliosForProduct Source #
See: newListPortfoliosForProduct
smart constructor.
ListPortfoliosForProduct' | |
|
Instances
newListPortfoliosForProduct Source #
Create a value of ListPortfoliosForProduct
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:ListPortfoliosForProduct'
, listPortfoliosForProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:pageToken:ListPortfoliosForProduct'
, listPortfoliosForProduct_pageToken
- The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:pageSize:ListPortfoliosForProduct'
, listPortfoliosForProduct_pageSize
- The maximum number of items to return with this call.
$sel:productId:ListPortfoliosForProduct'
, listPortfoliosForProduct_productId
- The product identifier.
Request Lenses
listPortfoliosForProduct_acceptLanguage :: Lens' ListPortfoliosForProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
listPortfoliosForProduct_pageToken :: Lens' ListPortfoliosForProduct (Maybe Text) Source #
The page token for the next set of results. To retrieve the first set of results, use null.
listPortfoliosForProduct_pageSize :: Lens' ListPortfoliosForProduct (Maybe Natural) Source #
The maximum number of items to return with this call.
listPortfoliosForProduct_productId :: Lens' ListPortfoliosForProduct Text Source #
The product identifier.
Destructuring the Response
data ListPortfoliosForProductResponse Source #
See: newListPortfoliosForProductResponse
smart constructor.
ListPortfoliosForProductResponse' | |
|
Instances
newListPortfoliosForProductResponse Source #
Create a value of ListPortfoliosForProductResponse
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:ListPortfoliosForProductResponse'
, listPortfoliosForProductResponse_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:ListPortfoliosForProductResponse'
, listPortfoliosForProductResponse_portfolioDetails
- Information about the portfolios.
$sel:httpStatus:ListPortfoliosForProductResponse'
, listPortfoliosForProductResponse_httpStatus
- The response's http status code.
Response Lenses
listPortfoliosForProductResponse_nextPageToken :: Lens' ListPortfoliosForProductResponse (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.
listPortfoliosForProductResponse_portfolioDetails :: Lens' ListPortfoliosForProductResponse (Maybe [PortfolioDetail]) Source #
Information about the portfolios.
listPortfoliosForProductResponse_httpStatus :: Lens' ListPortfoliosForProductResponse Int Source #
The response's http status code.