-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTopicRule_DynamoDBActionProperty.go
85 lines (82 loc) · 4.31 KB
/
CfnTopicRule_DynamoDBActionProperty.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package awsiot
// Describes an action to write to a DynamoDB table.
//
// The `tableName` , `hashKeyField` , and `rangeKeyField` values must match the values used when you created the table.
//
// The `hashKeyValue` and `rangeKeyvalue` fields use a substitution template syntax. These templates provide data at runtime. The syntax is as follows: ${ *sql-expression* }.
//
// You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:
//
// `"hashKeyValue": "${topic(3)}"`
//
// The following field uses the timestamp:
//
// `"rangeKeyValue": "${timestamp()}"`
//
// For more information, see [DynamoDBv2 Action](https://docs.aws.amazon.com/iot/latest/developerguide/iot-rule-actions.html) in the *AWS IoT Developer Guide* .
//
// 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"
//
// dynamoDBActionProperty := &DynamoDBActionProperty{
// HashKeyField: jsii.String("hashKeyField"),
// HashKeyValue: jsii.String("hashKeyValue"),
// RoleArn: jsii.String("roleArn"),
// TableName: jsii.String("tableName"),
//
// // the properties below are optional
// HashKeyType: jsii.String("hashKeyType"),
// PayloadField: jsii.String("payloadField"),
// RangeKeyField: jsii.String("rangeKeyField"),
// RangeKeyType: jsii.String("rangeKeyType"),
// RangeKeyValue: jsii.String("rangeKeyValue"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html
//
type CfnTopicRule_DynamoDBActionProperty struct {
// The hash key name.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeyfield
//
HashKeyField *string `field:"required" json:"hashKeyField" yaml:"hashKeyField"`
// The hash key value.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeyvalue
//
HashKeyValue *string `field:"required" json:"hashKeyValue" yaml:"hashKeyValue"`
// 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-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// The name of the DynamoDB table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-tablename
//
TableName *string `field:"required" json:"tableName" yaml:"tableName"`
// The hash key type.
//
// Valid values are "STRING" or "NUMBER".
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-hashkeytype
//
HashKeyType *string `field:"optional" json:"hashKeyType" yaml:"hashKeyType"`
// The action payload.
//
// This name can be customized.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-payloadfield
//
PayloadField *string `field:"optional" json:"payloadField" yaml:"payloadField"`
// The range key name.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeyfield
//
RangeKeyField *string `field:"optional" json:"rangeKeyField" yaml:"rangeKeyField"`
// The range key type.
//
// Valid values are "STRING" or "NUMBER".
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeytype
//
RangeKeyType *string `field:"optional" json:"rangeKeyType" yaml:"rangeKeyType"`
// The range key value.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-rangekeyvalue
//
RangeKeyValue *string `field:"optional" json:"rangeKeyValue" yaml:"rangeKeyValue"`
}