amazonka-marketplace-entitlement-1.6.1: Amazon Marketplace Entitlement 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.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 # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Data GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

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 # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Show GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Generic GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Associated Types

type Rep GetEntitlements :: Type -> Type #

Hashable GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

ToJSON GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

AWSRequest GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Associated Types

type Rs GetEntitlements :: Type #

ToHeaders GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

ToPath GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

ToQuery GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

NFData GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Methods

rnf :: GetEntitlements -> () #

type Rep GetEntitlements Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

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

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

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 # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Data GetEntitlementsResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

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 # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Show GetEntitlementsResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Generic GetEntitlementsResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Associated Types

type Rep GetEntitlementsResponse :: Type -> Type #

NFData GetEntitlementsResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

Methods

rnf :: GetEntitlementsResponse -> () #

type Rep GetEntitlementsResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceEntitlement.GetEntitlements

type Rep GetEntitlementsResponse = D1 (MetaData "GetEntitlementsResponse" "Network.AWS.MarketplaceEntitlement.GetEntitlements" "amazonka-marketplace-entitlement-1.6.1-BTroj57dembIeotbn3nyO1" False) (C1 (MetaCons "GetEntitlementsResponse'" PrefixI True) (S1 (MetaSel (Just "_gersNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gersEntitlements") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Entitlement])) :*: S1 (MetaSel (Just "_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.