Class: Aws::QLDBSession::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::QLDBSession::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-qldbsession/client.rb
Overview
An API client for QLDBSession. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::QLDBSession::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#send_command(params = {}) ⇒ Types::SendCommandResult
Sends a command to an Amazon QLDB ledger.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
451 452 453 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 451 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
623 624 625 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 623 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
626 627 628 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 626 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 596 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::QLDBSession') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-qldbsession' context[:gem_version] = '1.48.0' Seahorse::Client::Request.new(handlers, context) end |
#send_command(params = {}) ⇒ Types::SendCommandResult
Sends a command to an Amazon QLDB ledger.
<note markdown=“1”> Instead of interacting directly with this API, we recommend using the QLDB driver or the QLDB shell to execute data transactions on a ledger.
* If you are working with an AWS SDK, use the QLDB driver. The driver
provides a high-level abstraction layer above this *QLDB Session*
data plane and manages `SendCommand` API calls for you. For
information and a list of supported programming languages, see
[Getting started with the driver][1] in the *Amazon QLDB Developer
Guide*.
-
If you are working with the AWS Command Line Interface (AWS CLI), use the QLDB shell. The shell is a command line interface that uses the QLDB driver to interact with a ledger. For information, see [Accessing Amazon QLDB using the QLDB shell].
</note>
[1]: docs.aws.amazon.com/qldb/latest/developerguide/getting-started-driver.html [2]: docs.aws.amazon.com/qldb/latest/developerguide/data-shell.html
587 588 589 590 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 587 def send_command(params = {}, = {}) req = build_request(:send_command, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
616 617 618 |
# File 'lib/aws-sdk-qldbsession/client.rb', line 616 def waiter_names [] end |