-
Notifications
You must be signed in to change notification settings - Fork 79
/
9.service.iot-topic-rule.json
71 lines (71 loc) · 1.48 KB
/
9.service.iot-topic-rule.json
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
{
"service": "canary-deployments-test",
"custom": {
"deploymentSettings": {
"stages": [
"dev"
]
}
},
"functions": {
"hello": {
"handler": "handler.hello",
"events": [
{
"http": "GET hello"
},
{
"stream": {
"type": "dynamodb",
"arn": {
"Fn::GetAtt": [
"StreamsTestTable",
"StreamArn"
]
}
}
},
{
"sns": "snsTopic"
},
{
"s3": "s3SampleBucket"
},
{
"iot": {
"sql": "SELECT * FROM 'some_topic'"
}
}
],
"deploymentSettings": {
"type": "Linear10PercentEvery1Minute",
"alias": "Live",
"preTrafficHook": "preHook",
"postTrafficHook": "postHook",
"alarms": [
"HelloFooAlarm"
],
"triggerConfigurations": [
{
"TriggerName": "Deploy Notifications",
"TriggerEvents": [
"DeploymentStart",
"DeploymentSuccess",
"DeploymentFailure",
"DeploymentStop",
"DeploymentRollback",
"DeploymentReady"
],
"TargetTriggerArn": "arn:aws:sns:region:account-id:topicname"
}
]
}
},
"preHook": {
"handler": "hooks.pre"
},
"postHook": {
"handler": "hooks.post"
}
}
}