Struct aws_sdk_dynamodb::operation::transact_write_items::builders::TransactWriteItemsInputBuilder
source · #[non_exhaustive]pub struct TransactWriteItemsInputBuilder { /* private fields */ }
Expand description
A builder for TransactWriteItemsInput
.
Implementations§
source§impl TransactWriteItemsInputBuilder
impl TransactWriteItemsInputBuilder
sourcepub fn transact_items(self, input: TransactWriteItem) -> Self
pub fn transact_items(self, input: TransactWriteItem) -> Self
Appends an item to transact_items
.
To override the contents of this collection use set_transact_items
.
An ordered array of up to 100 TransactWriteItem
objects, each of which contains a ConditionCheck
, Put
, Update
, or Delete
object. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.
sourcepub fn set_transact_items(self, input: Option<Vec<TransactWriteItem>>) -> Self
pub fn set_transact_items(self, input: Option<Vec<TransactWriteItem>>) -> Self
An ordered array of up to 100 TransactWriteItem
objects, each of which contains a ConditionCheck
, Put
, Update
, or Delete
object. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.
sourcepub fn get_transact_items(&self) -> &Option<Vec<TransactWriteItem>>
pub fn get_transact_items(&self) -> &Option<Vec<TransactWriteItem>>
An ordered array of up to 100 TransactWriteItem
objects, each of which contains a ConditionCheck
, Put
, Update
, or Delete
object. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.
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 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.
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 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.
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 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.
sourcepub fn return_item_collection_metrics(
self,
input: ReturnItemCollectionMetrics,
) -> Self
pub fn return_item_collection_metrics( self, input: ReturnItemCollectionMetrics, ) -> Self
Determines whether item collection metrics are returned. If set to SIZE
, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set to NONE
(the default), no statistics are returned.
sourcepub fn set_return_item_collection_metrics(
self,
input: Option<ReturnItemCollectionMetrics>,
) -> Self
pub fn set_return_item_collection_metrics( self, input: Option<ReturnItemCollectionMetrics>, ) -> Self
Determines whether item collection metrics are returned. If set to SIZE
, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set to NONE
(the default), no statistics are returned.
sourcepub fn get_return_item_collection_metrics(
&self,
) -> &Option<ReturnItemCollectionMetrics>
pub fn get_return_item_collection_metrics( &self, ) -> &Option<ReturnItemCollectionMetrics>
Determines whether item collection metrics are returned. If set to SIZE
, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set to NONE
(the default), no statistics are returned.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Providing a ClientRequestToken
makes the call to TransactWriteItems
idempotent, meaning that multiple identical calls have the same effect as one single call.
Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the ReturnConsumedCapacity
parameter is set, then the initial TransactWriteItems
call returns the amount of write capacity units consumed in making the changes. Subsequent TransactWriteItems
calls with the same client token return the number of read capacity units consumed in reading the item.
A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an IdempotentParameterMismatch
exception.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Providing a ClientRequestToken
makes the call to TransactWriteItems
idempotent, meaning that multiple identical calls have the same effect as one single call.
Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the ReturnConsumedCapacity
parameter is set, then the initial TransactWriteItems
call returns the amount of write capacity units consumed in making the changes. Subsequent TransactWriteItems
calls with the same client token return the number of read capacity units consumed in reading the item.
A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an IdempotentParameterMismatch
exception.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Providing a ClientRequestToken
makes the call to TransactWriteItems
idempotent, meaning that multiple identical calls have the same effect as one single call.
Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the ReturnConsumedCapacity
parameter is set, then the initial TransactWriteItems
call returns the amount of write capacity units consumed in making the changes. Subsequent TransactWriteItems
calls with the same client token return the number of read capacity units consumed in reading the item.
A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an IdempotentParameterMismatch
exception.
sourcepub fn build(self) -> Result<TransactWriteItemsInput, BuildError>
pub fn build(self) -> Result<TransactWriteItemsInput, BuildError>
Consumes the builder and constructs a TransactWriteItemsInput
.
source§impl TransactWriteItemsInputBuilder
impl TransactWriteItemsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<TransactWriteItemsOutput, SdkError<TransactWriteItemsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<TransactWriteItemsOutput, SdkError<TransactWriteItemsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TransactWriteItemsInputBuilder
impl Clone for TransactWriteItemsInputBuilder
source§fn clone(&self) -> TransactWriteItemsInputBuilder
fn clone(&self) -> TransactWriteItemsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TransactWriteItemsInputBuilder
impl Default for TransactWriteItemsInputBuilder
source§fn default() -> TransactWriteItemsInputBuilder
fn default() -> TransactWriteItemsInputBuilder
source§impl PartialEq for TransactWriteItemsInputBuilder
impl PartialEq for TransactWriteItemsInputBuilder
source§fn eq(&self, other: &TransactWriteItemsInputBuilder) -> bool
fn eq(&self, other: &TransactWriteItemsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransactWriteItemsInputBuilder
Auto Trait Implementations§
impl Freeze for TransactWriteItemsInputBuilder
impl RefUnwindSafe for TransactWriteItemsInputBuilder
impl Send for TransactWriteItemsInputBuilder
impl Sync for TransactWriteItemsInputBuilder
impl Unpin for TransactWriteItemsInputBuilder
impl UnwindSafe for TransactWriteItemsInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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