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

****************
create_namespace
****************



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

  

  Creates a namespace. A namespace is a logical grouping of tables within your table bucket, which you can use to organize tables. For more information, see `Create a namespace <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-namespace-create.html>`__ in the *Amazon Simple Storage Service User Guide*.

    Permissions  

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

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the table bucket to create the namespace in.

    

  
  :type namespace: list
  :param namespace: **[REQUIRED]** 

    A name for the namespace.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'tableBucketARN': 'string',
          'namespace': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tableBucketARN** *(string) --* 

        The Amazon Resource Name (ARN) of the table bucket the namespace was created in.

        
      

      - **namespace** *(list) --* 

        The name of the namespace.

        
        

        - *(string) --* 
    
  
  **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`

  