amazonka-pricing-2.0: Amazon Price List Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pricing.GetProducts

Description

Returns a list of all products that match the filter criteria.

This operation returns paginated results.

Synopsis

Creating a Request

data GetProducts Source #

See: newGetProducts smart constructor.

Constructors

GetProducts' 

Fields

  • filters :: Maybe [Filter]

    The list of filters that limit the returned products. only products that match all filters are returned.

  • formatVersion :: Maybe Text

    The format version that you want the response to be in.

    Valid values are: aws_v1

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • nextToken :: Maybe Text

    The pagination token that indicates the next set of results that you want to retrieve.

  • serviceCode :: Text

    The code for the service whose products you want to retrieve.

Instances

Instances details
ToJSON GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

ToHeaders GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Methods

toHeaders :: GetProducts -> [Header] #

ToPath GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

ToQuery GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

AWSPager GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

AWSRequest GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Associated Types

type AWSResponse GetProducts #

Generic GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Associated Types

type Rep GetProducts :: Type -> Type #

Read GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Show GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

NFData GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Methods

rnf :: GetProducts -> () #

Eq GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Hashable GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type AWSResponse GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProducts = D1 ('MetaData "GetProducts" "Amazonka.Pricing.GetProducts" "amazonka-pricing-2.0-2qV8x2ufXzQ7VdGqV3aokJ" 'False) (C1 ('MetaCons "GetProducts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "formatVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serviceCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newGetProducts 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.

GetProducts, getProducts_formatVersion - The format version that you want the response to be in.

Valid values are: aws_v1

$sel:maxResults:GetProducts', getProducts_maxResults - The maximum number of results to return in the response.

GetProducts, getProducts_nextToken - The pagination token that indicates the next set of results that you want to retrieve.

GetProducts, getProducts_serviceCode - The code for the service whose products you want to retrieve.

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_maxResults :: Lens' GetProducts (Maybe Natural) Source #

The maximum number of results to return in the response.

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 Text Source #

The code for the service whose products you want to retrieve.

Destructuring the Response

data GetProductsResponse Source #

See: newGetProductsResponse smart constructor.

Constructors

GetProductsResponse' 

Fields

  • formatVersion :: Maybe Text

    The format version of the response. For example, aws_v1.

  • nextToken :: Maybe Text

    The pagination token that indicates the next set of results to retrieve.

  • priceList :: Maybe [Text]

    The list of products that match your filters. The list contains both the product metadata and the price information.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Associated Types

type Rep GetProductsResponse :: Type -> Type #

Read GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Show GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

NFData GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Methods

rnf :: GetProductsResponse -> () #

Eq GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProductsResponse = D1 ('MetaData "GetProductsResponse" "Amazonka.Pricing.GetProducts" "amazonka-pricing-2.0-2qV8x2ufXzQ7VdGqV3aokJ" 'False) (C1 ('MetaCons "GetProductsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "formatVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "priceList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

GetProducts, getProductsResponse_formatVersion - The format version of the response. For example, aws_v1.

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.