@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBraketClient extends AmazonWebServiceClient implements AWSBraket
The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket.
Additional Resources:
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSBraketClientBuilder |
builder() |
CancelJobResult |
cancelJob(CancelJobRequest request)
Cancels an Amazon Braket job.
|
CancelQuantumTaskResult |
cancelQuantumTask(CancelQuantumTaskRequest request)
Cancels the specified task.
|
CreateJobResult |
createJob(CreateJobRequest request)
Creates an Amazon Braket job.
|
CreateQuantumTaskResult |
createQuantumTask(CreateQuantumTaskRequest request)
Creates a quantum task.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDeviceResult |
getDevice(GetDeviceRequest request)
Retrieves the devices available in Amazon Braket.
|
GetJobResult |
getJob(GetJobRequest request)
Retrieves the specified Amazon Braket job.
|
GetQuantumTaskResult |
getQuantumTask(GetQuantumTaskRequest request)
Retrieves the specified quantum task.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Shows the tags associated with this resource.
|
SearchDevicesResult |
searchDevices(SearchDevicesRequest request)
Searches for devices using the specified filters.
|
SearchJobsResult |
searchJobs(SearchJobsRequest request)
Searches for Amazon Braket jobs that match the specified filter values.
|
SearchQuantumTasksResult |
searchQuantumTasks(SearchQuantumTasksRequest request)
Searches for tasks that match the specified filter values.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Add a tag to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Remove tags from a resource.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSBraketClientBuilder builder()
public CancelJobResult cancelJob(CancelJobRequest request)
Cancels an Amazon Braket job.
cancelJob
in interface AWSBraket
cancelJobRequest
- ResourceNotFoundException
- The specified resource was not found.AccessDeniedException
- You do not have sufficient access to perform this action.ConflictException
- An error occurred due to a conflict.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public CancelQuantumTaskResult cancelQuantumTask(CancelQuantumTaskRequest request)
Cancels the specified task.
cancelQuantumTask
in interface AWSBraket
cancelQuantumTaskRequest
- ResourceNotFoundException
- The specified resource was not found.AccessDeniedException
- You do not have sufficient access to perform this action.ConflictException
- An error occurred due to a conflict.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public CreateJobResult createJob(CreateJobRequest request)
Creates an Amazon Braket job.
createJob
in interface AWSBraket
createJobRequest
- ConflictException
- An error occurred due to a conflict.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.DeviceOfflineException
- The specified device is currently offline.DeviceRetiredException
- The specified device has been retired.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ServiceQuotaExceededException
- The request failed because a service quota is exceeded.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public CreateQuantumTaskResult createQuantumTask(CreateQuantumTaskRequest request)
Creates a quantum task.
createQuantumTask
in interface AWSBraket
createQuantumTaskRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.DeviceOfflineException
- The specified device is currently offline.DeviceRetiredException
- The specified device has been retired.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ServiceQuotaExceededException
- The request failed because a service quota is exceeded.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public GetDeviceResult getDevice(GetDeviceRequest request)
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.
getDevice
in interface AWSBraket
getDeviceRequest
- ResourceNotFoundException
- The specified resource was not found.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public GetJobResult getJob(GetJobRequest request)
Retrieves the specified Amazon Braket job.
getJob
in interface AWSBraket
getJobRequest
- ResourceNotFoundException
- The specified resource was not found.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public GetQuantumTaskResult getQuantumTask(GetQuantumTaskRequest request)
Retrieves the specified quantum task.
getQuantumTask
in interface AWSBraket
getQuantumTaskRequest
- ResourceNotFoundException
- The specified resource was not found.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Shows the tags associated with this resource.
listTagsForResource
in interface AWSBraket
listTagsForResourceRequest
- ResourceNotFoundException
- The specified resource was not found.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public SearchDevicesResult searchDevices(SearchDevicesRequest request)
Searches for devices using the specified filters.
searchDevices
in interface AWSBraket
searchDevicesRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public SearchJobsResult searchJobs(SearchJobsRequest request)
Searches for Amazon Braket jobs that match the specified filter values.
searchJobs
in interface AWSBraket
searchJobsRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public SearchQuantumTasksResult searchQuantumTasks(SearchQuantumTasksRequest request)
Searches for tasks that match the specified filter values.
searchQuantumTasks
in interface AWSBraket
searchQuantumTasksRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The throttling rate limit is met.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public TagResourceResult tagResource(TagResourceRequest request)
Add a tag to the specified resource.
tagResource
in interface AWSBraket
tagResourceRequest
- ResourceNotFoundException
- The specified resource was not found.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public UntagResourceResult untagResource(UntagResourceRequest request)
Remove tags from a resource.
untagResource
in interface AWSBraket
untagResourceRequest
- ResourceNotFoundException
- The specified resource was not found.InternalServiceException
- The request processing has failed because of an unknown error, exception, or failure.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSBraket
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSBraket
shutdown
in class AmazonWebServiceClient