interface DynamoDBv2ActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoT.Mixins.CfnTopicRulePropsMixin.DynamoDBv2ActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiot/mixins#CfnTopicRulePropsMixin_DynamoDBv2ActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnTopicRulePropsMixin.DynamoDBv2ActionProperty |
Python | aws_cdk.mixins_preview.aws_iot.mixins.CfnTopicRulePropsMixin.DynamoDBv2ActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iot » mixins » CfnTopicRulePropsMixin » 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 { mixins as iot_mixins } from '@aws-cdk/mixins-preview/aws-iot';
const dynamoDBv2ActionProperty: iot_mixins.CfnTopicRulePropsMixin.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.

.NET
Go
Java
Python
TypeScript