amazonka-marketplace-entitlement-1.5.0: Amazon Marketplace Entitlement Service SDK.

Copyright(c) 2013-2017 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.MarketplaceEntitlement.GetEntitlements

Contents

Description

GetEntitlements retrieves entitlement values for a given product. The results can be filtered based on customer identifier or product dimensions.

Synopsis

Creating a Request

getEntitlements Source #

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

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

  • geNextToken - For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult.
  • geFilter - Filter is used to return entitlements for a specific customer or for a specific dimension. Filters are described as keys mapped to a lists of values. Filtered requests are unioned for each value in the value list, and then intersected for each filter key.
  • geMaxResults - The maximum number of items to retrieve from the GetEntitlements operation. For pagination, use the NextToken field in subsequent calls to GetEntitlements.
  • geProductCode - Product code is used to uniquely identify a product in AWS Marketplace. The product code will be provided by AWS Marketplace when the product listing is created.

data GetEntitlements Source #

The GetEntitlementsRequest contains parameters for the GetEntitlements operation.

See: getEntitlements smart constructor.

Instances

Eq GetEntitlements Source # 
Data GetEntitlements Source # 

Methods

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

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

toConstr :: GetEntitlements -> Constr #

dataTypeOf :: GetEntitlements -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetEntitlements Source # 
Show GetEntitlements Source # 
Generic GetEntitlements Source # 
Hashable GetEntitlements Source # 
ToJSON GetEntitlements Source # 
NFData GetEntitlements Source # 

Methods

rnf :: GetEntitlements -> () #

AWSRequest GetEntitlements Source # 
ToQuery GetEntitlements Source # 
ToPath GetEntitlements Source # 
ToHeaders GetEntitlements Source # 
type Rep GetEntitlements Source # 
type Rep GetEntitlements = D1 (MetaData "GetEntitlements" "Network.AWS.MarketplaceEntitlement.GetEntitlements" "amazonka-marketplace-entitlement-1.5.0-AeSkHbYiOu2kueKVAEpDJ" False) (C1 (MetaCons "GetEntitlements'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_geNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_geFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map GetEntitlementFilterName (List1 Text)))))) ((:*:) (S1 (MetaSel (Just Symbol "_geMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_geProductCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetEntitlements Source # 

Request Lenses

geNextToken :: Lens' GetEntitlements (Maybe Text) Source #

For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult.

geFilter :: Lens' GetEntitlements (HashMap GetEntitlementFilterName (NonEmpty Text)) Source #

Filter is used to return entitlements for a specific customer or for a specific dimension. Filters are described as keys mapped to a lists of values. Filtered requests are unioned for each value in the value list, and then intersected for each filter key.

geMaxResults :: Lens' GetEntitlements (Maybe Int) Source #

The maximum number of items to retrieve from the GetEntitlements operation. For pagination, use the NextToken field in subsequent calls to GetEntitlements.

geProductCode :: Lens' GetEntitlements Text Source #

Product code is used to uniquely identify a product in AWS Marketplace. The product code will be provided by AWS Marketplace when the product listing is created.

Destructuring the Response

getEntitlementsResponse Source #

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

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

  • gersNextToken - For paginated results, use NextToken in subsequent calls to GetEntitlements. If the result contains an empty set of entitlements, NextToken might still be present and should be used.
  • gersEntitlements - The set of entitlements found through the GetEntitlements operation. If the result contains an empty set of entitlements, NextToken might still be present and should be used.
  • gersResponseStatus - -- | The response status code.

data GetEntitlementsResponse Source #

The GetEntitlementsRequest contains results from the GetEntitlements operation.

See: getEntitlementsResponse smart constructor.

Instances

Eq GetEntitlementsResponse Source # 
Data GetEntitlementsResponse Source # 

Methods

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

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

toConstr :: GetEntitlementsResponse -> Constr #

dataTypeOf :: GetEntitlementsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetEntitlementsResponse Source # 
Show GetEntitlementsResponse Source # 
Generic GetEntitlementsResponse Source # 
NFData GetEntitlementsResponse Source # 

Methods

rnf :: GetEntitlementsResponse -> () #

type Rep GetEntitlementsResponse Source # 
type Rep GetEntitlementsResponse = D1 (MetaData "GetEntitlementsResponse" "Network.AWS.MarketplaceEntitlement.GetEntitlements" "amazonka-marketplace-entitlement-1.5.0-AeSkHbYiOu2kueKVAEpDJ" False) (C1 (MetaCons "GetEntitlementsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gersNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gersEntitlements") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Entitlement]))) (S1 (MetaSel (Just Symbol "_gersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gersNextToken :: Lens' GetEntitlementsResponse (Maybe Text) Source #

For paginated results, use NextToken in subsequent calls to GetEntitlements. If the result contains an empty set of entitlements, NextToken might still be present and should be used.

gersEntitlements :: Lens' GetEntitlementsResponse [Entitlement] Source #

The set of entitlements found through the GetEntitlements operation. If the result contains an empty set of entitlements, NextToken might still be present and should be used.