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

************************
get_vector_bucket_policy
************************



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

  

  Gets details about a vector bucket policy. 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:GetVectorBucketPolicy`` permission to use this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/GetVectorBucketPolicy>`_  


  **Request Syntax**
  ::

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

    The name of the vector bucket.

    

  
  :type vectorBucketArn: string
  :param vectorBucketArn: 

    The ARN of the vector bucket.

    

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

    
    ::

      {
          'policy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policy** *(string) --* 

        The ``JSON`` that defines the policy.

        
  
  **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`

  