This template creates an AWS IoT policy that grants permission to connect to AWS IoT with a specific client ID. The policy allows the 'iot:Connect' action on the specified resource.

CloudFormation Template

AWSTemplateFormatVersion: '2010-09-09'
Description: AWS IoT Policy
Resources:
  MyIoTPolicy:
    Type: 'AWS::IoT::Policy'
    Properties:
      PolicyDocument:
        Version: undefined
        Statement:
          - Effect: undefined
            Action:
              - undefined
            Resource:
              - undefined
      PolicyName: undefined