LicenseManager.Client.
checkout_license
(**kwargs)¶Checks out the specified license.
Note
If the account that created the license is the same that is performing the check out, you must specify the account as the beneficiary.
See also: AWS API Documentation
Request Syntax
response = client.checkout_license(
ProductSKU='string',
CheckoutType='PROVISIONAL'|'PERPETUAL',
KeyFingerprint='string',
Entitlements=[
{
'Name': 'string',
'Value': 'string',
'Unit': 'Count'|'None'|'Seconds'|'Microseconds'|'Milliseconds'|'Bytes'|'Kilobytes'|'Megabytes'|'Gigabytes'|'Terabytes'|'Bits'|'Kilobits'|'Megabits'|'Gigabits'|'Terabits'|'Percent'|'Bytes/Second'|'Kilobytes/Second'|'Megabytes/Second'|'Gigabytes/Second'|'Terabytes/Second'|'Bits/Second'|'Kilobits/Second'|'Megabits/Second'|'Gigabits/Second'|'Terabits/Second'|'Count/Second'
},
],
ClientToken='string',
Beneficiary='string',
NodeId='string'
)
[REQUIRED]
Product SKU.
[REQUIRED]
Checkout type.
[REQUIRED]
Key fingerprint identifying the license.
[REQUIRED]
License entitlements.
Data associated with an entitlement resource.
Entitlement data name.
Entitlement data value.
Entitlement data unit.
[REQUIRED]
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
dict
Response Syntax
{
'CheckoutType': 'PROVISIONAL'|'PERPETUAL',
'LicenseConsumptionToken': 'string',
'EntitlementsAllowed': [
{
'Name': 'string',
'Value': 'string',
'Unit': 'Count'|'None'|'Seconds'|'Microseconds'|'Milliseconds'|'Bytes'|'Kilobytes'|'Megabytes'|'Gigabytes'|'Terabytes'|'Bits'|'Kilobits'|'Megabits'|'Gigabits'|'Terabits'|'Percent'|'Bytes/Second'|'Kilobytes/Second'|'Megabytes/Second'|'Gigabytes/Second'|'Terabytes/Second'|'Bits/Second'|'Kilobits/Second'|'Megabits/Second'|'Gigabits/Second'|'Terabits/Second'|'Count/Second'
},
],
'SignedToken': 'string',
'NodeId': 'string',
'IssuedAt': 'string',
'Expiration': 'string',
'LicenseArn': 'string'
}
Response Structure
(dict) --
CheckoutType (string) --
Checkout type.
LicenseConsumptionToken (string) --
License consumption token.
EntitlementsAllowed (list) --
Allowed license entitlements.
(dict) --
Data associated with an entitlement resource.
Name (string) --
Entitlement data name.
Value (string) --
Entitlement data value.
Unit (string) --
Entitlement data unit.
SignedToken (string) --
Signed token.
NodeId (string) --
Node ID.
IssuedAt (string) --
Date and time at which the license checkout is issued.
Expiration (string) --
Date and time at which the license checkout expires.
LicenseArn (string) --
Amazon Resource Name (ARN) of the checkout license.
Exceptions
LicenseManager.Client.exceptions.ValidationException
LicenseManager.Client.exceptions.InvalidParameterValueException
LicenseManager.Client.exceptions.ResourceNotFoundException
LicenseManager.Client.exceptions.NoEntitlementsAllowedException
LicenseManager.Client.exceptions.UnsupportedDigitalSignatureMethodException
LicenseManager.Client.exceptions.RedirectException
LicenseManager.Client.exceptions.AuthorizationException
LicenseManager.Client.exceptions.AccessDeniedException
LicenseManager.Client.exceptions.RateLimitExceededException
LicenseManager.Client.exceptions.ServerInternalException