interface DynamoDBv2ActionProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.IoT.CfnTopicRule.DynamoDBv2ActionProperty | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_DynamoDBv2ActionProperty | 
|  Java | software.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBv2ActionProperty | 
|  Python | aws_cdk.aws_iot.CfnTopicRule.DynamoDBv2ActionProperty | 
|  TypeScript | aws-cdk-lib»aws_iot»CfnTopicRule»DynamoDBv2ActionProperty | 
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const dynamoDBv2ActionProperty: iot.CfnTopicRule.DynamoDBv2ActionProperty = {
  putItem: {
    tableName: 'tableName',
  },
  roleArn: 'roleArn',
};
Properties
| Name | Type | Description | 
|---|---|---|
| put | IResolvable | Put | Specifies the DynamoDB table to which the message data will be written. For example:. | 
| role | string | The ARN of the IAM role that grants access to the DynamoDB table. | 
putItem?
Type:
IResolvable | Put
(optional)
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.
roleArn?
Type:
string
(optional)
The ARN of the IAM role that grants access to the DynamoDB table.
