Interface CfnTopicRule.IDynamoDBv2ActionProperty
Describes an action to write to a DynamoDB table.
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDynamoDBv2ActionProperty
Syntax (vb)
Public Interface 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
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. |
Properties
PutItem
Specifies the DynamoDB table to which the message data will be written. For example:.
virtual object PutItem { get; }
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.
virtual string RoleArn { get; }
Property Value
System.String