Class CfnTopicRule.DynamoDBv2ActionProperty
Describes an action to write to a DynamoDB table.
Inheritance
System.Object
CfnTopicRule.DynamoDBv2ActionProperty
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public class DynamoDBv2ActionProperty : Object, CfnTopicRule.IDynamoDBv2ActionProperty
Syntax (vb)
Public Class DynamoDBv2ActionProperty
Inherits Object
Implements CfnTopicRule.IDynamoDBv2ActionProperty
Remarks
This DynamoDB action writes each attribute in the message payload into it's own column in the DynamoDB table.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var dynamoDBv2ActionProperty = new DynamoDBv2ActionProperty {
PutItem = new PutItemInputProperty {
TableName = "tableName"
},
RoleArn = "roleArn"
};
Synopsis
Constructors
DynamoDBv2ActionProperty() |
Properties
PutItem | Specifies the DynamoDB table to which the message data will be written. For example:. |
RoleArn | The ARN of the IAM role that grants access to the DynamoDB table. |
Constructors
DynamoDBv2ActionProperty()
public DynamoDBv2ActionProperty()
Properties
PutItem
Specifies the DynamoDB table to which the message data will be written. For example:.
public object PutItem { get; set; }
Property Value
System.Object
Remarks
{ "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
The ARN of the IAM role that grants access to the DynamoDB table.
public string RoleArn { get; set; }
Property Value
System.String