Jump to Content

Class GetDeviceCommandProtected

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.

Example

Use a bare-bones client and the command you need to make an API call.

import { BraketClient, GetDeviceCommand } from "@aws-sdk/client-braket"; // ES Modules import
// const { BraketClient, GetDeviceCommand } = require("@aws-sdk/client-braket"); // CommonJS import
const client = new BraketClient(config);
const command = new GetDeviceCommand(input);
const response = await client.send(command);

Param

GetDeviceCommandInput

Returns

GetDeviceCommandOutput

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action.

Throws

InternalServiceException (server fault)

The request processing has failed because of an unknown error, exception, or failure.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ThrottlingException (client fault)

The throttling rate limit is met.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints specified by an AWS service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<GetDeviceCommandInput, GetDeviceCommandOutput>

Methods