View a markdown version of this page

Amazon S3 Vectors 的操作、资源和条件键 - 服务授权参考

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

Amazon S3 Vectors(服务前缀:s3vectors)提供以下特定于服务的操作、资源、操作和条件密钥,供在 IAM 权限策略中使用。

参考:

Amazon S3 Vectors 定义的操作

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

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

CreateIndex

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

索引*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

s3vectors: kms KeyArn

s3Vectors: SSEType

s3vectors:VectorBucketTag/$ {} TagKey

写入

CreateVectorBucket

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

VectorBucket*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

s3vectors: kms KeyArn

s3Vectors: SSEType

s3vectors:VectorBucketTag/$ {} TagKey

写入

DeleteIndex

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

DeleteVectorBucket

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

DeleteVectorBucketPolicy

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

权限管理,写入

DeleteVectors

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

GetIndex

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

读取

GetVectorBucket

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

读取

GetVectorBucketPolicy

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

读取

GetVectors

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

读取

ListIndexes

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

列表

ListTagsForResource

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

索引

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

列表

VectorBucket

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

ListVectorBuckets

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

列表

ListVectors

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

列表

PutVectorBucketDefaultIndexMode

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

PutVectorBucketPolicy

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

VectorBucket*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

权限管理,写入

PutVectors

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

QueryVectors

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

读取

TagResource

授予标记 S3Vector 资源的权限

索引

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 资源的权限

索引

aws: ResourceTag /$ {} TagKey

aws:TagKeys

s3vectors:VectorBucketTag/$ {} TagKey

标记、写作

VectorBucket

aws: ResourceTag /$ {} TagKey

aws:TagKeys

s3vectors:VectorBucketTag/$ {} TagKey

UpdateIndexMode

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

索引*

aws: ResourceTag /$ {} TagKey

s3vectors:VectorBucketTag/$ {} TagKey

写入

Amazon S3 Vectors 定义的资源类型

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

资源类型 ARN 条件键

索引

arn: $ {Partition}: s3vectors: $ {Region}: $ {Account}: bucket/$ {} /index/$ {} BucketName 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

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

字符串

aws: ResourceTag /$ {} TagKey

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

字符串

aws:TagKeys

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

ArrayOfString

s3vectors:VectorBucketTag/$ {} TagKey

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

字符串

s3vectors: kms KeyArn

通过 AWS KMS 密钥 ARN 筛选用于加密矢量存储桶的密钥的访问权限

进行筛选

s3Vectors: SSEType

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

字符串