license_specifications_for_resources
Creates, updates, deletes, gets or lists a license_specifications_for_resources resource.
Overview
| Name | license_specifications_for_resources |
| Type | Resource |
| Id | aws.license_manager.license_specifications_for_resources |
Fields
The following fields are returned by SELECT queries:
- list_license_specifications_for_resource
| Name | Datatype | Description |
|---|---|---|
ami_association_scope | string | Scope of AMI associations. The possible value is cross-account. |
license_configuration_arn | string | Amazon Resource Name (ARN) of the license configuration. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_license_specifications_for_resource | select | region | Describes the license configurations for the specified resource. | |
update_license_specifications_for_resource | update | region, ResourceArn | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_license_specifications_for_resource
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
- update_license_specifications_for_resource
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;