We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Retrieves the specified quantum task.
Use a bare-bones client and the command you need to make an API call.
import { BraketClient, GetQuantumTaskCommand } from "@aws-sdk/client-braket"; // ES Modules import// const { BraketClient, GetQuantumTaskCommand } = require("@aws-sdk/client-braket"); // CommonJS importconst client = new BraketClient(config);const input = { // GetQuantumTaskRequest quantumTaskArn: "STRING_VALUE", // required};const command = new GetQuantumTaskCommand(input);const response = await client.send(command);// { // GetQuantumTaskResponse// quantumTaskArn: "STRING_VALUE", // required// status: "STRING_VALUE", // required// failureReason: "STRING_VALUE",// deviceArn: "STRING_VALUE", // required// deviceParameters: "STRING_VALUE", // required// shots: Number("long"), // required// outputS3Bucket: "STRING_VALUE", // required// outputS3Directory: "STRING_VALUE", // required// createdAt: new Date("TIMESTAMP"), // required// endedAt: new Date("TIMESTAMP"),// tags: { // TagsMap// "<keys>": "STRING_VALUE",// },// jobArn: "STRING_VALUE",// };
GetQuantumTaskCommandInput
GetQuantumTaskCommandOutput
input
response
config
AccessDeniedException (client fault)
You do not have sufficient access to perform this action.
InternalServiceException (server fault)
The request processing has failed because of an unknown error, exception, or failure.
ResourceNotFoundException (client fault)
The specified resource was not found.
ThrottlingException (client fault)
The throttling rate limit is met.
ValidationException (client fault)
The input fails to satisfy the constraints specified by an AWS service.
BraketServiceException
Base exception class for all service exceptions from Braket service.
Readonly
Static
Retrieves the specified quantum task.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetQuantumTaskCommandInput
Returns
GetQuantumTaskCommandOutput
See
input
shape.response
shape.config
shape.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.
Throws
BraketServiceException
Base exception class for all service exceptions from Braket service.