| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.ServiceCatalog.SearchProducts
Description
Returns a paginated list all of the Products objects to which the caller has access.
The output of this operation can be used as input for other operations, such as DescribeProductView .
- searchProducts :: SearchProducts
- data SearchProducts
- spFilters :: Lens' SearchProducts (HashMap ProductViewFilterBy [Text])
- spSortOrder :: Lens' SearchProducts (Maybe SortOrder)
- spAcceptLanguage :: Lens' SearchProducts (Maybe Text)
- spPageToken :: Lens' SearchProducts (Maybe Text)
- spPageSize :: Lens' SearchProducts (Maybe Natural)
- spSortBy :: Lens' SearchProducts (Maybe ProductViewSortBy)
- searchProductsResponse :: Int -> SearchProductsResponse
- data SearchProductsResponse
- sprsNextPageToken :: Lens' SearchProductsResponse (Maybe Text)
- sprsProductViewAggregations :: Lens' SearchProductsResponse (HashMap Text [ProductViewAggregationValue])
- sprsProductViewSummaries :: Lens' SearchProductsResponse [ProductViewSummary]
- sprsResponseStatus :: Lens' SearchProductsResponse Int
Creating a Request
searchProducts :: SearchProducts Source #
Creates a value of SearchProducts with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
spFilters- The list of filters with which to limit search results. If no search filters are specified, the output is all the products to which the calling user has access.spSortOrder- The sort order specifier. If no value is specified, results are not sorted.spAcceptLanguage- The language code. *en- English (default) *jp- Japanese *zh- ChinesespPageToken- The page token of the first page retrieved. If null, this retrieves the first page of sizePageSize.spPageSize- The maximum number of items to return in the results. If more results exist than fit in the specifiedPageSize, the value ofNextPageTokenin the response is non-null.spSortBy- The sort field specifier. If no value is specified, results are not sorted.
data SearchProducts Source #
See: searchProducts smart constructor.
Instances
Request Lenses
spFilters :: Lens' SearchProducts (HashMap ProductViewFilterBy [Text]) Source #
The list of filters with which to limit search results. If no search filters are specified, the output is all the products to which the calling user has access.
spSortOrder :: Lens' SearchProducts (Maybe SortOrder) Source #
The sort order specifier. If no value is specified, results are not sorted.
spAcceptLanguage :: Lens' SearchProducts (Maybe Text) Source #
The language code. * en - English (default) * jp - Japanese * zh - Chinese
spPageToken :: Lens' SearchProducts (Maybe Text) Source #
The page token of the first page retrieved. If null, this retrieves the first page of size PageSize .
spPageSize :: Lens' SearchProducts (Maybe Natural) Source #
The maximum number of items to return in the results. If more results exist than fit in the specified PageSize , the value of NextPageToken in the response is non-null.
spSortBy :: Lens' SearchProducts (Maybe ProductViewSortBy) Source #
The sort field specifier. If no value is specified, results are not sorted.
Destructuring the Response
searchProductsResponse Source #
Arguments
| :: Int | |
| -> SearchProductsResponse |
Creates a value of SearchProductsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sprsNextPageToken- The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.sprsProductViewAggregations- A list of the product view aggregation value objects.sprsProductViewSummaries- A list of the product view summary objects.sprsResponseStatus- -- | The response status code.
data SearchProductsResponse Source #
See: searchProductsResponse smart constructor.
Response Lenses
sprsNextPageToken :: Lens' SearchProductsResponse (Maybe Text) Source #
The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
sprsProductViewAggregations :: Lens' SearchProductsResponse (HashMap Text [ProductViewAggregationValue]) Source #
A list of the product view aggregation value objects.
sprsProductViewSummaries :: Lens' SearchProductsResponse [ProductViewSummary] Source #
A list of the product view summary objects.
sprsResponseStatus :: Lens' SearchProductsResponse Int Source #
- - | The response status code.