@aws-cdk_aws-iot-actions-alpha.DynamoDBv2PutItemAction

class DynamoDBv2PutItemAction 🔹

LanguageType name
.NETAmazon.CDK.AWS.IoT.Actions.Alpha.DynamoDBv2PutItemAction
Gogithub.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#DynamoDBv2PutItemAction
Javasoftware.amazon.awscdk.services.iot.actions.alpha.DynamoDBv2PutItemAction
Pythonaws_cdk.aws_iot_actions_alpha.DynamoDBv2PutItemAction
TypeScript (source)@aws-cdk/aws-iot-actions-alpha » DynamoDBv2PutItemAction

Implements IAction

The action to put the record from an MQTT message to the DynamoDB table.

Example

import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';

declare const table: dynamodb.Table;

const topicRule = new iot.TopicRule(this, 'TopicRule', {
  sql: iot.IotSql.fromStringAsVer20160323(
    "SELECT * FROM 'device/+/data'",
  ),
  actions: [
    new actions.DynamoDBv2PutItemAction(table)
  ],
});

Initializer

new DynamoDBv2PutItemAction(table: ITable, props?: DynamoDBv2PutItemActionProps)

Parameters

  • table ITable — the DynamoDB table in which to put the items.
  • props DynamoDBv2PutItemActionProps — Optional properties to not use default.