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

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

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 arn:aws:iot:us-east-1:123456789012:thing/thingOne/shadowOne
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:GetRetainedMessage topic

保留的消息主题

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

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

arn:aws:iot:us-east-1:123456789012:thing/thingOne arn:aws:iot:us-east-1:123456789012:thing/thingOne/shadowOne
iot:ListNamedShadowsForThing 全部 全部 *
iot:ListRetainedMessages 全部 全部 *
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:RetainPublish topic

用 REATIN 标志集发布的主题

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
iot:AssumeRoleWithCertificate rolealias

指向角色 ARN 的角色别名

arn:aws:iot:us-east-1:123456789012:rolealias/CredentialProviderRole_alias