Module Values.GetDeviceResponseSource

Retrieves the devices available in Amazon Braket. For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.

Sourcetype nonrec t = {
  1. deviceArn : DeviceArn.t option;
    (*

    The ARN of the device.

    *)
  2. deviceName : String_.t option;
    (*

    The name of the device.

    *)
  3. providerName : String_.t option;
    (*

    The name of the partner company for the device.

    *)
  4. deviceType : DeviceType.t option;
    (*

    The type of the device.

    *)
  5. deviceStatus : DeviceStatus.t option;
    (*

    The status of the device.

    *)
  6. deviceCapabilities : JsonValue.t option;
    (*

    Details about the capabilities of the device.

    *)
  7. deviceQueueInfo : DeviceQueueInfoList.t option;
    (*

    The number of quantum tasks and hybrid jobs currently queued on the device.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServiceException of InternalServiceException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ThrottlingException of ThrottlingException.t
  5. | `ValidationException of ValidationException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?deviceArn:??? -> ?deviceName:??? -> ?providerName:??? -> ?deviceType:??? -> ?deviceStatus:??? -> ?deviceCapabilities:??? -> ?deviceQueueInfo:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServiceException of InternalServiceException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServiceException of InternalServiceException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `String of String_.t ]) list ] list | `String of DeviceArn.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t