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 ==
.