-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTopicRule_DynamoDBv2ActionProperty.go
36 lines (33 loc) · 1.57 KB
/
CfnTopicRule_DynamoDBv2ActionProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package awsiot
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// dynamoDBv2ActionProperty := &DynamoDBv2ActionProperty{
// PutItem: &PutItemInputProperty{
// TableName: jsii.String("tableName"),
// },
// RoleArn: jsii.String("roleArn"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html
//
type CfnTopicRule_DynamoDBv2ActionProperty struct {
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html#cfn-iot-topicrule-dynamodbv2action-putitem
//
PutItem interface{} `field:"optional" json:"putItem" yaml:"putItem"`
// The ARN of the IAM role that grants access to the DynamoDB table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html#cfn-iot-topicrule-dynamodbv2action-rolearn
//
RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
}