get_entitlements
async
¶
get_entitlements(
product_code: ProductCode,
*,
config_overrides: Optional[AsyncMarketplaceEntitlementServiceClientConfig] = 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.
Source code in docs_src/capo_marketplace_entitlement_service/_services/async_marketplace_entitlement_service.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | |