-
Notifications
You must be signed in to change notification settings - Fork 17
/
FirehosePutRecordAction.go
74 lines (63 loc) · 2.23 KB
/
FirehosePutRecordAction.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
package awscdkiotactionsalpha
import (
_init_ "github.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2/internal"
"github.com/aws/aws-cdk-go/awscdkiotalpha/v2"
"github.com/aws/aws-cdk-go/awscdkkinesisfirehosealpha/v2"
)
// The action to put the record from an MQTT message to the Kinesis Data Firehose stream.
//
// Example:
// import firehose "github.com/aws/aws-cdk-go/awscdkkinesisfirehosealpha"
// import destinations "github.com/aws/aws-cdk-go/awscdkkinesisfirehosedestinationsalpha"
//
//
// bucket := s3.NewBucket(this, jsii.String("MyBucket"))
// stream := firehose.NewDeliveryStream(this, jsii.String("MyStream"), &DeliveryStreamProps{
// Destinations: []iDestination{
// destinations.NewS3Bucket(bucket),
// },
// })
//
// topicRule := iot.NewTopicRule(this, jsii.String("TopicRule"), &TopicRuleProps{
// Sql: iot.IotSql_FromStringAsVer20160323(jsii.String("SELECT * FROM 'device/+/data'")),
// Actions: []iAction{
// actions.NewFirehosePutRecordAction(stream, &FirehosePutRecordActionProps{
// BatchMode: jsii.Boolean(true),
// RecordSeparator: actions.FirehoseRecordSeparator_NEWLINE,
// }),
// },
// })
//
// Experimental.
type FirehosePutRecordAction interface {
awscdkiotalpha.IAction
}
// The jsii proxy struct for FirehosePutRecordAction
type jsiiProxy_FirehosePutRecordAction struct {
internal.Type__awscdkiotalphaIAction
}
// Experimental.
func NewFirehosePutRecordAction(stream awscdkkinesisfirehosealpha.IDeliveryStream, props *FirehosePutRecordActionProps) FirehosePutRecordAction {
_init_.Initialize()
if err := validateNewFirehosePutRecordActionParameters(stream, props); err != nil {
panic(err)
}
j := jsiiProxy_FirehosePutRecordAction{}
_jsii_.Create(
"@aws-cdk/aws-iot-actions-alpha.FirehosePutRecordAction",
[]interface{}{stream, props},
&j,
)
return &j
}
// Experimental.
func NewFirehosePutRecordAction_Override(f FirehosePutRecordAction, stream awscdkkinesisfirehosealpha.IDeliveryStream, props *FirehosePutRecordActionProps) {
_init_.Initialize()
_jsii_.Create(
"@aws-cdk/aws-iot-actions-alpha.FirehosePutRecordAction",
[]interface{}{stream, props},
f,
)
}