:doc:`S3Tables <../../s3tables>` / Client / get_table_bucket_policy

***********************
get_table_bucket_policy
***********************



.. py:method:: S3Tables.Client.get_table_bucket_policy(**kwargs)

  

  Gets details about a table bucket policy. For more information, see `Viewing a table bucket policy <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-bucket-policy.html#table-bucket-policy-get>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

  You must have the ``s3tables:GetTableBucketPolicy`` permission to use this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/GetTableBucketPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_table_bucket_policy(
        tableBucketARN='string'
    )
    
  :type tableBucketARN: string
  :param tableBucketARN: **[REQUIRED]** 

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

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **resourcePolicy** *(string) --* 

        The ``JSON`` that defines the policy.

        
  
  **Exceptions**
  
  *   :py:class:`S3Tables.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`S3Tables.Client.exceptions.ForbiddenException`

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

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

  
  *   :py:class:`S3Tables.Client.exceptions.ConflictException`

  
  *   :py:class:`S3Tables.Client.exceptions.BadRequestException`

  