Skip to main content

device_instances

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

Overview

Namedevice_instances
TypeResource
Idaws.devicefarm.device_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the device instance. (pattern: <code>^arn:aws:devicefarm:.+</code>)
device_arnstringThe ARN of the device. (pattern: <code>^arn:aws:devicefarm:.+</code>)
instance_profileobjectA object that contains information about the instance profile.
labelsarrayAn array of strings that describe the device instance.
statusstringThe status of the device instance. Valid values are listed here. (IN_USE, PREPARING, AVAILABLE, NOT_AVAILABLE)
udidstringUnique device identifier for the device instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_device_instanceselectregionReturns information about a device instance that belongs to a private device fleet.
list_device_instancesselectregionReturns information about the private device instances associated with one or more AWS accounts.
update_device_instanceupdateregion, arnUpdates information about a private device instance.

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

Returns information about a device instance that belongs to a private device fleet.

SELECT
arn,
device_arn,
instance_profile,
labels,
status,
udid
FROM aws.devicefarm.device_instances
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates information about a private device instance.

UPDATE aws.devicefarm.device_instances
SET
arn = '{{ arn }}',
profileArn = '{{ profileArn }}',
labels = '{{ labels }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
device_instance;