libZSservicesZSamazonka-marketplace-entitlementZSamazonka-marketplace-entitlement
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.MarketplaceEntitlement.GetEntitlements

Description

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

This operation returns paginated results.

Synopsis

Creating a Request

data GetEntitlements Source #

The GetEntitlementsRequest contains parameters for the GetEntitlements operation.

See: newGetEntitlements smart constructor.

Constructors

GetEntitlements' 

Fields

  • nextToken :: Maybe Text

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

  • filter' :: Maybe (HashMap GetEntitlementFilterName (NonEmpty Text))

    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.

  • maxResults :: Maybe Int

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

  • productCode :: Text

    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.

Instances

Instances details
Eq GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Read GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Show GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Generic GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Associated Types

type Rep GetEntitlements :: Type -> Type #

NFData GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Methods

rnf :: GetEntitlements -> () #

Hashable GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

ToJSON GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

AWSPager GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

AWSRequest GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Associated Types

type AWSResponse GetEntitlements #

ToHeaders GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

ToPath GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

ToQuery GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

type Rep GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

type Rep GetEntitlements = D1 ('MetaData "GetEntitlements" "Amazonka.MarketplaceEntitlement.GetEntitlements" "libZSservicesZSamazonka-marketplace-entitlementZSamazonka-marketplace-entitlement" 'False) (C1 ('MetaCons "GetEntitlements'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap GetEntitlementFilterName (NonEmpty Text))))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "productCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetEntitlements Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

newGetEntitlements Source #

Create a value of GetEntitlements 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:nextToken:GetEntitlements', getEntitlements_nextToken - For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult.

$sel:filter':GetEntitlements', getEntitlements_filter - 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.

$sel:maxResults:GetEntitlements', getEntitlements_maxResults - The maximum number of items to retrieve from the GetEntitlements operation. For pagination, use the NextToken field in subsequent calls to GetEntitlements.

$sel:productCode:GetEntitlements', getEntitlements_productCode - 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.

Request Lenses

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

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

getEntitlements_filter :: Lens' GetEntitlements (Maybe (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.

getEntitlements_maxResults :: 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.

getEntitlements_productCode :: 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

data GetEntitlementsResponse Source #

The GetEntitlementsRequest contains results from the GetEntitlements operation.

See: newGetEntitlementsResponse smart constructor.

Constructors

GetEntitlementsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • entitlements :: Maybe [Entitlement]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Read GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Show GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Generic GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Associated Types

type Rep GetEntitlementsResponse :: Type -> Type #

NFData GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

Methods

rnf :: GetEntitlementsResponse -> () #

type Rep GetEntitlementsResponse Source # 
Instance details

Defined in Amazonka.MarketplaceEntitlement.GetEntitlements

type Rep GetEntitlementsResponse = D1 ('MetaData "GetEntitlementsResponse" "Amazonka.MarketplaceEntitlement.GetEntitlements" "libZSservicesZSamazonka-marketplace-entitlementZSamazonka-marketplace-entitlement" 'False) (C1 ('MetaCons "GetEntitlementsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "entitlements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Entitlement])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetEntitlementsResponse Source #

Create a value of GetEntitlementsResponse 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:nextToken:GetEntitlements', getEntitlementsResponse_nextToken - 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.

$sel:entitlements:GetEntitlementsResponse', getEntitlementsResponse_entitlements - 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.

$sel:httpStatus:GetEntitlementsResponse', getEntitlementsResponse_httpStatus - The response's http status code.

Response Lenses

getEntitlementsResponse_nextToken :: 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.

getEntitlementsResponse_entitlements :: Lens' GetEntitlementsResponse (Maybe [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.