Struct aws_sdk_dynamodb::client::fluent_builders::ExecuteTransaction
source · [−]pub struct ExecuteTransaction<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteTransaction
.
This operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL.
The entire transaction must consist of either read statements or write statements, you cannot mix both in one transaction. The EXISTS function is an exception and can be used to check the condition of specific attributes of the item in a similar manner to ConditionCheck
in the TransactWriteItems API.
Implementations
impl<C, M, R> ExecuteTransaction<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ExecuteTransaction<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ExecuteTransactionOutput, SdkError<ExecuteTransactionError>> where
R::Policy: SmithyRetryPolicy<ExecuteTransactionInputOperationOutputAlias, ExecuteTransactionOutput, ExecuteTransactionError, ExecuteTransactionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ExecuteTransactionOutput, SdkError<ExecuteTransactionError>> where
R::Policy: SmithyRetryPolicy<ExecuteTransactionInputOperationOutputAlias, ExecuteTransactionOutput, ExecuteTransactionError, ExecuteTransactionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Appends an item to TransactStatements
.
To override the contents of this collection use set_transact_statements
.
The list of PartiQL statements representing the transaction to run.
The list of PartiQL statements representing the transaction to run.
Set this value to get remaining results, if NextToken
was returned in the statement response.
Set this value to get remaining results, if NextToken
was returned in the statement response.
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems.
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ExecuteTransaction<C, M, R>
impl<C, M, R> Send for ExecuteTransaction<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ExecuteTransaction<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ExecuteTransaction<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ExecuteTransaction<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more