getDeviceInstance method
Returns information about a device instance that belongs to a private device fleet.
May throw ArgumentException.
May throw LimitExceededException.
May throw NotFoundException.
May throw ServiceAccountException.
Parameter arn :
The Amazon Resource Name (ARN) of the instance you're requesting
information about.
Implementation
Future<GetDeviceInstanceResult> getDeviceInstance({
required String arn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.GetDeviceInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'arn': arn,
},
);
return GetDeviceInstanceResult.fromJson(jsonResponse.body);
}