DeviceFarm.Client.
get_device_instance
(**kwargs)¶Returns information about a device instance that belongs to a private device fleet.
See also: AWS API Documentation
Request Syntax
response = client.get_device_instance(
arn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the instance you're requesting information about.
{
'deviceInstance': {
'arn': 'string',
'deviceArn': 'string',
'labels': [
'string',
],
'status': 'IN_USE'|'PREPARING'|'AVAILABLE'|'NOT_AVAILABLE',
'udid': 'string',
'instanceProfile': {
'arn': 'string',
'packageCleanup': True|False,
'excludeAppPackagesFromCleanup': [
'string',
],
'rebootAfterUse': True|False,
'name': 'string',
'description': 'string'
}
}
}
Response Structure
An object that contains information about your device instance.
The Amazon Resource Name (ARN) of the device instance.
The ARN of the device.
An array of strings that describe the device instance.
The status of the device instance. Valid values are listed here.
Unique device identifier for the device instance.
A object that contains information about the instance profile.
The Amazon Resource Name (ARN) of the instance profile.
When set to true
, Device Farm removes app packages after a test run. The default value is false
for private devices.
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
When set to true
, Device Farm reboots the instance after a test run. The default value is true
.
The name of the instance profile.
The description of the instance profile.
Exceptions
DeviceFarm.Client.exceptions.ArgumentException
DeviceFarm.Client.exceptions.NotFoundException
DeviceFarm.Client.exceptions.LimitExceededException
DeviceFarm.Client.exceptions.ServiceAccountException