Amazon IoT Core 操作资源 - Amazon IoT Core
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

Amazon IoT Core 操作资源

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

arn:aws:iot:region:AWS-account-ID:Resource-type/Resource-name

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

操作 资源类型 资源名称 ARN 示例
iot:Connect client

客户端的客户端 ID

arn:aws:iot:us-east-1:123456789012:client/myClientId
iot:DeleteThingShadow thing

事物名称

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

iot:DescribeJobExecution thing

事物名称

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

iot:GetPendingJobExecutions thing

事物名称

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

iot:GetThingShadow thing

事物的名称和影子的名称(如适用)

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

arn:aws:iot:us-east-1:123456789012:thing/thingOne/shadowOne

iot:ListNamedShadowsForThing thing

事物名称

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

iot:Publish

topic

主题字符串

arn:aws:iot:us-east-1:123456789012:topic/myTopicName
iot:Receive

topic

主题字符串

arn:aws:iot:us-east-1:123456789012:topic/myTopicName
iot:StartNextPendingJobExecution thing

事物名称

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

iot:Subscribe

topicfilter

主题筛选条件字符串 arn:aws:iot:us-east-1:123456789012:topicfilter/myTopicFilter
iot:UpdateJobExecution thing

事物名称

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

iot:UpdateThingShadow thing

事物的名称和影子的名称(如适用)

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

arn:aws:iot:us-east-1:123456789012:thing/thingOne/shadowOne