checkout_borrow_license
¶
checkout_borrow_license(
license_arn: Arn,
entitlements: EntitlementDataList,
digital_signature_method: DigitalSignatureMethod,
client_token: ClientToken,
*,
config_overrides: Optional[LicenseManagerClientConfig] = None,
node_id: Optional[String] = None,
checkout_metadata: Optional[MetadataList] = None,
) -> CheckoutBorrowLicenseResponse
Checks out the specified license for offline use.
Parameters:
-
license_arn(Arn) –Amazon Resource Name (ARN) of the license. The license must use the borrow consumption configuration.
-
entitlements(EntitlementDataList) –License entitlements. Partial checkouts are not supported.
-
digital_signature_method(DigitalSignatureMethod) –Digital signature method. The possible value is JSON Web Signature (JWS) algorithm PS384. For more information, see RFC 7518 Digital Signature with RSASSA-PSS.
-
node_id(Optional[String], default:None) –Node ID.
-
checkout_metadata(Optional[MetadataList], default:None) –Information about constraints.
-
client_token(ClientToken) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
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.
-
EntitlementNotAllowedException–The entitlement is not allowed.
-
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.