Struct aws_sdk_iot::model::dynamo_db_action::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DynamoDbAction
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the DynamoDB table.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the DynamoDB table.
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.
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 operation(self, input: impl Into<String>) -> Self
pub fn operation(self, input: impl Into<String>) -> Self
The type of operation to be performed. This follows the substitution template, so it can be ${operation}
, but the substitution must result in one of the following: INSERT
, UPDATE
, or DELETE
.
sourcepub fn set_operation(self, input: Option<String>) -> Self
pub fn set_operation(self, input: Option<String>) -> Self
The type of operation to be performed. This follows the substitution template, so it can be ${operation}
, but the substitution must result in one of the following: INSERT
, UPDATE
, or DELETE
.
sourcepub fn hash_key_field(self, input: impl Into<String>) -> Self
pub fn hash_key_field(self, input: impl Into<String>) -> Self
The hash key name.
sourcepub fn set_hash_key_field(self, input: Option<String>) -> Self
pub fn set_hash_key_field(self, input: Option<String>) -> Self
The hash key name.
sourcepub fn hash_key_value(self, input: impl Into<String>) -> Self
pub fn hash_key_value(self, input: impl Into<String>) -> Self
The hash key value.
sourcepub fn set_hash_key_value(self, input: Option<String>) -> Self
pub fn set_hash_key_value(self, input: Option<String>) -> Self
The hash key value.
sourcepub fn hash_key_type(self, input: DynamoKeyType) -> Self
pub fn hash_key_type(self, input: DynamoKeyType) -> Self
The hash key type. Valid values are "STRING" or "NUMBER"
sourcepub fn set_hash_key_type(self, input: Option<DynamoKeyType>) -> Self
pub fn set_hash_key_type(self, input: Option<DynamoKeyType>) -> Self
The hash key type. Valid values are "STRING" or "NUMBER"
sourcepub fn range_key_field(self, input: impl Into<String>) -> Self
pub fn range_key_field(self, input: impl Into<String>) -> Self
The range key name.
sourcepub fn set_range_key_field(self, input: Option<String>) -> Self
pub fn set_range_key_field(self, input: Option<String>) -> Self
The range key name.
sourcepub fn range_key_value(self, input: impl Into<String>) -> Self
pub fn range_key_value(self, input: impl Into<String>) -> Self
The range key value.
sourcepub fn set_range_key_value(self, input: Option<String>) -> Self
pub fn set_range_key_value(self, input: Option<String>) -> Self
The range key value.
sourcepub fn range_key_type(self, input: DynamoKeyType) -> Self
pub fn range_key_type(self, input: DynamoKeyType) -> Self
The range key type. Valid values are "STRING" or "NUMBER"
sourcepub fn set_range_key_type(self, input: Option<DynamoKeyType>) -> Self
pub fn set_range_key_type(self, input: Option<DynamoKeyType>) -> Self
The range key type. Valid values are "STRING" or "NUMBER"
sourcepub fn payload_field(self, input: impl Into<String>) -> Self
pub fn payload_field(self, input: impl Into<String>) -> Self
The action payload. This name can be customized.
sourcepub fn set_payload_field(self, input: Option<String>) -> Self
pub fn set_payload_field(self, input: Option<String>) -> Self
The action payload. This name can be customized.
sourcepub fn build(self) -> DynamoDbAction
pub fn build(self) -> DynamoDbAction
Consumes the builder and constructs a DynamoDbAction
.