Struct aws_sdk_dynamodb::input::TransactWriteItemsInput
source · [−]#[non_exhaustive]pub struct TransactWriteItemsInput { /* private fields */ }
Implementations
sourceimpl TransactWriteItemsInput
impl TransactWriteItemsInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<TransactWriteItems, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<TransactWriteItems, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TransactWriteItems
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransactWriteItemsInput
.
sourceimpl TransactWriteItemsInput
impl TransactWriteItemsInput
sourcepub fn transact_items(&self) -> Option<&[TransactWriteItem]>
pub fn transact_items(&self) -> Option<&[TransactWriteItem]>
An ordered array of up to 25 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) -> Option<&ReturnConsumedCapacity>
pub fn 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
) -> Option<&ReturnItemCollectionMetrics>
pub fn 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) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
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.
Trait Implementations
sourceimpl Clone for TransactWriteItemsInput
impl Clone for TransactWriteItemsInput
sourcefn clone(&self) -> TransactWriteItemsInput
fn clone(&self) -> TransactWriteItemsInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransactWriteItemsInput
impl Debug for TransactWriteItemsInput
sourceimpl PartialEq<TransactWriteItemsInput> for TransactWriteItemsInput
impl PartialEq<TransactWriteItemsInput> for TransactWriteItemsInput
sourcefn eq(&self, other: &TransactWriteItemsInput) -> bool
fn eq(&self, other: &TransactWriteItemsInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for TransactWriteItemsInput
Auto Trait Implementations
impl RefUnwindSafe for TransactWriteItemsInput
impl Send for TransactWriteItemsInput
impl Sync for TransactWriteItemsInput
impl Unpin for TransactWriteItemsInput
impl UnwindSafe for TransactWriteItemsInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more