Skip to main content

licenses

Creates, updates, deletes or gets a license resource or lists licenses in a region

Overview

Namelicenses
TypeResource
DescriptionResource Type definition for AWS::LicenseManager::License
Idaws.licensemanager.licenses

Fields

NameDatatypeDescription
product_skustringProductSKU of the license.
issuerobject
license_namestringName for the created license.
product_namestringProduct name for the created license.
home_regionstringHome region for the created license.
validityobject
entitlementsarray
beneficiarystringBeneficiary of the license.
consumption_configurationobject
license_metadataarray
license_arnstringAmazon Resource Name is a unique name for each resource.
statusstring
versionstringThe version of the license.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLicenseName, ProductName, Issuer, HomeRegion, Validity, ConsumptionConfiguration, Entitlements, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all licenses in a region.

SELECT
region,
product_sku,
issuer,
license_name,
product_name,
home_region,
validity,
entitlements,
beneficiary,
consumption_configuration,
license_metadata,
license_arn,
status,
version
FROM aws.licensemanager.licenses
WHERE region = 'us-east-1';

Gets all properties from an individual license.

SELECT
region,
product_sku,
issuer,
license_name,
product_name,
home_region,
validity,
entitlements,
beneficiary,
consumption_configuration,
license_metadata,
license_arn,
status,
version
FROM aws.licensemanager.licenses
WHERE region = 'us-east-1' AND data__Identifier = '<LicenseArn>';

INSERT example

Use the following StackQL query and manifest file to create a new license resource, using stack-deploy.

/*+ create */
INSERT INTO aws.licensemanager.licenses (
Issuer,
LicenseName,
ProductName,
HomeRegion,
Validity,
Entitlements,
ConsumptionConfiguration,
region
)
SELECT
'{{ Issuer }}',
'{{ LicenseName }}',
'{{ ProductName }}',
'{{ HomeRegion }}',
'{{ Validity }}',
'{{ Entitlements }}',
'{{ ConsumptionConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.licensemanager.licenses
WHERE data__Identifier = '<LicenseArn>'
AND region = 'us-east-1';

Permissions

To operate on the licenses resource, the following permissions are required:

Create

license-manager:CreateLicense

Read

license-manager:GetLicense

Update

license-manager:CreateLicenseVersion

Delete

license-manager:DeleteLicense

List

license-manager:ListLicenses