checkout_license
async
¶
checkout_license(
product_sku: String,
checkout_type: CheckoutType,
key_fingerprint: String,
entitlements: EntitlementDataList,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
beneficiary: Optional[String] = None,
node_id: Optional[String] = None,
) -> CheckoutLicenseResponse
Checks out the specified license.
If the account that created the license is the same that is performing the check out, you must specify the account as the beneficiary.
Parameters:
-
product_sku(String) –Product SKU.
-
checkout_type(CheckoutType) –Checkout type.
-
key_fingerprint(String) –Key fingerprint identifying the license.
-
entitlements(EntitlementDataList) –License entitlements.
-
client_token(ClientToken) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
beneficiary(Optional[String], default:None) –License beneficiary.
-
node_id(Optional[String], default:None) –Node ID.
Raises:
-
AccessDeniedException–Access to resource denied.
-
AuthorizationException–The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
NoEntitlementsAllowedException–There are no entitlements found for this license, or the entitlement maximum count is reached.
-
RateLimitExceededException–Too many requests have been submitted. Try again after a brief wait.
-
RedirectException–This is not the correct Region for the resource. Try again.
-
ResourceNotFoundException–The resource cannot be found.
-
ServerInternalException–The server experienced an internal error. Try again.
-
UnsupportedDigitalSignatureMethodException–The digital signature method is unsupported. Try your request again.
-
ValidationException–The provided input is not valid. Try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.