Struct aws_sdk_iot::types::builders::DynamoDBv2ActionBuilder
source · #[non_exhaustive]pub struct DynamoDBv2ActionBuilder { /* private fields */ }
Expand description
A builder for DynamoDBv2Action
.
Implementations§
source§impl DynamoDBv2ActionBuilder
impl DynamoDBv2ActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that grants access to the DynamoDB table.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that grants access to the DynamoDB table.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that grants access to the DynamoDB table.
sourcepub fn put_item(self, input: PutItemInput) -> Self
pub fn put_item(self, input: PutItemInput) -> Self
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.
This field is required.sourcepub fn set_put_item(self, input: Option<PutItemInput>) -> Self
pub fn set_put_item(self, input: Option<PutItemInput>) -> Self
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.
sourcepub fn get_put_item(&self) -> &Option<PutItemInput>
pub fn get_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.
sourcepub fn build(self) -> Result<DynamoDBv2Action, BuildError>
pub fn build(self) -> Result<DynamoDBv2Action, BuildError>
Consumes the builder and constructs a DynamoDBv2Action
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DynamoDBv2ActionBuilder
impl Clone for DynamoDBv2ActionBuilder
source§fn clone(&self) -> DynamoDBv2ActionBuilder
fn clone(&self) -> DynamoDBv2ActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DynamoDBv2ActionBuilder
impl Debug for DynamoDBv2ActionBuilder
source§impl Default for DynamoDBv2ActionBuilder
impl Default for DynamoDBv2ActionBuilder
source§fn default() -> DynamoDBv2ActionBuilder
fn default() -> DynamoDBv2ActionBuilder
source§impl PartialEq for DynamoDBv2ActionBuilder
impl PartialEq for DynamoDBv2ActionBuilder
source§fn eq(&self, other: &DynamoDBv2ActionBuilder) -> bool
fn eq(&self, other: &DynamoDBv2ActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.