-
Notifications
You must be signed in to change notification settings - Fork 17
/
IotEventsPutMessageActionProps.go
62 lines (59 loc) · 2.15 KB
/
IotEventsPutMessageActionProps.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
package awscdkiotactionsalpha
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Configuration properties of an action for the IoT Events.
//
// Example:
// import iotevents "github.com/aws/aws-cdk-go/awscdkioteventsalpha"
// import iam "github.com/aws/aws-cdk-go/awscdk"
//
// var role iRole
//
//
// input := iotevents.NewInput(this, jsii.String("MyInput"), &InputProps{
// AttributeJsonPaths: []*string{
// jsii.String("payload.temperature"),
// jsii.String("payload.transactionId"),
// },
// })
// topicRule := iot.NewTopicRule(this, jsii.String("TopicRule"), &TopicRuleProps{
// Sql: iot.IotSql_FromStringAsVer20160323(jsii.String("SELECT * FROM 'device/+/data'")),
// Actions: []iAction{
// actions.NewIotEventsPutMessageAction(input, &IotEventsPutMessageActionProps{
// BatchMode: jsii.Boolean(true),
// // optional property, default is 'false'
// MessageId: jsii.String("${payload.transactionId}"),
// // optional property, default is a new UUID
// Role: role,
// }),
// },
// })
//
// Experimental.
type IotEventsPutMessageActionProps struct {
// The IAM role that allows access to AWS service.
// Default: a new role will be created.
//
// Experimental.
Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
// Whether to process the event actions as a batch.
//
// When batchMode is true, you can't specify a messageId.
//
// When batchMode is true and the rule SQL statement evaluates to an Array,
// each Array element is treated as a separate message when Events by calling BatchPutMessage.
// The resulting array can't have more than 10 messages.
// Default: false.
//
// Experimental.
BatchMode *bool `field:"optional" json:"batchMode" yaml:"batchMode"`
// The ID of the message.
//
// When batchMode is true, you can't specify a messageId--a new UUID value will be assigned.
// Assign a value to this property to ensure that only one input (message) with a given messageId will be processed by an AWS IoT Events detector.
// Default: - none -- a new UUID value will be assigned.
//
// Experimental.
MessageId *string `field:"optional" json:"messageId" yaml:"messageId"`
}