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

*************
get_namespace
*************



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

  

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

    Permissions  

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

  

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


  **Request Syntax**
  ::

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

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

    

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

    The name of the namespace.

    

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

    
    ::

      {
          'namespace': [
              'string',
          ],
          'createdAt': datetime(2015, 1, 1),
          'createdBy': 'string',
          'ownerAccountId': 'string',
          'namespaceId': 'string',
          'tableBucketId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The name of the namespace.

        
        

        - *(string) --* 
    
      

      - **createdAt** *(datetime) --* 

        The date and time the namespace was created at.

        
      

      - **createdBy** *(string) --* 

        The ID of the account that created the namespace.

        
      

      - **ownerAccountId** *(string) --* 

        The ID of the account that owns the namespcace.

        
      

      - **namespaceId** *(string) --* 

        The unique identifier of the namespace.

        
      

      - **tableBucketId** *(string) --* 

        The unique identifier of the table bucket containing this namespace.

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

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

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

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

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

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

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

  