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 |
Gets information about the products to which the caller has access.
Synopsis
- data SearchProducts = SearchProducts' {}
- newSearchProducts :: SearchProducts
- searchProducts_filters :: Lens' SearchProducts (Maybe (HashMap ProductViewFilterBy [Text]))
- searchProducts_sortOrder :: Lens' SearchProducts (Maybe SortOrder)
- searchProducts_acceptLanguage :: Lens' SearchProducts (Maybe Text)
- searchProducts_pageToken :: Lens' SearchProducts (Maybe Text)
- searchProducts_pageSize :: Lens' SearchProducts (Maybe Natural)
- searchProducts_sortBy :: Lens' SearchProducts (Maybe ProductViewSortBy)
- data SearchProductsResponse = SearchProductsResponse' {}
- newSearchProductsResponse :: Int -> SearchProductsResponse
- searchProductsResponse_nextPageToken :: Lens' SearchProductsResponse (Maybe Text)
- searchProductsResponse_productViewAggregations :: Lens' SearchProductsResponse (Maybe (HashMap Text [ProductViewAggregationValue]))
- searchProductsResponse_productViewSummaries :: Lens' SearchProductsResponse (Maybe [ProductViewSummary])
- searchProductsResponse_httpStatus :: Lens' SearchProductsResponse Int
Creating a Request
data SearchProducts Source #
See: newSearchProducts
smart constructor.
SearchProducts' | |
|
Instances
newSearchProducts :: SearchProducts Source #
Create a value of SearchProducts
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:filters:SearchProducts'
, searchProducts_filters
- The search filters. If no search filters are specified, the output
includes all products to which the caller has access.
$sel:sortOrder:SearchProducts'
, searchProducts_sortOrder
- The sort order. If no value is specified, the results are not sorted.
$sel:acceptLanguage:SearchProducts'
, searchProducts_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:pageToken:SearchProducts'
, searchProducts_pageToken
- The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:pageSize:SearchProducts'
, searchProducts_pageSize
- The maximum number of items to return with this call.
$sel:sortBy:SearchProducts'
, searchProducts_sortBy
- The sort field. If no value is specified, the results are not sorted.
Request Lenses
searchProducts_filters :: Lens' SearchProducts (Maybe (HashMap ProductViewFilterBy [Text])) Source #
The search filters. If no search filters are specified, the output includes all products to which the caller has access.
searchProducts_sortOrder :: Lens' SearchProducts (Maybe SortOrder) Source #
The sort order. If no value is specified, the results are not sorted.
searchProducts_acceptLanguage :: Lens' SearchProducts (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
searchProducts_pageToken :: Lens' SearchProducts (Maybe Text) Source #
The page token for the next set of results. To retrieve the first set of results, use null.
searchProducts_pageSize :: Lens' SearchProducts (Maybe Natural) Source #
The maximum number of items to return with this call.
searchProducts_sortBy :: Lens' SearchProducts (Maybe ProductViewSortBy) Source #
The sort field. If no value is specified, the results are not sorted.
Destructuring the Response
data SearchProductsResponse Source #
See: newSearchProductsResponse
smart constructor.
SearchProductsResponse' | |
|
Instances
newSearchProductsResponse Source #
Create a value of SearchProductsResponse
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:SearchProductsResponse'
, searchProductsResponse_nextPageToken
- The page token to use to retrieve the next set of results. If there are
no additional results, this value is null.
$sel:productViewAggregations:SearchProductsResponse'
, searchProductsResponse_productViewAggregations
- The product view aggregations.
$sel:productViewSummaries:SearchProductsResponse'
, searchProductsResponse_productViewSummaries
- Information about the product views.
$sel:httpStatus:SearchProductsResponse'
, searchProductsResponse_httpStatus
- The response's http status code.
Response Lenses
searchProductsResponse_nextPageToken :: Lens' SearchProductsResponse (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.
searchProductsResponse_productViewAggregations :: Lens' SearchProductsResponse (Maybe (HashMap Text [ProductViewAggregationValue])) Source #
The product view aggregations.
searchProductsResponse_productViewSummaries :: Lens' SearchProductsResponse (Maybe [ProductViewSummary]) Source #
Information about the product views.
searchProductsResponse_httpStatus :: Lens' SearchProductsResponse Int Source #
The response's http status code.