AWS IoT 受管整合的動作、資源和條件索引鍵 - 服務授權參考

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

AWS IoT 受管整合的動作、資源和條件索引鍵

AWS IoT 受管整合 (服務字首:iotmanagedintegrations) 提供下列服務特定的資源、動作和條件內容索引鍵,可用於 IAM 許可政策。

參考資料:

AWS IoT 受管整合定義的動作

您可在 IAM 政策陳述式的 Action 元素中指定以下動作。使用政策來授予在 AWS中執行操作的許可。在政策中使用動作時,通常會允許或拒絕存取相同名稱的 API 操作或 CLI 命令。不過,在某些情況下,單一動作可控制對多個操作的存取。或者,某些操作需要多種不同的動作。

動作資料表的存取層級欄說明動作的分類方式 (列出、讀取、許可管理或標記)。此分類可協助您了解在政策中使用某動作時,該動作授予您的存取層級。如需存取層級的詳細資訊,請參閱政策摘要中的存取層級

「動作」資料表的資源類型欄會指出每個動作是否支援資源層級的許可。如果此欄沒有值,您必須在政策陳述式的 Resource 元素中指定政策適用的所有資源 ("*")。如果資料欄包含資源類型,則您可以在具有該動作的陳述式中指定該類型的 ARN。如果動作具有一或多個必要資源,呼叫者必須具有對這些資源使用動作的許可。表格中的必要資源會以星號 (*) 表示。如果您使用 IAM 政策中的 Resource 元素限制資源存取,則每種必要的資源類型必須要有 ARN 或模式。某些動作支援多種資源類型。如果資源類型是選用 (未顯示為必要),則您可以選擇使用其中一種選用資源類型。

「動作」資料表的條件索引鍵欄包含您可以在政策陳述式的 Condition 元素中指定的索引鍵。如需有關與服務資源相關聯之條件索引鍵的詳細資訊,請參閱「資源類型」資料表的條件索引鍵欄。

注意

資源條件索引鍵會列在資源類型資料表中。您可以在「動作」資料表的資源類型 (*必填) 欄中找到適用於動作的資源類型連結。「資源類型」資料表中的資源類型包括條件索引鍵欄,其中包含套用至「動作」資料表中動作的資源條件索引鍵。

如需下表各欄的詳細資訊,請參閱動作資料表

動作 描述 存取層級 資源類型 (*必填項目) 條件索引鍵 相依動作
CreateAccountAssociation 准許建立新的帳戶關聯 寫入

aws:RequestTag/${TagKey}

aws:TagKeys

iotmanagedintegrations:connectorDestinationId

CreateCloudConnector 准許建立新的雲端連接器 寫入
CreateConnectorDestination 准許建立新的連接器目的地 寫入

iotmanagedintegrations:cloudConnectorId

CreateCredentialLocker 准許建立產品登入資料儲存庫 寫入

aws:RequestTag/${TagKey}

aws:TagKeys

CreateDestination 准許建立新的目的地 寫入
CreateEventLogConfiguration 准許建立新的事件組態 寫入
CreateManagedThing 准許建立新的受管物件 寫入

credential-locker

aws:RequestTag/${TagKey}

aws:TagKeys

CreateNotificationConfiguration 准許建立新的通知組態 寫入
CreateOtaTask 准許建立新的 ota 任務 寫入

aws:RequestTag/${TagKey}

aws:TagKeys

CreateOtaTaskConfiguration 准許建立新的 ota 任務組態 寫入
CreateProvisioningProfile 准許建立新的佈建設定檔 寫入

aws:RequestTag/${TagKey}

aws:TagKeys

DeleteAccountAssociation 准許刪除帳戶關聯 寫入

account-association*

DeleteCloudConnector 准許刪除雲端連接器 寫入

iotmanagedintegrations:cloudConnectorId

DeleteConnectorDestination 准許刪除連接器目的地 寫入
DeleteCredentialLocker 准許刪除登入資料儲存庫 寫入

credential-locker*

DeleteDestination 准許刪除目的地 寫入
DeleteEventLogConfiguration 准許刪除事件日誌組態 寫入
DeleteManagedThing 准許刪除受管物件 寫入

managed-thing*

DeleteNotificationConfiguration 准許刪除通知組態 寫入
DeleteOtaTask 准許刪除 ota 任務 寫入

ota-task*

DeleteOtaTaskConfiguration 准許刪除 ota 任務組態 寫入
DeleteProvisioningProfile 准許刪除佈建設定檔 寫入

provisioning-profile*

DeregisterAccountAssociation 准許取消註冊帳戶關聯 寫入

account-association*

managed-thing*

GetAccountAssociation 准許取得帳戶關聯的相關資訊 讀取

account-association*

GetCloudConnector 准許取得雲端連接器的相關資訊 讀取
GetConnectorDestination 准許取得雲端目的地的相關資訊 讀取
GetCredentialLocker 准許取得登入資料儲存庫的相關資訊 讀取

credential-locker*

GetCustomEndpoint 准許取得自訂端點的相關資訊 讀取
GetDefaultEncryptionConfiguration 准許取得預設加密組態的相關資訊 讀取
GetDestination 准許取得目的地的相關資訊 讀取
GetDeviceDiscovery 准許取得裝置探索的相關資訊 讀取
GetEventLogConfiguration 准許取得事件日誌組態的相關資訊 讀取
GetHubConfiguration 准許取得中樞組態的相關資訊 讀取
GetManagedThing 准許取得受管物件的相關資訊 讀取

managed-thing*

GetManagedThingCapabilities 准許取得受管物件的功能報告 讀取

managed-thing*

GetManagedThingConnectivityData 准許取得受管物件的連線資料 讀取

managed-thing*

GetManagedThingMetaData 准許取得受管物件的中繼資料資訊 讀取

managed-thing*

GetManagedThingState 准許取得受管物件的裝置狀態資訊 讀取

managed-thing*

GetNotificationConfiguration 准許取得通知組態的資訊 讀取
GetOtaTask 准許取得 ota 任務的資訊 讀取

ota-task*

GetOtaTaskConfiguration 准許取得 ota 任務組態的資訊 讀取
GetProvisioningProfile 准許取得佈建設定檔的資訊 讀取

provisioning-profile*

GetRuntimeLogConfiguration 准許取得執行期日誌組態的資訊 讀取
GetSchemaVersion 准許取得結構描述版本的資訊 讀取
ListAccountAssociations 准許列出帳戶關聯的資訊 清單
ListCloudConnectors 准許列出雲端連接器的資訊 清單
ListConnectorDestinations 准許列出連接器目的地的資訊 清單
ListCredentialLockers 准許列出登入資料儲存庫的資訊 清單
ListDestinations 准許列出目的地的資訊 清單
ListDeviceDiscoveries 准許列出裝置探索的資訊 清單
ListDiscoveredDevices 准許列出裝置探索中發現的裝置資訊 讀取
ListEventLogConfigurations 准許列出事件日誌組態的資訊 讀取
ListManagedThingAccountAssociations 准許列出受管物件與帳戶關聯之間的關聯資訊 清單
ListManagedThingSchemas 准許列出與受管物件相關聯的結構描述 讀取

managed-thing*

ListManagedThings 准許列出受管物件的資訊 清單
ListNotificationConfigurations 准許列出通知組態的資訊 讀取
ListOtaTaskConfigurations 准許列出 ota 任務組態的資訊 讀取
ListOtaTaskExecutions 准許列出 ota 任務執行的資訊 讀取

ota-task*

ListOtaTasks 准許列出 ota 任務的資訊 清單
ListProvisioningProfiles 准許列出佈建設定檔的資訊 清單
ListSchemaVersions 准許列出結構描述的資訊 清單
ListTagsForResource 准許列出特定資源的標籤 讀取

account-association

credential-locker

managed-thing

ota-task

provisioning-profile

aws:ResourceTag/${TagKey}

PutDefaultEncryptionConfiguration 准許更新加密組態的預設設定 寫入
PutHubConfiguration 准許更新中樞組態 寫入
PutRuntimeLogConfiguration 准許更新執行期日誌組態 寫入
RegisterAccountAssociation 准許註冊與受管物件的帳戶關聯 寫入

account-association*

managed-thing*

RegisterCustomEndpoint 准許註冊自訂端點 寫入
ResetRuntimeLogConfiguration 准許重設執行時間日誌組態 寫入
SendConnectorEvent 准許傳送連接器事件 寫入
SendManagedThingCommand 准許將命令傳送至受管物件 寫入

managed-thing*

account-association

StartAccountAssociationRefresh 准許開始重新整理與帳戶關聯相關聯的存取字符 寫入

account-association*

StartDeviceDiscovery 准許啟動裝置探索 寫入

account-association

managed-thing

TagResource 准許為指定的資源新增標籤 標記

account-association

credential-locker

managed-thing

ota-task

provisioning-profile

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource 准許移除指定資源的標籤 標記

account-association

credential-locker

managed-thing

ota-task

provisioning-profile

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAccountAssociation 准許更新帳戶關聯 寫入

account-association*

UpdateCloudConnector 准許更新雲端連接器 寫入

iotmanagedintegrations:cloudConnectorId

UpdateConnectorDestination 准許更新連接器目的地 寫入
UpdateDestination 准許更新目的地 寫入
UpdateEventLogConfiguration 准許更新事件日誌組態 寫入
UpdateManagedThing 准許更新受管物件 寫入

managed-thing*

credential-locker

UpdateNotificationConfiguration 准許更新通知組態 寫入
UpdateOtaTask 准許更新 ota 任務 寫入

ota-task*

AWS IoT 受管整合定義的資源類型

此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。動作表格中的每個動作都代表可使用該動作指定的資源類型。資源類型也能定義您可以在政策中包含哪些條件索引鍵。這些索引鍵都會顯示在「資源類型」資料表的最後一欄。如需下表各欄的詳細資訊,請參閱資源類型資料表

資源類型 ARN 條件索引鍵
account-association arn:${Partition}:iotmanagedintegrations:${Region}:${Account}:account-association/${AccountAssociationId}

aws:ResourceTag/${TagKey}

credential-locker arn:${Partition}:iotmanagedintegrations:${Region}:${Account}:credential-locker/${Identifier}

aws:ResourceTag/${TagKey}

managed-thing arn:${Partition}:iotmanagedintegrations:${Region}:${Account}:managed-thing/${Identifier}

aws:ResourceTag/${TagKey}

ota-task arn:${Partition}:iotmanagedintegrations:${Region}:${Account}:ota-task/${Identifier}

aws:ResourceTag/${TagKey}

provisioning-profile arn:${Partition}:iotmanagedintegrations:${Region}:${Account}:provisioning-profile/${Identifier}

aws:ResourceTag/${TagKey}

AWS IoT 受管整合的條件索引鍵

AWS IoT 受管整合定義了下列條件索引鍵,可用於 IAM 政策的 Condition元素。您可以使用這些索引鍵來縮小套用政策陳述式的條件。如需下表各欄的詳細資訊,請參閱條件索引鍵表

若要檢視所有 服務可用的全域條件索引鍵,請參閱AWS 全域條件內容索引鍵

條件索引鍵 描述 類型
aws:RequestTag/${TagKey} 依在請求中允許的標籤索引鍵和值對篩選存取 字串
aws:ResourceTag/${TagKey} 依資源的標籤索引鍵和值對篩選存取 字串
aws:TagKeys 依要求中傳遞的標籤索引鍵來篩選存取權 ArrayOfString
iotmanagedintegrations:cloudConnectorId 依 CloudConnectorId 篩選存取權 字串
iotmanagedintegrations:connectorDestinationId 依 ConnectorDestinationId 篩選存取權 字串