amazonka-pricing-1.6.0: Amazon Price List Service SDK.

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

Network.AWS.Pricing.GetProducts

Contents

Description

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

This operation returns paginated results.

Synopsis

Creating a Request

getProducts :: GetProducts Source #

Creates a value of GetProducts with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gpFilters - The list of filters that limit the returned products. only products that match all filters are returned.
  • gpFormatVersion - The format version that you want the response to be in. Valid values are: aws_v1
  • gpNextToken - The pagination token that indicates the next set of results that you want to retrieve.
  • gpServiceCode - The code for the service whose products you want to retrieve.
  • gpMaxResults - The maximum number of results to return in the response.

data GetProducts Source #

See: getProducts smart constructor.

Instances

Eq GetProducts Source # 
Data GetProducts Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetProducts -> c GetProducts #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetProducts #

toConstr :: GetProducts -> Constr #

dataTypeOf :: GetProducts -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetProducts) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetProducts) #

gmapT :: (forall b. Data b => b -> b) -> GetProducts -> GetProducts #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetProducts -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetProducts -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetProducts -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetProducts -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetProducts -> m GetProducts #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetProducts -> m GetProducts #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetProducts -> m GetProducts #

Read GetProducts Source # 
Show GetProducts Source # 
Generic GetProducts Source # 

Associated Types

type Rep GetProducts :: * -> * #

Hashable GetProducts Source # 
ToJSON GetProducts Source # 
NFData GetProducts Source # 

Methods

rnf :: GetProducts -> () #

AWSPager GetProducts Source # 
AWSRequest GetProducts Source # 
ToHeaders GetProducts Source # 

Methods

toHeaders :: GetProducts -> [Header] #

ToPath GetProducts Source # 
ToQuery GetProducts Source # 
type Rep GetProducts Source # 
type Rep GetProducts = D1 * (MetaData "GetProducts" "Network.AWS.Pricing.GetProducts" "amazonka-pricing-1.6.0-VdAw69MpMwFno1bpRT25z" False) (C1 * (MetaCons "GetProducts'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gpFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Filter]))) (S1 * (MetaSel (Just Symbol "_gpFormatVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gpServiceCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))))))
type Rs GetProducts Source # 

Request Lenses

gpFilters :: Lens' GetProducts [Filter] Source #

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

gpFormatVersion :: Lens' GetProducts (Maybe Text) Source #

The format version that you want the response to be in. Valid values are: aws_v1

gpNextToken :: Lens' GetProducts (Maybe Text) Source #

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

gpServiceCode :: Lens' GetProducts (Maybe Text) Source #

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

gpMaxResults :: Lens' GetProducts (Maybe Natural) Source #

The maximum number of results to return in the response.

Destructuring the Response

getProductsResponse Source #

Creates a value of GetProductsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gprsFormatVersion - The format version of the response. For example, aws_v1.
  • gprsNextToken - The pagination token that indicates the next set of results to retrieve.
  • gprsPriceList - The list of products that match your filters. The list contains both the product metadata and the price information.
  • gprsResponseStatus - -- | The response status code.

data GetProductsResponse Source #

See: getProductsResponse smart constructor.

Instances

Eq GetProductsResponse Source # 
Data GetProductsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetProductsResponse -> c GetProductsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetProductsResponse #

toConstr :: GetProductsResponse -> Constr #

dataTypeOf :: GetProductsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetProductsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetProductsResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetProductsResponse -> GetProductsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetProductsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetProductsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetProductsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetProductsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetProductsResponse -> m GetProductsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetProductsResponse -> m GetProductsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetProductsResponse -> m GetProductsResponse #

Read GetProductsResponse Source # 
Show GetProductsResponse Source # 
Generic GetProductsResponse Source # 
NFData GetProductsResponse Source # 

Methods

rnf :: GetProductsResponse -> () #

type Rep GetProductsResponse Source # 
type Rep GetProductsResponse = D1 * (MetaData "GetProductsResponse" "Network.AWS.Pricing.GetProducts" "amazonka-pricing-1.6.0-VdAw69MpMwFno1bpRT25z" False) (C1 * (MetaCons "GetProductsResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gprsFormatVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gprsPriceList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_gprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gprsFormatVersion :: Lens' GetProductsResponse (Maybe Text) Source #

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

gprsNextToken :: Lens' GetProductsResponse (Maybe Text) Source #

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

gprsPriceList :: Lens' GetProductsResponse [Text] Source #

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

gprsResponseStatus :: Lens' GetProductsResponse Int Source #

  • - | The response status code.