:doc:`Personalize <../../personalize>` / Client / list_schemas

************
list_schemas
************



.. py:method:: Personalize.Client.list_schemas(**kwargs)

  

  Returns the list of schemas associated with the account. The response provides the properties for each schema, including the Amazon Resource Name (ARN). For more information on schemas, see `CreateSchema <https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSchema.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSchemas>`_  


  **Request Syntax**
  ::

    response = client.list_schemas(
        nextToken='string',
        maxResults=123
    )
    
  :type nextToken: string
  :param nextToken: 

    A token returned from the previous call to ``ListSchemas`` for getting the next set of schemas (if they exist).

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of schemas to return.

    

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

    
    ::

      {
          'schemas': [
              {
                  'name': 'string',
                  'schemaArn': 'string',
                  'creationDateTime': datetime(2015, 1, 1),
                  'lastUpdatedDateTime': datetime(2015, 1, 1),
                  'domain': 'ECOMMERCE'|'VIDEO_ON_DEMAND'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **schemas** *(list) --* 

        A list of schemas.

        
        

        - *(dict) --* 

          Provides a summary of the properties of a dataset schema. For a complete listing, call the `DescribeSchema <https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSchema.html>`__ API.

          
          

          - **name** *(string) --* 

            The name of the schema.

            
          

          - **schemaArn** *(string) --* 

            The Amazon Resource Name (ARN) of the schema.

            
          

          - **creationDateTime** *(datetime) --* 

            The date and time (in Unix time) that the schema was created.

            
          

          - **lastUpdatedDateTime** *(datetime) --* 

            The date and time (in Unix time) that the schema was last updated.

            
          

          - **domain** *(string) --* 

            The domain of a schema that you created for a dataset in a Domain dataset group.

            
      
    
      

      - **nextToken** *(string) --* 

        A token used to get the next set of schemas (if they exist).

        
  
  **Exceptions**
  
  *   :py:class:`Personalize.Client.exceptions.InvalidNextTokenException`

  