getDevice method

Future<GetDeviceResponse> getDevice({
  1. required String deviceArn,
})

Retrieves the devices available in Amazon Braket.

May throw AccessDeniedException. May throw InternalServiceException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter deviceArn : The ARN of the device to retrieve.

Implementation

Future<GetDeviceResponse> getDevice({
  required String deviceArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/device/${Uri.encodeComponent(deviceArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDeviceResponse.fromJson(response);
}