S3Vectors / Client / put_vector_bucket_policy
put_vector_bucket_policy¶
- S3Vectors.Client.put_vector_bucket_policy(**kwargs)¶
Note
Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a bucket policy for a vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
Permissions
You must have the
s3vectors:PutVectorBucketPolicy
permission to use this operation.See also: AWS API Documentation
Request Syntax
response = client.put_vector_bucket_policy( vectorBucketName='string', vectorBucketArn='string', policy='string' )
- Parameters:
vectorBucketName (string) – The name of the vector bucket.
vectorBucketArn (string) – The Amazon Resource Name (ARN) of the vector bucket.
policy (string) –
[REQUIRED]
The
JSON
that defines the policy. For more information about bucket policies for S3 Vectors, see Managing vector bucket policies in the Amazon S3 User Guide.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions