BraketClient

The Amazon Braket API Reference provides information about the operations and structures supported by Amazon Braket.

To learn about the permissions required to call an Amazon Braket API action, see Actions, resources, and condition keys for Amazon Braket. Amazon Braket Python SDK and the AWS Command Line Interface can be used to make discovery and creation of API calls easier. For more information about Amazon Braket features, see What is Amazon Braket? and important terms and concepts in the Amazon Braket Developer Guide.

In this guide:

  • CommonParameters

  • CommonErrors

Available languages for AWS SDK:

Code examples from the Amazon Braket Tutorials GitHub repository:

Properties

Link copied to clipboard
abstract override val config: BraketClient.Config

BraketClient's configuration

Functions

Link copied to clipboard
abstract suspend fun cancelJob(input: CancelJobRequest): CancelJobResponse

Cancels an Amazon Braket hybrid job.

Link copied to clipboard

Cancels the specified task.

Link copied to clipboard
abstract suspend fun createJob(input: CreateJobRequest): CreateJobResponse

Creates an Amazon Braket hybrid job.

Link copied to clipboard

Creates a quantum task.

Link copied to clipboard

Creates a spending limit for a specified quantum device. Spending limits help you control costs by setting maximum amounts that can be spent on quantum computing tasks within a specified time period. Simulators do not support spending limits.

Link copied to clipboard

Deletes an existing spending limit. This operation permanently removes the spending limit and cannot be undone. After deletion, the associated device becomes unrestricted for spending.

Link copied to clipboard
abstract suspend fun getDevice(input: GetDeviceRequest): GetDeviceResponse

Retrieves the devices available in Amazon Braket.

Link copied to clipboard
abstract suspend fun getJob(input: GetJobRequest): GetJobResponse

Retrieves the specified Amazon Braket hybrid job.

Link copied to clipboard

Retrieves the specified quantum task.

Link copied to clipboard

Shows the tags associated with this resource.

Link copied to clipboard

Searches for devices using the specified filters.

Link copied to clipboard
abstract suspend fun searchJobs(input: SearchJobsRequest): SearchJobsResponse

Searches for Amazon Braket hybrid jobs that match the specified filter values.

Link copied to clipboard

Searches for tasks that match the specified filter values.

Link copied to clipboard
abstract suspend fun searchSpendingLimits(input: SearchSpendingLimitsRequest = SearchSpendingLimitsRequest { }): SearchSpendingLimitsResponse

Searches and lists spending limits based on specified filters. This operation supports pagination and allows filtering by various criteria to find specific spending limits. We recommend using pagination to ensure that the operation returns quickly and successfully.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Add a tag to the specified resource.

Link copied to clipboard

Remove tags from a resource.

Link copied to clipboard

Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.

Inherited functions

Link copied to clipboard
inline suspend fun BraketClient.cancelJob(crossinline block: CancelJobRequest.Builder.() -> Unit): CancelJobResponse

Cancels an Amazon Braket hybrid job.

Link copied to clipboard

Cancels the specified task.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
inline suspend fun BraketClient.createJob(crossinline block: CreateJobRequest.Builder.() -> Unit): CreateJobResponse

Creates an Amazon Braket hybrid job.

Link copied to clipboard

Creates a quantum task.

Link copied to clipboard

Creates a spending limit for a specified quantum device. Spending limits help you control costs by setting maximum amounts that can be spent on quantum computing tasks within a specified time period. Simulators do not support spending limits.

Link copied to clipboard

Deletes an existing spending limit. This operation permanently removes the spending limit and cannot be undone. After deletion, the associated device becomes unrestricted for spending.

Link copied to clipboard
inline suspend fun BraketClient.getDevice(crossinline block: GetDeviceRequest.Builder.() -> Unit): GetDeviceResponse

Retrieves the devices available in Amazon Braket.

Link copied to clipboard
inline suspend fun BraketClient.getJob(crossinline block: GetJobRequest.Builder.() -> Unit): GetJobResponse

Retrieves the specified Amazon Braket hybrid job.

Link copied to clipboard

Retrieves the specified quantum task.

Link copied to clipboard

Shows the tags associated with this resource.

Link copied to clipboard

Searches for devices using the specified filters.

Link copied to clipboard
inline suspend fun BraketClient.searchJobs(crossinline block: SearchJobsRequest.Builder.() -> Unit): SearchJobsResponse

Searches for Amazon Braket hybrid jobs that match the specified filter values.

Link copied to clipboard

Searches for tasks that match the specified filter values.

Link copied to clipboard

Searches and lists spending limits based on specified filters. This operation supports pagination and allows filtering by various criteria to find specific spending limits. We recommend using pagination to ensure that the operation returns quickly and successfully.

Link copied to clipboard
inline suspend fun BraketClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Add a tag to the specified resource.

Link copied to clipboard

Remove tags from a resource.

Link copied to clipboard

Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.