@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface BraketClient extends SdkClient
builder() method.
The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket.
Additional Resources:
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static BraketClientBuilder |
builder()
Create a builder that can be used to configure and create a
BraketClient. |
default CancelJobResponse |
cancelJob(CancelJobRequest cancelJobRequest)
Cancels an Amazon Braket job.
|
default CancelJobResponse |
cancelJob(Consumer<CancelJobRequest.Builder> cancelJobRequest)
Cancels an Amazon Braket job.
|
default CancelQuantumTaskResponse |
cancelQuantumTask(CancelQuantumTaskRequest cancelQuantumTaskRequest)
Cancels the specified task.
|
default CancelQuantumTaskResponse |
cancelQuantumTask(Consumer<CancelQuantumTaskRequest.Builder> cancelQuantumTaskRequest)
Cancels the specified task.
|
static BraketClient |
create()
Create a
BraketClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateJobResponse |
createJob(Consumer<CreateJobRequest.Builder> createJobRequest)
Creates an Amazon Braket job.
|
default CreateJobResponse |
createJob(CreateJobRequest createJobRequest)
Creates an Amazon Braket job.
|
default CreateQuantumTaskResponse |
createQuantumTask(Consumer<CreateQuantumTaskRequest.Builder> createQuantumTaskRequest)
Creates a quantum task.
|
default CreateQuantumTaskResponse |
createQuantumTask(CreateQuantumTaskRequest createQuantumTaskRequest)
Creates a quantum task.
|
default GetDeviceResponse |
getDevice(Consumer<GetDeviceRequest.Builder> getDeviceRequest)
Retrieves the devices available in Amazon Braket.
|
default GetDeviceResponse |
getDevice(GetDeviceRequest getDeviceRequest)
Retrieves the devices available in Amazon Braket.
|
default GetJobResponse |
getJob(Consumer<GetJobRequest.Builder> getJobRequest)
Retrieves the specified Amazon Braket job.
|
default GetJobResponse |
getJob(GetJobRequest getJobRequest)
Retrieves the specified Amazon Braket job.
|
default GetQuantumTaskResponse |
getQuantumTask(Consumer<GetQuantumTaskRequest.Builder> getQuantumTaskRequest)
Retrieves the specified quantum task.
|
default GetQuantumTaskResponse |
getQuantumTask(GetQuantumTaskRequest getQuantumTaskRequest)
Retrieves the specified quantum task.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Shows the tags associated with this resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Shows the tags associated with this resource.
|
default SearchDevicesResponse |
searchDevices(Consumer<SearchDevicesRequest.Builder> searchDevicesRequest)
Searches for devices using the specified filters.
|
default SearchDevicesResponse |
searchDevices(SearchDevicesRequest searchDevicesRequest)
Searches for devices using the specified filters.
|
default SearchDevicesIterable |
searchDevicesPaginator(Consumer<SearchDevicesRequest.Builder> searchDevicesRequest)
Searches for devices using the specified filters.
|
default SearchDevicesIterable |
searchDevicesPaginator(SearchDevicesRequest searchDevicesRequest)
Searches for devices using the specified filters.
|
default SearchJobsResponse |
searchJobs(Consumer<SearchJobsRequest.Builder> searchJobsRequest)
Searches for Amazon Braket jobs that match the specified filter values.
|
default SearchJobsResponse |
searchJobs(SearchJobsRequest searchJobsRequest)
Searches for Amazon Braket jobs that match the specified filter values.
|
default SearchJobsIterable |
searchJobsPaginator(Consumer<SearchJobsRequest.Builder> searchJobsRequest)
Searches for Amazon Braket jobs that match the specified filter values.
|
default SearchJobsIterable |
searchJobsPaginator(SearchJobsRequest searchJobsRequest)
Searches for Amazon Braket jobs that match the specified filter values.
|
default SearchQuantumTasksResponse |
searchQuantumTasks(Consumer<SearchQuantumTasksRequest.Builder> searchQuantumTasksRequest)
Searches for tasks that match the specified filter values.
|
default SearchQuantumTasksResponse |
searchQuantumTasks(SearchQuantumTasksRequest searchQuantumTasksRequest)
Searches for tasks that match the specified filter values.
|
default SearchQuantumTasksIterable |
searchQuantumTasksPaginator(Consumer<SearchQuantumTasksRequest.Builder> searchQuantumTasksRequest)
Searches for tasks that match the specified filter values.
|
default SearchQuantumTasksIterable |
searchQuantumTasksPaginator(SearchQuantumTasksRequest searchQuantumTasksRequest)
Searches for tasks that match the specified filter values.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Add a tag to the specified resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Add a tag to the specified resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Remove tags from a resource.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Remove tags from a resource.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static BraketClient create()
BraketClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static BraketClientBuilder builder()
BraketClient.default CancelJobResponse cancelJob(CancelJobRequest cancelJobRequest) throws ResourceNotFoundException, AccessDeniedException, ConflictException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Cancels an Amazon Braket job.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CancelJobResponse cancelJob(Consumer<CancelJobRequest.Builder> cancelJobRequest) throws ResourceNotFoundException, AccessDeniedException, ConflictException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Cancels an Amazon Braket job.
This is a convenience which creates an instance of the CancelJobRequest.Builder avoiding the need to
create one manually via CancelJobRequest.builder()
cancelJobRequest - A Consumer that will call methods on CancelJobRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CancelQuantumTaskResponse cancelQuantumTask(CancelQuantumTaskRequest cancelQuantumTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ConflictException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Cancels the specified task.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CancelQuantumTaskResponse cancelQuantumTask(Consumer<CancelQuantumTaskRequest.Builder> cancelQuantumTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ConflictException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Cancels the specified task.
This is a convenience which creates an instance of the CancelQuantumTaskRequest.Builder avoiding the need
to create one manually via CancelQuantumTaskRequest.builder()
cancelQuantumTaskRequest - A Consumer that will call methods on CancelQuantumTaskRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateJobResponse createJob(CreateJobRequest createJobRequest) throws ConflictException, AccessDeniedException, ThrottlingException, DeviceRetiredException, InternalServiceException, ServiceQuotaExceededException, ValidationException, AwsServiceException, SdkClientException, BraketException
Creates an Amazon Braket job.
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.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateJobResponse createJob(Consumer<CreateJobRequest.Builder> createJobRequest) throws ConflictException, AccessDeniedException, ThrottlingException, DeviceRetiredException, InternalServiceException, ServiceQuotaExceededException, ValidationException, AwsServiceException, SdkClientException, BraketException
Creates an Amazon Braket job.
This is a convenience which creates an instance of the CreateJobRequest.Builder avoiding the need to
create one manually via CreateJobRequest.builder()
createJobRequest - A Consumer that will call methods on CreateJobRequest.Builder to create a request.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.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateQuantumTaskResponse createQuantumTask(CreateQuantumTaskRequest createQuantumTaskRequest) throws AccessDeniedException, ThrottlingException, DeviceOfflineException, DeviceRetiredException, InternalServiceException, ServiceQuotaExceededException, ValidationException, AwsServiceException, SdkClientException, BraketException
Creates a quantum task.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateQuantumTaskResponse createQuantumTask(Consumer<CreateQuantumTaskRequest.Builder> createQuantumTaskRequest) throws AccessDeniedException, ThrottlingException, DeviceOfflineException, DeviceRetiredException, InternalServiceException, ServiceQuotaExceededException, ValidationException, AwsServiceException, SdkClientException, BraketException
Creates a quantum task.
This is a convenience which creates an instance of the CreateQuantumTaskRequest.Builder avoiding the need
to create one manually via CreateQuantumTaskRequest.builder()
createQuantumTaskRequest - A Consumer that will call methods on CreateQuantumTaskRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetDeviceResponse getDevice(GetDeviceRequest getDeviceRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
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.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetDeviceResponse getDevice(Consumer<GetDeviceRequest.Builder> getDeviceRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
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.
This is a convenience which creates an instance of the GetDeviceRequest.Builder avoiding the need to
create one manually via GetDeviceRequest.builder()
getDeviceRequest - A Consumer that will call methods on GetDeviceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetJobResponse getJob(GetJobRequest getJobRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Retrieves the specified Amazon Braket job.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetJobResponse getJob(Consumer<GetJobRequest.Builder> getJobRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Retrieves the specified Amazon Braket job.
This is a convenience which creates an instance of the GetJobRequest.Builder avoiding the need to create
one manually via GetJobRequest.builder()
getJobRequest - A Consumer that will call methods on GetJobRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetQuantumTaskResponse getQuantumTask(GetQuantumTaskRequest getQuantumTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Retrieves the specified quantum task.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetQuantumTaskResponse getQuantumTask(Consumer<GetQuantumTaskRequest.Builder> getQuantumTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Retrieves the specified quantum task.
This is a convenience which creates an instance of the GetQuantumTaskRequest.Builder avoiding the need to
create one manually via GetQuantumTaskRequest.builder()
getQuantumTaskRequest - A Consumer that will call methods on GetQuantumTaskRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Shows the tags associated with this resource.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Shows the tags associated with this resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchDevicesResponse searchDevices(SearchDevicesRequest searchDevicesRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for devices using the specified filters.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchDevicesResponse searchDevices(Consumer<SearchDevicesRequest.Builder> searchDevicesRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for devices using the specified filters.
This is a convenience which creates an instance of the SearchDevicesRequest.Builder avoiding the need to
create one manually via SearchDevicesRequest.builder()
searchDevicesRequest - A Consumer that will call methods on SearchDevicesRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchDevicesIterable searchDevicesPaginator(SearchDevicesRequest searchDevicesRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for devices using the specified filters.
This is a variant of searchDevices(software.amazon.awssdk.services.braket.model.SearchDevicesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchDevicesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchDevices(software.amazon.awssdk.services.braket.model.SearchDevicesRequest) operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchDevicesIterable searchDevicesPaginator(Consumer<SearchDevicesRequest.Builder> searchDevicesRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for devices using the specified filters.
This is a variant of searchDevices(software.amazon.awssdk.services.braket.model.SearchDevicesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchDevicesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchDevicesIterable responses = client.searchDevicesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchDevices(software.amazon.awssdk.services.braket.model.SearchDevicesRequest) operation.
This is a convenience which creates an instance of the SearchDevicesRequest.Builder avoiding the need to
create one manually via SearchDevicesRequest.builder()
searchDevicesRequest - A Consumer that will call methods on SearchDevicesRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchJobsResponse searchJobs(SearchJobsRequest searchJobsRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for Amazon Braket jobs that match the specified filter values.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchJobsResponse searchJobs(Consumer<SearchJobsRequest.Builder> searchJobsRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for Amazon Braket jobs that match the specified filter values.
This is a convenience which creates an instance of the SearchJobsRequest.Builder avoiding the need to
create one manually via SearchJobsRequest.builder()
searchJobsRequest - A Consumer that will call methods on SearchJobsRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchJobsIterable searchJobsPaginator(SearchJobsRequest searchJobsRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for Amazon Braket jobs that match the specified filter values.
This is a variant of searchJobs(software.amazon.awssdk.services.braket.model.SearchJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchJobs(software.amazon.awssdk.services.braket.model.SearchJobsRequest) operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchJobsIterable searchJobsPaginator(Consumer<SearchJobsRequest.Builder> searchJobsRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for Amazon Braket jobs that match the specified filter values.
This is a variant of searchJobs(software.amazon.awssdk.services.braket.model.SearchJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchJobsIterable responses = client.searchJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchJobs(software.amazon.awssdk.services.braket.model.SearchJobsRequest) operation.
This is a convenience which creates an instance of the SearchJobsRequest.Builder avoiding the need to
create one manually via SearchJobsRequest.builder()
searchJobsRequest - A Consumer that will call methods on SearchJobsRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchQuantumTasksResponse searchQuantumTasks(SearchQuantumTasksRequest searchQuantumTasksRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for tasks that match the specified filter values.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchQuantumTasksResponse searchQuantumTasks(Consumer<SearchQuantumTasksRequest.Builder> searchQuantumTasksRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for tasks that match the specified filter values.
This is a convenience which creates an instance of the SearchQuantumTasksRequest.Builder avoiding the
need to create one manually via SearchQuantumTasksRequest.builder()
searchQuantumTasksRequest - A Consumer that will call methods on SearchQuantumTasksRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchQuantumTasksIterable searchQuantumTasksPaginator(SearchQuantumTasksRequest searchQuantumTasksRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for tasks that match the specified filter values.
This is a variant of
searchQuantumTasks(software.amazon.awssdk.services.braket.model.SearchQuantumTasksRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client.searchQuantumTasksPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client
.searchQuantumTasksPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchQuantumTasksResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client.searchQuantumTasksPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchQuantumTasks(software.amazon.awssdk.services.braket.model.SearchQuantumTasksRequest)
operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SearchQuantumTasksIterable searchQuantumTasksPaginator(Consumer<SearchQuantumTasksRequest.Builder> searchQuantumTasksRequest) throws AccessDeniedException, ThrottlingException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Searches for tasks that match the specified filter values.
This is a variant of
searchQuantumTasks(software.amazon.awssdk.services.braket.model.SearchQuantumTasksRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client.searchQuantumTasksPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client
.searchQuantumTasksPaginator(request);
for (software.amazon.awssdk.services.braket.model.SearchQuantumTasksResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.braket.paginators.SearchQuantumTasksIterable responses = client.searchQuantumTasksPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchQuantumTasks(software.amazon.awssdk.services.braket.model.SearchQuantumTasksRequest)
operation.
This is a convenience which creates an instance of the SearchQuantumTasksRequest.Builder avoiding the
need to create one manually via SearchQuantumTasksRequest.builder()
searchQuantumTasksRequest - A Consumer that will call methods on SearchQuantumTasksRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Add a tag to the specified resource.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Add a tag to the specified resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Remove tags from a resource.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InternalServiceException, ValidationException, AwsServiceException, SdkClientException, BraketException
Remove tags from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BraketException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2023. All rights reserved.