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、磁碟分割中,以及該區awsus-east-1特有的帳戶 ID。如需 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

發佈已設定 RETAIN 旗標的主題

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