AWS IoT Core 动作资源 - AWS IoT Core

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

AWS IoT Core 动作资源

要为 AWS IoT Core 策略操作指定资源,请使用该资源的 Amazon 资源名称 (ARN)。所有资源 ARN 都遵循以下格式:

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

下表显示了要为每种操作类型指定的资源。ARN 示例适用于账户 ID 123456789012 aws、分区以及特定于该区域。us-east-1有关 ARN 格式的更多信息,请参阅 AWS Identity and Access Management 用户指南中的 Amazon 资源名称 (ARN)

操作 资源类型 资源名称 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