Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Resources": {
- "exoDevicePolicy": {
- "Properties": {
- "PolicyDocument": {
- "Statement": [
- {
- "Action": [
- "iot:Connect"
- ],
- "Effect": "Allow",
- "Resources": [
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/update"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/get"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/_vShadowPub/${iot:Connection.Thing.ThingName}/subshadow/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic//download/control/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/error/iaqualink/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/data/iaqualink/*\n"
- ]
- ]
- }
- ]
- },
- {
- "Action": [
- "iot:Publish"
- ],
- "Effect": "Allow",
- "Resources": [
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/update"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/get"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/_vShadowPub/${iot:Connection.Thing.ThingName}/subshadow/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic//download/control/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/error/iaqualink/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/data/iaqualink/*\n"
- ]
- ]
- }
- ]
- },
- {
- "Action": [
- "iot:Receive"
- ],
- "Effect": "Allow",
- "Resources": [
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:aws:iot:",
- {
- "Ref": "AWS::Region"
- },
- ":",
- {
- "Ref": "AWS::AccountId"
- },
- ":",
- "topic//download/chunk/*\n"
- ]
- ]
- }
- ]
- }
- ],
- "Version": "2012-10-17"
- },
- "PolicyName": "exoDevicePolicy"
- },
- "Type": "AWS::IoT::Policy"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement