resource_inventories
Creates, updates, deletes, gets or lists a resource_inventories resource.
Overview
| Name | resource_inventories |
| Type | Resource |
| Id | aws.license_manager.resource_inventories |
Fields
The following fields are returned by SELECT queries:
- list_resource_inventory
| Name | Datatype | Description |
|---|---|---|
ami_id | string | Amazon Machine Image (AMI) ID associated with the resource. |
host_id | string | Dedicated Host ID where the resource is running. |
instance_type | string | EC2 instance type of the resource. |
marketplace_product_codes | array | List of Marketplace product codes associated with the resource. |
platform | string | Platform of the resource. |
platform_version | string | Platform version of the resource in the inventory. |
region | string | Region where the resource is located. |
resource_arn | string | Amazon Resource Name (ARN) of the resource. |
resource_id | string | ID of the resource. |
resource_owning_account_id | string | ID of the account that owns the resource. |
resource_type | string | Type of resource. (EC2_INSTANCE, EC2_HOST, EC2_AMI, RDS, SYSTEMS_MANAGER_MANAGED_INSTANCE) |
usage_operation | string | Usage operation value that corresponds to the license type for billing purposes. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_resource_inventory | select | region | Lists resources managed using Systems Manager inventory. |
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_resource_inventory
Lists resources managed using Systems Manager inventory.
SELECT
ami_id,
host_id,
instance_type,
marketplace_product_codes,
platform,
platform_version,
region,
resource_arn,
resource_id,
resource_owning_account_id,
resource_type,
usage_operation
FROM aws.license_manager.resource_inventories
WHERE region = '{{ region }}' -- required
;