forked from cloudtools/troposphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIoTSample.template
63 lines (63 loc) · 1.97 KB
/
IoTSample.template
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
{
"Resources": {
"MyCertificate": {
"Properties": {
"CertificateSigningRequest": "CSRParameter",
"Status": "StatusParameter"
},
"Type": "AWS::IoT::Certificate"
},
"MyPolicy": {
"Properties": {
"PolicyDocument": {
"Version": "2012-10-17"
},
"PolicyName": "NameParameter"
},
"Type": "AWS::IoT::Policy"
},
"MyPolicyPrincipalAttachment": {
"Properties": {
"PolicyName": "NameParameter",
"Principal": "arn:aws:iot:ap-southeast-2:123456789012"
},
"Type": "AWS::IoT::PolicyPrincipalAttachment"
},
"MyThing": {
"Properties": {
"AttributePayload": {
"Attributes": {
"myAttributeA": "MyAttributeValueA",
"myAttributeB": "MyAttributeValueB"
}
},
"ThingName": "NameParameter"
},
"Type": "AWS::IoT::Thing"
},
"MyThingPrincipalAttachment": {
"Properties": {
"Principal": "arn:aws:iot:ap-southeast-2:123456789012",
"ThingName": "NameParameter"
},
"Type": "AWS::IoT::ThingPrincipalAttachment"
},
"MyTopicRule": {
"Properties": {
"RuleName": "NameParameter",
"TopicRulePayload": {
"Actions": [
{
"Lambda": {
"FunctionArn": "arn"
}
}
],
"RuleDisabled": "true",
"Sql": "SELECT temp FROM SomeTopic WHERE temp > 60"
}
},
"Type": "AWS::IoT::TopicRule"
}
}
}