:doc:`S3Vectors <../../s3vectors>` / Client / put_vector_bucket_policy

************************
put_vector_bucket_policy
************************



.. py:method:: S3Vectors.Client.put_vector_bucket_policy(**kwargs)

  

  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 <https://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/PutVectorBucketPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_vector_bucket_policy(
        vectorBucketName='string',
        vectorBucketArn='string',
        policy='string'
    )
    
  :type vectorBucketName: string
  :param vectorBucketName: 

    The name of the vector bucket.

    

  
  :type vectorBucketArn: string
  :param vectorBucketArn: 

    The Amazon Resource Name (ARN) of the vector bucket.

    

  
  :type policy: string
  :param policy: **[REQUIRED]** 

    The ``JSON`` that defines the policy. For more information about bucket policies for S3 Vectors, see `Managing vector bucket policies <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-bucket-policy.html>`__ in the *Amazon S3 User Guide*.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`S3Vectors.Client.exceptions.ValidationException`

  
  *   :py:class:`S3Vectors.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`S3Vectors.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`S3Vectors.Client.exceptions.InternalServerException`

  
  *   :py:class:`S3Vectors.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`S3Vectors.Client.exceptions.RequestTimeoutException`

  
  *   :py:class:`S3Vectors.Client.exceptions.NotFoundException`

  