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 |
Returns a list of all products that match the filter criteria.
This operation returns paginated results.
Synopsis
- data GetProducts = GetProducts' {
- filters :: Maybe [Filter]
- formatVersion :: Maybe Text
- nextToken :: Maybe Text
- serviceCode :: Maybe Text
- maxResults :: Maybe Natural
- newGetProducts :: GetProducts
- getProducts_filters :: Lens' GetProducts (Maybe [Filter])
- getProducts_formatVersion :: Lens' GetProducts (Maybe Text)
- getProducts_nextToken :: Lens' GetProducts (Maybe Text)
- getProducts_serviceCode :: Lens' GetProducts (Maybe Text)
- getProducts_maxResults :: Lens' GetProducts (Maybe Natural)
- data GetProductsResponse = GetProductsResponse' {}
- newGetProductsResponse :: Int -> GetProductsResponse
- getProductsResponse_formatVersion :: Lens' GetProductsResponse (Maybe Text)
- getProductsResponse_nextToken :: Lens' GetProductsResponse (Maybe Text)
- getProductsResponse_priceList :: Lens' GetProductsResponse (Maybe [Text])
- getProductsResponse_httpStatus :: Lens' GetProductsResponse Int
Creating a Request
data GetProducts Source #
See: newGetProducts
smart constructor.
GetProducts' | |
|
Instances
newGetProducts :: GetProducts Source #
Create a value of GetProducts
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:GetProducts'
, getProducts_filters
- The list of filters that limit the returned products. only products that
match all filters are returned.
$sel:formatVersion:GetProducts'
, getProducts_formatVersion
- The format version that you want the response to be in.
Valid values are: aws_v1
$sel:nextToken:GetProducts'
, getProducts_nextToken
- The pagination token that indicates the next set of results that you
want to retrieve.
$sel:serviceCode:GetProducts'
, getProducts_serviceCode
- The code for the service whose products you want to retrieve.
$sel:maxResults:GetProducts'
, getProducts_maxResults
- The maximum number of results to return in the response.
Request Lenses
getProducts_filters :: Lens' GetProducts (Maybe [Filter]) Source #
The list of filters that limit the returned products. only products that match all filters are returned.
getProducts_formatVersion :: Lens' GetProducts (Maybe Text) Source #
The format version that you want the response to be in.
Valid values are: aws_v1
getProducts_nextToken :: Lens' GetProducts (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
getProducts_serviceCode :: Lens' GetProducts (Maybe Text) Source #
The code for the service whose products you want to retrieve.
getProducts_maxResults :: Lens' GetProducts (Maybe Natural) Source #
The maximum number of results to return in the response.
Destructuring the Response
data GetProductsResponse Source #
See: newGetProductsResponse
smart constructor.
GetProductsResponse' | |
|
Instances
newGetProductsResponse Source #
Create a value of GetProductsResponse
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:formatVersion:GetProducts'
, getProductsResponse_formatVersion
- The format version of the response. For example, aws_v1.
$sel:nextToken:GetProducts'
, getProductsResponse_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:priceList:GetProductsResponse'
, getProductsResponse_priceList
- The list of products that match your filters. The list contains both the
product metadata and the price information.
$sel:httpStatus:GetProductsResponse'
, getProductsResponse_httpStatus
- The response's http status code.
Response Lenses
getProductsResponse_formatVersion :: Lens' GetProductsResponse (Maybe Text) Source #
The format version of the response. For example, aws_v1.
getProductsResponse_nextToken :: Lens' GetProductsResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
getProductsResponse_priceList :: Lens' GetProductsResponse (Maybe [Text]) Source #
The list of products that match your filters. The list contains both the product metadata and the price information.
getProductsResponse_httpStatus :: Lens' GetProductsResponse Int Source #
The response's http status code.