Skip to main content

license_versions

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

Overview

Namelicense_versions
TypeResource
Idaws.license_manager.license_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
licensesarrayLicense details.
next_tokenstringToken for the next set of results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_license_versionsselectregionLists all versions of the specified license.
create_license_versioninsertregion, LicenseArn, LicenseName, ProductName, Issuer, HomeRegion, Validity, Entitlements, ConsumptionConfiguration, ClientTokenCreates a new version of the specified license.

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

Lists all versions of the specified license.

SELECT
licenses,
next_token
FROM aws.license_manager.license_versions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new version of the specified license.

INSERT INTO aws.license_manager.license_versions (
LicenseArn,
LicenseName,
ProductName,
Issuer,
HomeRegion,
Validity,
LicenseMetadata,
Entitlements,
ConsumptionConfiguration,
Status,
ClientToken,
SourceVersion,
ResetUsage,
region
)
SELECT
'{{ LicenseArn }}' /* required */,
'{{ LicenseName }}' /* required */,
'{{ ProductName }}' /* required */,
'{{ Issuer }}' /* required */,
'{{ HomeRegion }}' /* required */,
'{{ Validity }}' /* required */,
'{{ LicenseMetadata }}',
'{{ Entitlements }}' /* required */,
'{{ ConsumptionConfiguration }}' /* required */,
'{{ Status }}',
'{{ ClientToken }}' /* required */,
'{{ SourceVersion }}',
{{ ResetUsage }},
'{{ region }}'
RETURNING
license_arn,
status,
version
;