AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::Policy

IoT Policy

Resource Type definition for AWS::IoT::Policy

Properties

3 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
PolicyDocument
objectstring
Required
PolicyName
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::Policy

Resources:
  MyResource:
    Type: AWS::IoT::Policy
    Properties:
      PolicyDocument: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iot:CreatePolicyiot:GetPolicyiot:TagResourceiot:ListTagsForResourcekms:Decrypt

read

iot:GetPolicyiot:ListTagsForResourcekms:Decrypt

delete

iot:DeletePolicyiot:GetPolicyiot:ListPolicyVersionsiot:DeletePolicyVersionkms:Decrypt

update

iot:GetPolicyiot:ListPolicyVersionsiot:CreatePolicyVersioniot:DeletePolicyVersioniot:SetDefaultPolicyVersioniot:TagResourceiot:UntagResourceiot:ListTagsForResource

list

iot:ListPolicies

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoT
Properties5
Required1
TaggingSupported
Primary IDId

Supported Operations

CreateReadDeleteUpdateList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

PolicyName

External Links