Class: Aws::Braket::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Braket::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb
Overview
An API client for Braket. To construct a client, you need to configure a :region and :credentials.
client = Aws::Braket::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#cancel_job(params = {}) ⇒ Types::CancelJobResponse
Cancels an Amazon Braket hybrid job.
-
#cancel_quantum_task(params = {}) ⇒ Types::CancelQuantumTaskResponse
Cancels the specified task.
-
#create_job(params = {}) ⇒ Types::CreateJobResponse
Creates an Amazon Braket hybrid job.
-
#create_quantum_task(params = {}) ⇒ Types::CreateQuantumTaskResponse
Creates a quantum task.
-
#create_spending_limit(params = {}) ⇒ Types::CreateSpendingLimitResponse
Creates a spending limit for a specified quantum device.
-
#delete_spending_limit(params = {}) ⇒ Struct
Deletes an existing spending limit.
-
#get_device(params = {}) ⇒ Types::GetDeviceResponse
Retrieves the devices available in Amazon Braket.
-
#get_job(params = {}) ⇒ Types::GetJobResponse
Retrieves the specified Amazon Braket hybrid job.
-
#get_quantum_task(params = {}) ⇒ Types::GetQuantumTaskResponse
Retrieves the specified quantum task.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Shows the tags associated with this resource.
-
#search_devices(params = {}) ⇒ Types::SearchDevicesResponse
Searches for devices using the specified filters.
-
#search_jobs(params = {}) ⇒ Types::SearchJobsResponse
Searches for Amazon Braket hybrid jobs that match the specified filter values.
-
#search_quantum_tasks(params = {}) ⇒ Types::SearchQuantumTasksResponse
Searches for tasks that match the specified filter values.
-
#search_spending_limits(params = {}) ⇒ Types::SearchSpendingLimitsResponse
Searches and lists spending limits based on specified filters.
-
#tag_resource(params = {}) ⇒ Struct
Add a tag to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
-
#update_spending_limit(params = {}) ⇒ Struct
Updates an existing spending limit.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#cancel_job(params = {}) ⇒ Types::CancelJobResponse
Cancels an Amazon Braket hybrid job.
502 503 504 505 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 502 def cancel_job(params = {}, = {}) req = build_request(:cancel_job, params) req.send_request() end |
#cancel_quantum_task(params = {}) ⇒ Types::CancelQuantumTaskResponse
Cancels the specified task.
539 540 541 542 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 539 def cancel_quantum_task(params = {}, = {}) req = build_request(:cancel_quantum_task, params) req.send_request() end |
#create_job(params = {}) ⇒ Types::CreateJobResponse
Creates an Amazon Braket hybrid job.
681 682 683 684 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 681 def create_job(params = {}, = {}) req = build_request(:create_job, params) req.send_request() end |
#create_quantum_task(params = {}) ⇒ Types::CreateQuantumTaskResponse
Creates a quantum task.
771 772 773 774 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 771 def create_quantum_task(params = {}, = {}) req = build_request(:create_quantum_task, params) req.send_request() end |
#create_spending_limit(params = {}) ⇒ Types::CreateSpendingLimitResponse
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.
832 833 834 835 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 832 def create_spending_limit(params = {}, = {}) req = build_request(:create_spending_limit, params) req.send_request() end |
#delete_spending_limit(params = {}) ⇒ Struct
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.
856 857 858 859 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 856 def delete_spending_limit(params = {}, = {}) req = build_request(:delete_spending_limit, params) req.send_request() end |
#get_device(params = {}) ⇒ Types::GetDeviceResponse
Retrieves the devices available in Amazon Braket.
911 912 913 914 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 911 def get_device(params = {}, = {}) req = build_request(:get_device, params) req.send_request() end |
#get_job(params = {}) ⇒ Types::GetJobResponse
Retrieves the specified Amazon Braket hybrid job.
1003 1004 1005 1006 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1003 def get_job(params = {}, = {}) req = build_request(:get_job, params) req.send_request() end |
#get_quantum_task(params = {}) ⇒ Types::GetQuantumTaskResponse
Retrieves the specified quantum task.
1076 1077 1078 1079 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1076 def get_quantum_task(params = {}, = {}) req = build_request(:get_quantum_task, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Shows the tags associated with this resource.
1105 1106 1107 1108 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1105 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#search_devices(params = {}) ⇒ Types::SearchDevicesResponse
Searches for devices using the specified filters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1158 1159 1160 1161 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1158 def search_devices(params = {}, = {}) req = build_request(:search_devices, params) req.send_request() end |
#search_jobs(params = {}) ⇒ Types::SearchJobsResponse
Searches for Amazon Braket hybrid jobs that match the specified filter values.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1217 1218 1219 1220 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1217 def search_jobs(params = {}, = {}) req = build_request(:search_jobs, params) req.send_request() end |
#search_quantum_tasks(params = {}) ⇒ Types::SearchQuantumTasksResponse
Searches for tasks that match the specified filter values.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1276 1277 1278 1279 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1276 def search_quantum_tasks(params = {}, = {}) req = build_request(:search_quantum_tasks, params) req.send_request() end |
#search_spending_limits(params = {}) ⇒ Types::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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1340 1341 1342 1343 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1340 def search_spending_limits(params = {}, = {}) req = build_request(:search_spending_limits, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Add a tag to the specified resource.
1370 1371 1372 1373 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1370 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
1397 1398 1399 1400 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1397 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_spending_limit(params = {}) ⇒ Struct
Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.
1443 1444 1445 1446 |
# File 'gems/aws-sdk-braket/lib/aws-sdk-braket/client.rb', line 1443 def update_spending_limit(params = {}, = {}) req = build_request(:update_spending_limit, params) req.send_request() end |