Skip to main content

license_configurations

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

Overview

Namelicense_configurations
TypeResource
Idaws.license_manager.license_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
automated_discovery_informationobjectAutomated discovery information.
consumed_license_summary_listarraySummaries of the licenses consumed by resources.
consumed_licensesinteger (int64)Number of licenses assigned to resources.
descriptionstringDescription of the license configuration.
disassociate_when_not_foundbooleanWhen true, disassociates a resource when software is uninstalled.
license_configuration_arnstringAmazon Resource Name (ARN) of the license configuration.
license_configuration_idstringUnique ID for the license configuration.
license_countinteger (int64)Number of available licenses.
license_count_hard_limitbooleanSets the number of available licenses as a hard limit.
license_counting_typestringDimension for which the licenses are counted. (vCPU, Instance, Core, Socket)
license_expiryinteger (int64)License Expiry.
license_rulesarrayLicense rules.
managed_resource_summary_listarraySummaries of the managed resources.
namestringName of the license configuration.
owner_account_idstringAccount ID of the owner of the license configuration.
product_information_listarrayProduct information.
statusstringLicense configuration status.
tagsarrayTags for the license configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_license_configurationselectregionGets detailed information about the specified license configuration.
list_license_configurationsselectregionLists the license configurations for your account.
create_license_configurationinsertregion, LicenseCountingTypeCreates a license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.
update_license_configurationupdateregion, LicenseConfigurationArnModifies the attributes of an existing license configuration.
delete_license_configurationdeleteregionDeletes the specified license configuration. You cannot delete a license configuration that is in 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 configuration.

SELECT
automated_discovery_information,
consumed_license_summary_list,
consumed_licenses,
description,
disassociate_when_not_found,
license_configuration_arn,
license_configuration_id,
license_count,
license_count_hard_limit,
license_counting_type,
license_expiry,
license_rules,
managed_resource_summary_list,
name,
owner_account_id,
product_information_list,
status,
tags
FROM aws.license_manager.license_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.

INSERT INTO aws.license_manager.license_configurations (
Name,
Description,
LicenseCountingType,
LicenseCount,
LicenseCountHardLimit,
LicenseRules,
Tags,
DisassociateWhenNotFound,
ProductInformationList,
LicenseExpiry,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ LicenseCountingType }}' /* required */,
{{ LicenseCount }},
{{ LicenseCountHardLimit }},
'{{ LicenseRules }}',
'{{ Tags }}',
{{ DisassociateWhenNotFound }},
'{{ ProductInformationList }}',
{{ LicenseExpiry }},
'{{ region }}'
RETURNING
license_configuration_arn
;

UPDATE examples

Modifies the attributes of an existing license configuration.

UPDATE aws.license_manager.license_configurations
SET
LicenseConfigurationArn = '{{ LicenseConfigurationArn }}',
LicenseConfigurationStatus = '{{ LicenseConfigurationStatus }}',
LicenseRules = '{{ LicenseRules }}',
LicenseCount = {{ LicenseCount }},
LicenseCountHardLimit = {{ LicenseCountHardLimit }},
Name = '{{ Name }}',
Description = '{{ Description }}',
ProductInformationList = '{{ ProductInformationList }}',
DisassociateWhenNotFound = {{ DisassociateWhenNotFound }},
LicenseExpiry = {{ LicenseExpiry }}
WHERE
region = '{{ region }}' --required
AND LicenseConfigurationArn = '{{ LicenseConfigurationArn }}' --required;

DELETE examples

Deletes the specified license configuration. You cannot delete a license configuration that is in use.

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