

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

# Amazon DynamoDB Accelerator (DAX) 的操作、资源和条件键
<a name="list_amazondynamodbacceleratordax"></a>

Amazon DynamoDB Accelerator (DAX)（服务前缀：`dax`）提供以下服务特定的资源、操作和条件上下文键以在 IAM 权限策略中使用。

参考：
+ 了解如何[配置该服务](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.html)。
+ 查看[适用于该服务的 API 操作列表](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/Welcome.html)。
+ 了解如何[使用 IAM](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access_permissions.html) 权限策略保护该服务及其资源。

**Topics**
+ [Amazon DynamoDB Accelerator (DAX) 定义的操作](#amazondynamodbacceleratordax-actions-as-permissions)
+ [Amazon DynamoDB Accelerator (DAX) 定义的资源类型](#amazondynamodbacceleratordax-resources-for-iam-policies)
+ [Amazon DynamoDB Accelerator (DAX) 的条件键](#amazondynamodbacceleratordax-policy-keys)

## Amazon DynamoDB Accelerator (DAX) 定义的操作
<a name="amazondynamodbacceleratordax-actions-as-permissions"></a>

您可以在 IAM 策略语句的 `Action` 元素中指定以下操作。可以使用策略授予在 AWS中执行操作的权限。您在策略中使用一项操作时，通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下，单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作表的**访问级别**列描述如何对操作进行分类（列出、读取、权限管理或标记）。此分类可以帮助您了解当您在策略中使用操作时，相应操作授予的访问级别。有关访问级别的更多信息，请参阅[策略摘要中的访问级别](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_understand-policy-summary-access-level-summaries.html)。

操作表的**资源类型**列指示每项操作是否支持资源级权限。如果该列没有任何值，您必须在策略语句的 `Resource` 元素中指定策略应用的所有资源（“\*”）。通过在 IAM policy 中使用条件来筛选访问权限，以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源，则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (\*) 表示。如果您在 IAM policy 中使用 `Resource` 元素限制资源访问权限，则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的（未指示为必需），则可以选择使用一种可选资源类型。

操作表的**条件键**列包括可以在策略语句的 `Condition` 元素中指定的键。有关与服务资源关联的条件键的更多信息，请参阅资源类型表的**条件键**列。

操作表的**依赖操作**列显示成功调用操作可能需要的其他权限。除了操作本身的权限以外，可能还需要这些权限。若某个操作指定依赖操作，则这些依赖关系可能适用于为该操作定义的其他资源，而不仅仅是表中列出的第一个资源。

**注意**  
资源条件键在[资源类型](#amazondynamodbacceleratordax-resources-for-iam-policies)表中列出。您可以在操作表的**资源类型（\* 为必需）**列中找到应用于某项操作的资源类型的链接。资源类型表中的资源类型包括**条件密钥**列，这是应用于操作表中操作的资源条件键。

有关下表中各列的详细信息，请参阅[操作表](reference_policies_actions-resources-contextkeys.html#actions_table)。


****  


- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchGetItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchGetItem.html) **
  - **描述:** 授予权限以从一个或多个表中返回一个或多个项目的属性
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html) **
  - **描述:** 授予权限以将多个项目放入一个或多个表中或将其删除
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ConditionCheckItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ConditionCheckItem.html) **
  - **描述:** 向使用给定主键检查项目是否存在一组属性的 ConditionCheckItem 操作授予权限
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateCluster.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateCluster.html) **
  - **描述:** 授予权限以创建 DAX 集群
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:**  dax:CreateParameterGroup <br /> dax:CreateSubnetGroup <br /> ec2:CreateNetworkInterface <br /> ec2:DeleteNetworkInterface <br /> ec2:DescribeNetworkInterfaces <br /> ec2:DescribeSecurityGroups <br /> ec2:DescribeSubnets <br /> ec2:DescribeVpcs <br /> iam:GetRole <br /> iam:PassRole 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateParameterGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateParameterGroup.html) **
  - **描述:** 授予权限以创建参数组
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateSubnetGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_CreateSubnetGroup.html) **
  - **描述:** 授予权限以创建子网组
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DecreaseReplicationFactor.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DecreaseReplicationFactor.html) **
  - **描述:** 授予权限以从 DAX 集群删除一个或多个节点
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteCluster.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteCluster.html) **
  - **描述:** 授予权限以删除以前预配置的 DAX 集群
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html) **
  - **描述:** 授予按主键删除表中单个项目的权限
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#amazondynamodbacceleratordax-dax_EnclosingOperation](#amazondynamodbacceleratordax-dax_EnclosingOperation)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteParameterGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteParameterGroup.html) **
  - **描述:** 授予权限以删除指定的参数组
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteSubnetGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DeleteSubnetGroup.html) **
  - **描述:** 授予权限以删除子网组
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeClusters.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeClusters.html) **
  - **描述:** 授予权限以返回有关所有预置 DAX 集群的信息
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeDefaultParameters.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeDefaultParameters.html) **
  - **描述:** 授予权限以返回 DAX 的默认系统参数信息
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeEvents.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeEvents.html) **
  - **描述:** 授予权限以返回与 DAX 集群和参数组相关的事件
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeParameterGroups.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeParameterGroups.html) **
  - **描述:** 授予权限以返回参数组描述列表
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeParameters.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeParameters.html) **
  - **描述:** 授予权限以返回特定参数组的详细参数列表
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeSubnetGroups.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_DescribeSubnetGroups.html) **
  - **描述:** 授予权限以返回子网组描述列表
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html) **
  - **描述:** 授予 GetItem 操作权限，该操作返回具有给定主键的项目的一组属性
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#amazondynamodbacceleratordax-dax_EnclosingOperation](#amazondynamodbacceleratordax-dax_EnclosingOperation)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_IncreaseReplicationFactor.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_IncreaseReplicationFactor.html) **
  - **描述:** 授予权限以将一个或多个节点添加到 DAX 集群
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_ListTags.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_ListTags.html) **
  - **描述:** 授予权限以返回 DAX 集群所有标签的列表
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html) **
  - **描述:** 授予权限以创建新项目，或将旧项目替换为新项目
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#amazondynamodbacceleratordax-dax_EnclosingOperation](#amazondynamodbacceleratordax-dax_EnclosingOperation)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html) **
  - **描述:** 授予权限以使用表的主键或二级索引直接访问该表或索引中的项目
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_RebootNode.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_RebootNode.html) **
  - **描述:** 授予权限以重启 DAX 集群的单个节点
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html) **
  - **描述:** 授予权限以通过访问表或者二级索引中的每个项目，返回一个或多个项目和项目属性
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_TagResource.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_TagResource.html) **
  - **描述:** 授予权限以将一组标签与 DAX 资源关联
  - **访问级别:** 标签
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UntagResource.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UntagResource.html) **
  - **描述:** 授予权限以从 DAX 资源中删除标签的关联
  - **访问级别:** 标签
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateCluster.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateCluster.html) **
  - **描述:** 授予权限以修改 DAX 集群的设置
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html) **
  - **描述:** 授予权限以编辑现有项目的属性，或者将新项目添加到表中（如果它不存在）
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#amazondynamodbacceleratordax-application](#amazondynamodbacceleratordax-application)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#amazondynamodbacceleratordax-dax_EnclosingOperation](#amazondynamodbacceleratordax-dax_EnclosingOperation)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateParameterGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateParameterGroup.html) **
  - **描述:** 授予权限以修改参数组的参数
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateSubnetGroup.html](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_dax_UpdateSubnetGroup.html) **
  - **描述:** 授予权限以修改现有子网组
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 



## Amazon DynamoDB Accelerator (DAX) 定义的资源类型
<a name="amazondynamodbacceleratordax-resources-for-iam-policies"></a>

以下资源类型是由该服务定义的，可以在 IAM 权限策略语句的 `Resource` 元素中使用这些资源类型。[操作表](#amazondynamodbacceleratordax-actions-as-permissions)中的每个操作指定了可以使用该操作指定的资源类型。您也可以在策略中包含条件键，从而定义资源类型。这些键显示在资源类型表的最后一列。有关下表中各列的详细信息，请参阅[资源类型表](reference_policies_actions-resources-contextkeys.html#resources_table)。


****  

| 资源类型 | ARN | 条件键 | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.html](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.html)  |  arn:${Partition}:dax:${Region}:${Account}:cache/${ClusterName}  |  | 

## Amazon DynamoDB Accelerator (DAX) 的条件键
<a name="amazondynamodbacceleratordax-policy-keys"></a>

Amazon DynamoDB Accelerator (DAX) 定义以下可以在 IAM policy 的 `Condition` 元素中使用的条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息，请参阅[条件键表](reference_policies_actions-resources-contextkeys.html#context_keys_table)。

要查看适用于所有服务的全局条件键，请参阅 [AWS 全局条件上下文键](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html)。


****  

| 条件键 | 描述 | Type | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.htmlspecifying-conditions.html#FGAC_DDB.ConditionKeys](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.htmlspecifying-conditions.html#FGAC_DDB.ConditionKeys)  | 用于阻止事务 API 调用并允许非事务 API 调用，反之亦然 | 字符串 | 