{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"MyPolicy": {
"Type": "AWS::IoT::Policy",
"Properties": {
"PolicyName": {
"Ref": "NameParameter"
},
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"iot:Connect"
],
"Resource": [
"*"
]
}]
}
}
}
},
"Parameters": {
"NameParameter": {
"Type": "String"
}
}
}