AWS IoT
Developer Guide

Thing Policy Example

The following policy allows a device to connect if the certificate used to authenticate with AWS IoT is attached to the thing for which the policy is being evaluated:

{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Action":["iot:Connect"], "Resource":[ "*" ], "Condition": { "Bool": { "iot:Connection.Thing.IsAttached": ["true"] } } } ] }