aws-cdk-lib.aws_iot.CfnTopicRule.DynamoDBv2ActionProperty

interface DynamoDBv2ActionProperty

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnTopicRule.DynamoDBv2ActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_DynamoDBv2ActionProperty
Javasoftware.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBv2ActionProperty
Pythonaws_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

NameTypeDescription
putItem?IResolvable | PutItemInputPropertySpecifies the DynamoDB table to which the message data will be written. For example:.
roleArn?stringThe ARN of the IAM role that grants access to the DynamoDB table.

putItem?

Type: IResolvable | PutItemInputProperty (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.