pub struct QldbSessionClient { /* private fields */ }Expand description
A client for the QLDB Session API.
Implementations§
Source§impl QldbSessionClient
impl QldbSessionClient
Sourcepub fn new(region: Region) -> QldbSessionClient
pub fn new(region: Region) -> QldbSessionClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> QldbSessionClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> QldbSessionClient
Trait Implementations§
Source§impl Clone for QldbSessionClient
impl Clone for QldbSessionClient
Source§fn clone(&self) -> QldbSessionClient
fn clone(&self) -> QldbSessionClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl QldbSession for QldbSessionClient
impl QldbSession for QldbSessionClient
Source§fn send_command<'life0, 'async_trait>(
&'life0 self,
input: SendCommandRequest,
) -> Pin<Box<dyn Future<Output = Result<SendCommandResult, RusotoError<SendCommandError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_command<'life0, 'async_trait>(
&'life0 self,
input: SendCommandRequest,
) -> Pin<Box<dyn Future<Output = Result<SendCommandResult, RusotoError<SendCommandError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends a command to an Amazon QLDB ledger.
Instead of interacting directly with this API, we recommend that you use the Amazon 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
qldbsessiondata plane and managesSendCommandAPI calls for you. For information and a list of supported programming languages, see Getting started with the driver 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.