Struct aws_sdk_dynamodb::operation::batch_execute_statement::builders::BatchExecuteStatementFluentBuilder
source · pub struct BatchExecuteStatementFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to BatchExecuteStatement.
This operation allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL. Each read statement in a BatchExecuteStatement must specify an equality condition on all key attributes. This enforces that each SELECT statement in a batch returns at most a single item.
The entire batch must consist of either read statements or write statements, you cannot mix both in one batch.
A HTTP 200 response does not mean that all statements in the BatchExecuteStatement succeeded. Error details for individual statements can be found under the Error field of the BatchStatementResponse for each statement.
Implementations§
source§impl BatchExecuteStatementFluentBuilder
impl BatchExecuteStatementFluentBuilder
sourcepub fn as_input(&self) -> &BatchExecuteStatementInputBuilder
pub fn as_input(&self) -> &BatchExecuteStatementInputBuilder
Access the BatchExecuteStatement as a reference.
sourcepub async fn send(
self
) -> Result<BatchExecuteStatementOutput, SdkError<BatchExecuteStatementError, HttpResponse>>
pub async fn send( self ) -> Result<BatchExecuteStatementOutput, SdkError<BatchExecuteStatementError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<BatchExecuteStatementOutput, BatchExecuteStatementError, Self>
pub fn customize( self ) -> CustomizableOperation<BatchExecuteStatementOutput, BatchExecuteStatementError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn statements(self, input: BatchStatementRequest) -> Self
pub fn statements(self, input: BatchStatementRequest) -> Self
Appends an item to Statements.
To override the contents of this collection use set_statements.
The list of PartiQL statements representing the batch to run.
sourcepub fn set_statements(self, input: Option<Vec<BatchStatementRequest>>) -> Self
pub fn set_statements(self, input: Option<Vec<BatchStatementRequest>>) -> Self
The list of PartiQL statements representing the batch to run.
sourcepub fn get_statements(&self) -> &Option<Vec<BatchStatementRequest>>
pub fn get_statements(&self) -> &Option<Vec<BatchStatementRequest>>
The list of PartiQL statements representing the batch to run.
sourcepub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
pub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES- The response includes the aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails are included in the response.
sourcepub fn set_return_consumed_capacity(
self,
input: Option<ReturnConsumedCapacity>
) -> Self
pub fn set_return_consumed_capacity( self, input: Option<ReturnConsumedCapacity> ) -> Self
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES- The response includes the aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails are included in the response.
sourcepub fn get_return_consumed_capacity(&self) -> &Option<ReturnConsumedCapacity>
pub fn get_return_consumed_capacity(&self) -> &Option<ReturnConsumedCapacity>
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES- The response includes the aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails are included in the response.
Trait Implementations§
source§impl Clone for BatchExecuteStatementFluentBuilder
impl Clone for BatchExecuteStatementFluentBuilder
source§fn clone(&self) -> BatchExecuteStatementFluentBuilder
fn clone(&self) -> BatchExecuteStatementFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BatchExecuteStatementFluentBuilder
impl !RefUnwindSafe for BatchExecuteStatementFluentBuilder
impl Send for BatchExecuteStatementFluentBuilder
impl Sync for BatchExecuteStatementFluentBuilder
impl Unpin for BatchExecuteStatementFluentBuilder
impl !UnwindSafe for BatchExecuteStatementFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more