Struct aws_sdk_dynamodb::client::fluent_builders::ExecuteStatement
source · [−]pub struct ExecuteStatement<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteStatement
.
This operation allows you to perform reads and singleton writes on data stored in DynamoDB, using PartiQL.
Implementations
impl<C, M, R> ExecuteStatement<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ExecuteStatement<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ExecuteStatementOutput, SdkError<ExecuteStatementError>> where
R::Policy: SmithyRetryPolicy<ExecuteStatementInputOperationOutputAlias, ExecuteStatementOutput, ExecuteStatementError, ExecuteStatementInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ExecuteStatementOutput, SdkError<ExecuteStatementError>> where
R::Policy: SmithyRetryPolicy<ExecuteStatementInputOperationOutputAlias, ExecuteStatementOutput, ExecuteStatementError, ExecuteStatementInputOperationRetryAlias>,
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.
The PartiQL statement representing the operation to run.
The PartiQL statement representing the operation to run.
Appends an item to Parameters
.
To override the contents of this collection use set_parameters
.
The parameters for the PartiQL statement, if any.
The parameters for the PartiQL statement, if any.
The consistency of a read operation. If set to true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
The consistency of a read operation. If set to true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
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:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ExecuteStatement<C, M, R>
impl<C, M, R> Send for ExecuteStatement<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ExecuteStatement<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ExecuteStatement<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ExecuteStatement<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