| 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.SearchProducts
Description
Gets information about the products to which the caller has access.
Synopsis
- data SearchProducts = SearchProducts' {}
- newSearchProducts :: SearchProducts
- searchProducts_acceptLanguage :: Lens' SearchProducts (Maybe Text)
- searchProducts_filters :: Lens' SearchProducts (Maybe (HashMap ProductViewFilterBy [Text]))
- searchProducts_pageSize :: Lens' SearchProducts (Maybe Natural)
- searchProducts_pageToken :: Lens' SearchProducts (Maybe Text)
- searchProducts_sortBy :: Lens' SearchProducts (Maybe ProductViewSortBy)
- searchProducts_sortOrder :: Lens' SearchProducts (Maybe SortOrder)
- 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.
Constructors
| SearchProducts' | |
Fields
| |
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:acceptLanguage:SearchProducts', searchProducts_acceptLanguage - The language code.
en- English (default)jp- Japanesezh- Chinese
$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:pageSize:SearchProducts', searchProducts_pageSize - The maximum number of items to return with this call.
$sel:pageToken:SearchProducts', searchProducts_pageToken - The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:sortBy:SearchProducts', searchProducts_sortBy - The sort field. If no value is specified, the results are not sorted.
$sel:sortOrder:SearchProducts', searchProducts_sortOrder - The sort order. If no value is specified, the results are not sorted.
Request Lenses
searchProducts_acceptLanguage :: Lens' SearchProducts (Maybe Text) Source #
The language code.
en- English (default)jp- Japanesezh- Chinese
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_pageSize :: Lens' SearchProducts (Maybe Natural) Source #
The maximum number of items to return with this call.
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_sortBy :: Lens' SearchProducts (Maybe ProductViewSortBy) Source #
The sort field. If no value is specified, the results are not sorted.
searchProducts_sortOrder :: Lens' SearchProducts (Maybe SortOrder) Source #
The sort order. If no value is specified, the results are not sorted.
Destructuring the Response
data SearchProductsResponse Source #
See: newSearchProductsResponse smart constructor.
Constructors
| SearchProductsResponse' | |
Fields
| |
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.