device_ec2_instances
Creates, updates, deletes, gets or lists a device_ec2_instances resource.
Overview
| Name | device_ec2_instances |
| Type | Resource |
| Id | aws.snow_device_management.device_ec2_instances |
Fields
The following fields are returned by SELECT queries:
- describe_device_ec2_instances
| Name | Datatype | Description |
|---|---|---|
instances | array | A list of structures containing information about each instance. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_device_ec2_instances | select | managed_device_id, region | Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields. |
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. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_device_ec2_instances
Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields.
SELECT
instances
FROM aws.snow_device_management.device_ec2_instances
WHERE managed_device_id = '{{ managed_device_id }}' -- required
AND region = '{{ region }}' -- required
;