You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IoT::Types::DynamoDBv2Action

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb

Overview

Note:

When making an API call, you may pass DynamoDBv2Action data as a hash:

{
  role_arn: "AwsArn",
  put_item: {
    table_name: "TableName", # required
  },
}

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.

Instance Attribute Summary collapse

Instance Attribute Details

#put_itemTypes::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.

Returns:



1526
1527
1528
1529
1530
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1526

class DynamoDBv2Action < Struct.new(
  :role_arn,
  :put_item)
  include Aws::Structure
end

#role_arnString

The ARN of the IAM role that grants access to the DynamoDB table.

Returns:

  • (String)


1526
1527
1528
1529
1530
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1526

class DynamoDBv2Action < Struct.new(
  :role_arn,
  :put_item)
  include Aws::Structure
end