Skip to main content

device_resources

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

Overview

Namedevice_resources
TypeResource
Idaws.snow_device_management.device_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
arnstringThe Amazon Resource Name (ARN) of the resource.
resource_typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_device_resourcesselectmanaged_device_id, regionmaxResults, nextToken, typeReturns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.

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
managed_device_idstringThe ID of the managed device that you are listing the resources of.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of resources per page.
nextTokenstringA pagination token to continue to the next page of results.
typestringA structure used to filter the results by type of resource.

SELECT examples

Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.

SELECT
id,
arn,
resource_type
FROM aws.snow_device_management.device_resources
WHERE managed_device_id = '{{ managed_device_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND type = '{{ type }}'
;