get_entitlements
¶
get_entitlements(
product_code: ProductCode,
*,
config_overrides: Optional[MarketplaceEntitlementServiceClientConfig] = None,
filter: Optional[GetEntitlementFilters] = None,
next_token: Optional[NonEmptyString] = None,
max_results: Optional[PageSizeInteger] = None,
) -> GetEntitlementsResult
GetEntitlements retrieves entitlement values for a given product. The results can be filtered based on customer identifier, AWS account ID, license ARN, or product dimensions.
Parameters:
-
product_code(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.
-
filter(Optional[GetEntitlementFilters], default:None) –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.
CustomerIdentifierandCustomerAWSAccountIdare mutually exclusive parameters. You must use one or the other, but not both in the same request.If you're migrating an existing integration, use Account Feeds to map
CustomerIdentifiertoCustomerAWSAccountId, and Agreements Feeds to mapCustomerAWSAccountIdandLicenseArn. -
next_token(Optional[NonEmptyString], default:None) –For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult.
-
max_results(Optional[PageSizeInteger], default:None) –The maximum number of items to retrieve from the GetEntitlements operation. For pagination, use the NextToken field in subsequent calls to GetEntitlements.
Raises:
-
InternalServiceErrorException–An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.
-
InvalidParameterException–One or more parameters in your request was invalid.
-
ThrottlingException–The calls to the GetEntitlements API are throttled.
-
UnknownServiceError–The service returned an error code this client does not model.