/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the qldb-session-2019-07-11.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.QLDBSession.Model;
namespace Amazon.QLDBSession
{
///
/// Interface for accessing QLDBSession
///
/// The transactional data APIs for Amazon QLDB
///
///
///
/// 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 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.
///
///
///
public partial interface IAmazonQLDBSession : IAmazonService, IDisposable
{
#region SendCommand
///
/// Sends a command to an Amazon QLDB ledger.
///
///
///
/// 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 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.
///
///
///
/// Container for the necessary parameters to execute the SendCommand service method.
///
/// The response from the SendCommand service method, as returned by QLDBSession.
///
/// Returned if the request is malformed or contains an error such as an invalid parameter
/// value or a missing required parameter.
///
///
/// Returned when the request exceeds the processing capacity of the ledger.
///
///
/// Returned if the session doesn't exist anymore because it timed out or expired.
///
///
/// Returned if a resource limit such as number of active sessions is exceeded.
///
///
/// Returned when a transaction cannot be written to the journal due to a failure in the
/// verification phase of optimistic concurrency control (OCC).
///
///
/// Returned when the rate of requests exceeds the allowed throughput.
///
/// REST API Reference for SendCommand Operation
SendCommandResponse SendCommand(SendCommandRequest request);
///
/// Sends a command to an Amazon QLDB ledger.
///
///
///
/// 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 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.
///
///
///
/// Container for the necessary parameters to execute the SendCommand service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SendCommand service method, as returned by QLDBSession.
///
/// Returned if the request is malformed or contains an error such as an invalid parameter
/// value or a missing required parameter.
///
///
/// Returned when the request exceeds the processing capacity of the ledger.
///
///
/// Returned if the session doesn't exist anymore because it timed out or expired.
///
///
/// Returned if a resource limit such as number of active sessions is exceeded.
///
///
/// Returned when a transaction cannot be written to the journal due to a failure in the
/// verification phase of optimistic concurrency control (OCC).
///
///
/// Returned when the rate of requests exceeds the allowed throughput.
///
/// REST API Reference for SendCommand Operation
Task SendCommandAsync(SendCommandRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}