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
impl StructuralPartialEq for DynamoDBv2ActionBuilder
Auto Trait Implementations§
impl Freeze for DynamoDBv2ActionBuilder
impl RefUnwindSafe for DynamoDBv2ActionBuilder
impl Send for DynamoDBv2ActionBuilder
impl Sync for DynamoDBv2ActionBuilder
impl Unpin for DynamoDBv2ActionBuilder
impl UnwindSafe for DynamoDBv2ActionBuilder
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