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

***********************
put_table_bucket_policy
***********************



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

  

  Creates a new table bucket policy or replaces an existing table bucket policy for a table bucket. For more information, see `Adding a table bucket policy <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-bucket-policy.html#table-bucket-policy-add>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

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

  

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


  **Request Syntax**
  ::

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

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

    

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

    The ``JSON`` that defines the policy.

    

  
  
  :returns: None
  **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`

  