Skip to main content

licenses

Creates, updates, deletes, gets or lists a licenses resource.

Overview

Namelicenses
TypeResource
Idaws.license_manager.licenses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
beneficiarystringLicense beneficiary.
consumption_configurationobjectConfiguration for consumption of the license.
create_timestringLicense creation time. (pattern: <code>^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z|[+-](?:2[ 0-3]|[0-1][0-9]):[0-5][0-9])+$</code>)
entitlementsarrayLicense entitlements.
home_regionstringHome Region of the license.
issuerobjectLicense issuer.
license_arnstringAmazon Resource Name (ARN) of the license. (pattern: <code>^arn:aws[a-zA-Z-]*:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$</code>)
license_metadataarrayLicense metadata.
license_namestringLicense name.
product_namestringProduct name.
product_skustringProduct SKU.
statusstringLicense status. (AVAILABLE, PENDING_AVAILABLE, DEACTIVATED, SUSPENDED, EXPIRED, PENDING_DELETE, DELETED)
validityobjectDate and time range during which the license is valid, in ISO8601-UTC format.
versionstringLicense version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_licenseselectregionGets detailed information about the specified license.
list_licensesselectregionLists the licenses for your account.
create_licenseinsertregion, LicenseName, ProductName, ProductSKU, Issuer, HomeRegion, Validity, Entitlements, Beneficiary, ConsumptionConfiguration, ClientTokenCreates a license.
delete_licensedeleteregionDeletes the specified license.
checkout_borrow_licenseexecregion, LicenseArn, Entitlements, DigitalSignatureMethod, ClientTokenChecks out the specified license for offline use.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets detailed information about the specified license.

SELECT
beneficiary,
consumption_configuration,
create_time,
entitlements,
home_region,
issuer,
license_arn,
license_metadata,
license_name,
product_name,
product_sku,
status,
validity,
version
FROM aws.license_manager.licenses
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a license.

INSERT INTO aws.license_manager.licenses (
LicenseName,
ProductName,
ProductSKU,
Issuer,
HomeRegion,
Validity,
Entitlements,
Beneficiary,
ConsumptionConfiguration,
LicenseMetadata,
ClientToken,
Tags,
region
)
SELECT
'{{ LicenseName }}' /* required */,
'{{ ProductName }}' /* required */,
'{{ ProductSKU }}' /* required */,
'{{ Issuer }}' /* required */,
'{{ HomeRegion }}' /* required */,
'{{ Validity }}' /* required */,
'{{ Entitlements }}' /* required */,
'{{ Beneficiary }}' /* required */,
'{{ ConsumptionConfiguration }}' /* required */,
'{{ LicenseMetadata }}',
'{{ ClientToken }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
license_arn,
status,
version
;

DELETE examples

Deletes the specified license.

DELETE FROM aws.license_manager.licenses
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Checks out the specified license for offline use.

EXEC aws.license_manager.licenses.checkout_borrow_license
@region='{{ region }}' --required
@@json=
'{
"LicenseArn": "{{ LicenseArn }}",
"Entitlements": "{{ Entitlements }}",
"DigitalSignatureMethod": "{{ DigitalSignatureMethod }}",
"NodeId": "{{ NodeId }}",
"CheckoutMetadata": "{{ CheckoutMetadata }}",
"ClientToken": "{{ ClientToken }}"
}'
;