資源型政策支援的 API 作業 - Amazon DynamoDB

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

資源型政策支援的 API 作業

本主題列出以資源為基礎的原則支援的 API 作業。但是,對於跨帳戶存取,您只能透過以資源為基礎的政策使用一組特定的 DynamoDB API。您無法將以資源為基礎的政策附加到資源類型,例如備份和匯入。與在這些資源類型上操作的 API 相對應的 IAM 動作會排除在以資源為基礎的政策中支援的 IAM 動作之外。由於資料表管理員在相同帳戶內設定內部資料表設定,因此 API (例如UpdateTimeToLiveDisableKinesisStreamingDestination) 不支援透過以資源為基礎的政策跨帳戶存取。

支援跨帳戶存取的 DynamoDB 資料平面和控制平面 API 也支援資料表名稱多載,讓您指定資料表 ARN 而非資料表名稱。您可以在這些 API 的TableName參數中指定資料表 ARN。但是,並非所有這些 API 都支持跨帳戶訪問。

下表列出以資源為基礎的政策和跨帳戶存取的 API 層級支援。

API 動作 資源型政策支援 跨帳戶支援
Data Plane - Tables/indexes

DeleteItem

GetItem

PutItem

查詢

掃描

UpdateItem

TransactGetItems

TransactWriteItems

BatchGetItem

BatchWriteItem

PartiQL

BatchExecuteStatement

ExecuteStatement

ExecuteTransaction

Control Plane - Tables

CreateTable

DeleteTable

DescribeTable

UpdateTable

Version 2019.11.21 (Current) global tables

DescribeTableReplicaAutoScaling

UpdateTableReplicaAutoScaling

Version 2017.11.29 (Legacy) global table

CreateGlobalTable

DescribeGlobalTable

DescribeGlobalTableSettings

ListGlobalTables

UpdateGlobalTable

UpdateGlobalTableSettings

Tags

ListTagsOfResource

TagResource

UntagResource

Backup/Restore

CreateBackup

DescribeBackup

DeleteBackup

RestoreTableFromBackup

Continuous Backup/Restore (PITR)

DescribeContinuousBackups

RestoreTableToPointInTime

UpdateContinuousBackups

Contributor Insights

DescribeContributorInsights

ListContributorInsights

UpdateContributorInsights

Export

DescribeExport

ExportTableToPointInTime

ListExports

Import

DescribeImport

ImportTable

ListImports

Kinesis

DescribeKinesisStreamingDestination

DisableKinesisStreamingDestination

EnableKinesisStreamingDestination

UpdateKinesisStreamingDestination

Resource policies

GetResourcePolicy

PutResourcePolicy

DeleteResourcePolicy

Time-to-Live

DescribeTimeToLive

UpdateTimeToLive

Others

DescribeLimits

DescribeEndpoints

ListBackups

ListTables

下表列出 DynamoDB Streams API 的 API 層級支援,適用於以資源為基礎的政策和跨帳戶存取。

API 動作 資源型政策支援 跨帳戶支援

DescribeStream

GetRecords

GetShardIterator

ListStreams