libZSservicesZSamazonka-pricingZSamazonka-pricing
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • nextToken :: Maybe Text

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

  • serviceCode :: Maybe Text

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

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

Instances

Instances details
Eq GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Read GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Show GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Generic GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Associated Types

type Rep GetProducts :: Type -> Type #

NFData GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Methods

rnf :: GetProducts -> () #

Hashable GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

ToJSON 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 #

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

type Rep GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProducts = D1 ('MetaData "GetProducts" "Amazonka.Pricing.GetProducts" "libZSservicesZSamazonka-pricingZSamazonka-pricing" '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 "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "serviceCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse GetProducts Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

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.

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
Eq GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Read GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Show GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Generic GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Associated Types

type Rep GetProductsResponse :: Type -> Type #

NFData GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

Methods

rnf :: GetProductsResponse -> () #

type Rep GetProductsResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetProducts

type Rep GetProductsResponse = D1 ('MetaData "GetProductsResponse" "Amazonka.Pricing.GetProducts" "libZSservicesZSamazonka-pricingZSamazonka-pricing" '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:

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