device_resources
Creates, updates, deletes, gets or lists a device_resources resource.
Overview
| Name | device_resources |
| Type | Resource |
| Id | aws.snow_device_management.device_resources |
Fields
The following fields are returned by SELECT queries:
- list_device_resources
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the resource. |
arn | string | The Amazon Resource Name (ARN) of the resource. |
resource_type | string | The resource type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_device_resources | select | managed_device_id, region | maxResults, nextToken, type | Returns 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.
| Name | Datatype | Description |
|---|---|---|
managed_device_id | string | The ID of the managed device that you are listing the resources of. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of resources per page. |
nextToken | string | A pagination token to continue to the next page of results. |
type | string | A structure used to filter the results by type of resource. |
SELECT examples
- list_device_resources
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 }}'
;