create_license
(**kwargs)¶Creates a license.
See also: AWS API Documentation
Request Syntax
response = client.create_license(
LicenseName='string',
ProductName='string',
ProductSKU='string',
Issuer={
'Name': 'string',
'SignKey': 'string'
},
HomeRegion='string',
Validity={
'Begin': 'string',
'End': 'string'
},
Entitlements=[
{
'Name': 'string',
'Value': 'string',
'MaxCount': 123,
'Overage': True|False,
'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',
'AllowCheckIn': True|False
},
],
Beneficiary='string',
ConsumptionConfiguration={
'RenewType': 'None'|'Weekly'|'Monthly',
'ProvisionalConfiguration': {
'MaxTimeToLiveInMinutes': 123
},
'BorrowConfiguration': {
'AllowEarlyCheckIn': True|False,
'MaxTimeToLiveInMinutes': 123
}
},
LicenseMetadata=[
{
'Name': 'string',
'Value': 'string'
},
],
ClientToken='string'
)
[REQUIRED]
License name.
[REQUIRED]
Product name.
[REQUIRED]
Product SKU.
[REQUIRED]
License issuer.
Issuer name.
Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
[REQUIRED]
Home Region for the license.
[REQUIRED]
Date and time range during which the license is valid, in ISO8601-UTC format.
Start of the time range.
End of the time range.
[REQUIRED]
License entitlements.
Describes a resource entitled for use with a license.
Entitlement name.
Entitlement resource. Use only if the unit is None.
Maximum entitlement count. Use if the unit is not None.
Indicates whether overages are allowed.
Entitlement unit.
Indicates whether check-ins are allowed.
[REQUIRED]
License beneficiary.
[REQUIRED]
Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
Renewal frequency.
Details about a provisional configuration.
Maximum time for the provisional configuration, in minutes.
Details about a borrow configuration.
Indicates whether early check-ins are allowed.
Maximum time for the borrow configuration, in minutes.
Information about the license.
Describes key/value pairs.
The key name.
The value.
[REQUIRED]
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
dict
Response Syntax
{
'LicenseArn': 'string',
'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED',
'Version': 'string'
}
Response Structure
(dict) --
LicenseArn (string) --
Amazon Resource Name (ARN) of the license.
Status (string) --
License status.
Version (string) --
License version.
Exceptions
LicenseManager.Client.exceptions.ValidationException
LicenseManager.Client.exceptions.InvalidParameterValueException
LicenseManager.Client.exceptions.RedirectException
LicenseManager.Client.exceptions.AuthorizationException
LicenseManager.Client.exceptions.AccessDeniedException
LicenseManager.Client.exceptions.RateLimitExceededException
LicenseManager.Client.exceptions.ServerInternalException