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

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

AWS IoT Core 操作资源

要为 AWS IoT Core 策略操作指定一项资源,则必须使用该资源的 ARN。All resource ARNs are of the following form:

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

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

操作 资源类型 资源名称 ARN example
iot:DeleteThingShadow thing

The thing's name

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

iot:Connect client

The client's client ID

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

topic

A topic string

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

topicfilter

A topic filter string arn:aws:iot:us-east-1:123456789012:topicfilter/myTopicFilter
iot:Receive

topic

A topic string

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

The thing's name, and the shadow's name, if applicable

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

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

iot:GetThingShadow thing

The thing's name, and the shadow's name, if applicable

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

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

iot:DescribeJobExecution thing

The thing's name

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

iot:GetPendingJobExecutions thing

The thing's name

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

iot:UpdateJobExecution thing

The thing's name

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

iot:StartNextPendingJobExecution thing

The thing's name

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