View a markdown version of this page

Amazon S3 Vectors 的操作、资源和条件键 - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

Amazon S3 Vectors 的操作、资源和条件键

亚马逊 S3 向量(服务前缀: s3vectors) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

Amazon S3 Vectors 定义的操作

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

CreateIndex

授予权限以创建具有指定向量存储桶的新向量索引

Index*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:kmsKeyArn

s3vectors:sseType

s3vectors:VectorBucketTag/${TagKey}

写入

CreateVectorBucket

授予权限以创建新的向量存储桶

VectorBucket*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:kmsKeyArn

s3vectors:sseType

s3vectors:VectorBucketTag/${TagKey}

写入

DeleteIndex

授予权限以删除指定向量索引

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

DeleteVectorBucket

授予权限以删除指定向量存储桶

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

DeleteVectorBucketPolicy

授予权限以从指定向量存储桶删除 IAM 资源策略

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

权限管理,写入

DeleteVectors

授予权限以从指定向量索引删除一批向量

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

GetIndex

授予权限以获取指定向量索引的属性

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

读取

GetVectorBucket

授予权限以获取指定向量存储桶的属性

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

读取

GetVectorBucketPolicy

授予权限以获取指定向量存储桶的 IAM 资源策略

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

读取

GetVectors

授予权限以按其向量键获取一批向量

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

读取

ListIndexes

授予权限以获取指定向量存储桶中所有索引的分页列表

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

列表

ListTagsForResource

授予列出指定 S3Vector 资源标签的权限

Index

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

列表

VectorBucket

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

ListVectorBuckets

授予权限以获取账户中所有向量存储桶的分页列表

列表

ListVectors

授予权限以获取指定向量索引中所有向量的分页列表

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

列表

PutVectorBucketDefaultIndexMode

授予更新指定矢量存储桶的默认索引模式的权限

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

PutVectorBucketPolicy

授予权限以将 IAM 资源策略添加到指定向量存储桶

VectorBucket*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

权限管理,写入

PutVectors

授予权限以将一批向量添加到指定向量索引

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

QueryVectors

授予权限以在给定查询向量的指定搜索向量索引内查找近似最近邻

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

读取

TagResource

授予标记 S3Vector 资源的权限

Index

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:VectorBucketTag/${TagKey}

标记、写入

VectorBucket

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:VectorBucketTag/${TagKey}

UntagResource

授予取消标记 S3Vector 资源的权限

Index

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:VectorBucketTag/${TagKey}

标记、写入

VectorBucket

aws:ResourceTag/${TagKey}

aws:TagKeys

s3vectors:VectorBucketTag/${TagKey}

UpdateIndexMode

授予更新指定矢量索引的索引模式的权限

Index*

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

写入

Amazon S3 Vectors 定义的资源类型

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

Index

arn:${Partition}:s3vectors:${Region}:${Account}:bucket/${BucketName}/index/${IndexName}

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

VectorBucket

arn:${Partition}:s3vectors:${Region}:${Account}:bucket/${BucketName}

aws:ResourceTag/${TagKey}

s3vectors:VectorBucketTag/${TagKey}

Amazon S3 Vectors 的条件键

Amazon S3 Vectors 定义以下可以在 IAM 策略的 Condition 元素中使用的条件键。

条件键 描述 类型

aws:RequestTag/${TagKey}

按请求中传递的标签筛选访问权限

String

aws:ResourceTag/${TagKey}

按与资源关联的标签筛选访问权限

String

aws:TagKeys

按请求中传递的标签键筛选访问权限

ArrayOfString

s3vectors:VectorBucketTag/${TagKey}

按与矢量存储桶相关的标签筛选访问权限

String

s3vectors:kmsKeyArn

按以下条件筛选访问权限 Amazon 用于加密矢量存储桶的密钥的 KMS 密钥 ARN

ARN

s3vectors:sseType

按服务器端加密类型筛选访问权限

String