View a markdown version of this page

用于授予搜索向量索引访问权限的 IAM 策略 - Amazon DynamoDB

用于授予搜索向量索引访问权限的 IAM 策略

以下策略授予在特定向量索引上执行 SearchVectors 操作的权限。向量索引的资源 ARN 使用的格式与其他 DynamoDB 索引相同。

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "dynamodb:SearchVectors", "Resource": "arn:aws:dynamodb:us-west-2:123456789012:table/Products/index/ProductEmbeddingIndex" } ] }

要授予对表上所有索引的 SearchVectors 访问权限,请使用通配符(*)作为索引名称。

"Resource": "arn:aws:dynamodb:us-west-2:123456789012:table/Products/index/*"
无需额外权限

创建或删除向量索引不需要额外的 IAM 权限。现有的 dynamodb:CreateTabledynamodb:UpdateTable 权限便已足够。

SearchVectors 不支持 FGAC 条件键

SearchVectors API 不支持精细访问控制(FGAC)条件键。您不能使用 dynamodb:LeadingKeysdynamodb:Attributesdynamodb:Select 条件键来限制 SearchVectors 访问权限。