Struct aws_sdk_iot::types::DynamoDBv2Action
source · #[non_exhaustive]pub struct DynamoDBv2Action {
pub role_arn: String,
pub put_item: Option<PutItemInput>,
}
Expand description
Describes an action to write to a DynamoDB table.
This DynamoDB action writes each attribute in the message payload into it's own column in the DynamoDB table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: String
The ARN of the IAM role that grants access to the DynamoDB table.
put_item: Option<PutItemInput>
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
Implementations§
source§impl DynamoDBv2Action
impl DynamoDBv2Action
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The ARN of the IAM role that grants access to the DynamoDB table.
sourcepub fn put_item(&self) -> Option<&PutItemInput>
pub fn put_item(&self) -> Option<&PutItemInput>
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
source§impl DynamoDBv2Action
impl DynamoDBv2Action
sourcepub fn builder() -> DynamoDBv2ActionBuilder
pub fn builder() -> DynamoDBv2ActionBuilder
Creates a new builder-style object to manufacture DynamoDBv2Action
.
Trait Implementations§
source§impl Clone for DynamoDBv2Action
impl Clone for DynamoDBv2Action
source§fn clone(&self) -> DynamoDBv2Action
fn clone(&self) -> DynamoDBv2Action
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DynamoDBv2Action
impl Debug for DynamoDBv2Action
source§impl PartialEq for DynamoDBv2Action
impl PartialEq for DynamoDBv2Action
source§fn eq(&self, other: &DynamoDBv2Action) -> bool
fn eq(&self, other: &DynamoDBv2Action) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DynamoDBv2Action
Auto Trait Implementations§
impl Freeze for DynamoDBv2Action
impl RefUnwindSafe for DynamoDBv2Action
impl Send for DynamoDBv2Action
impl Sync for DynamoDBv2Action
impl Unpin for DynamoDBv2Action
impl UnwindSafe for DynamoDBv2Action
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