AWS IoT
开发人员指南
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 Amazon AWS 入门

操作资源

要为 AWS IoT 策略操作指定资源,必须使用资源的 ARN。所有资源 ARN 均采用以下形式:

arn:aws:iot:region:AWS account ID:resource type/resource name

下表列出了要为每种类型的操作指定的操作:

操作 资源
iot:DeleteThingShadow

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:Connect 客户端 ID ARN - arn:aws:iot:us-east1:123456789012:client/myClientId
iot:Publish 主题 ARN - arn:aws:iot:us-east-1:123456789012:topic/myTopicName
iot:Subscribe 主题筛选条件 ARN - arn:aws:iot:us-east-1:123456789012:topicfilter/myTopicFilter
iot:Receive 主题 ARN - arn:aws:iot:us-east-1:123456789012:topic/myTopicName
iot:UpdateThingShadow

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:GetThingShadow

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:DescribeJobExecution

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:GetPendingJobExecutions

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:UpdateJobExecution

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne

iot:StartNextPendingJobExecution

事物 ARN - arn:aws:iot:us-east-1:123456789012:thing/thingOne