Skip to main content

license_specifications_for_resources

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

Overview

Namelicense_specifications_for_resources
TypeResource
Idaws.license_manager.license_specifications_for_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ami_association_scopestringScope of AMI associations. The possible value is cross-account.
license_configuration_arnstringAmazon Resource Name (ARN) of the license configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_license_specifications_for_resourceselectregionDescribes the license configurations for the specified resource.
update_license_specifications_for_resourceupdateregion, ResourceArnAdds or removes the specified license configurations for the specified Amazon Web Services resource. You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and CloudFormation templates, as they send license configurations to the operation that creates the resource.

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

Describes the license configurations for the specified resource.

SELECT
ami_association_scope,
license_configuration_arn
FROM aws.license_manager.license_specifications_for_resources
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Adds or removes the specified license configurations for the specified Amazon Web Services resource. You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and CloudFormation templates, as they send license configurations to the operation that creates the resource.

UPDATE aws.license_manager.license_specifications_for_resources
SET
ResourceArn = '{{ ResourceArn }}',
AddLicenseSpecifications = '{{ AddLicenseSpecifications }}',
RemoveLicenseSpecifications = '{{ RemoveLicenseSpecifications }}'
WHERE
region = '{{ region }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required;