Skip to main content

resource_inventories

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

Overview

Nameresource_inventories
TypeResource
Idaws.license_manager.resource_inventories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ami_idstringAmazon Machine Image (AMI) ID associated with the resource.
host_idstringDedicated Host ID where the resource is running.
instance_typestringEC2 instance type of the resource.
marketplace_product_codesarrayList of Marketplace product codes associated with the resource.
platformstringPlatform of the resource.
platform_versionstringPlatform version of the resource in the inventory.
regionstringRegion where the resource is located.
resource_arnstringAmazon Resource Name (ARN) of the resource.
resource_idstringID of the resource.
resource_owning_account_idstringID of the account that owns the resource.
resource_typestringType of resource. (EC2_INSTANCE, EC2_HOST, EC2_AMI, RDS, SYSTEMS_MANAGER_MANAGED_INSTANCE)
usage_operationstringUsage operation value that corresponds to the license type for billing purposes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_resource_inventoryselectregionLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;