:doc:`Glue <../../glue>` / Client / query_schema_version_metadata

*****************************
query_schema_version_metadata
*****************************



.. py:method:: Glue.Client.query_schema_version_metadata(**kwargs)

  

  Queries for the schema version metadata information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/QuerySchemaVersionMetadata>`_  


  **Request Syntax**
  ::

    response = client.query_schema_version_metadata(
        SchemaId={
            'SchemaArn': 'string',
            'SchemaName': 'string',
            'RegistryName': 'string'
        },
        SchemaVersionNumber={
            'LatestVersion': True|False,
            'VersionNumber': 123
        },
        SchemaVersionId='string',
        MetadataList=[
            {
                'MetadataKey': 'string',
                'MetadataValue': 'string'
            },
        ],
        MaxResults=123,
        NextToken='string'
    )
    
  :type SchemaId: dict
  :param SchemaId: 

    A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

    

  
    - **SchemaArn** *(string) --* 

      The Amazon Resource Name (ARN) of the schema. One of ``SchemaArn`` or ``SchemaName`` has to be provided.

      

    
    - **SchemaName** *(string) --* 

      The name of the schema. One of ``SchemaArn`` or ``SchemaName`` has to be provided.

      

    
    - **RegistryName** *(string) --* 

      The name of the schema registry that contains the schema.

      

    
  
  :type SchemaVersionNumber: dict
  :param SchemaVersionNumber: 

    The version number of the schema.

    

  
    - **LatestVersion** *(boolean) --* 

      The latest version available for the schema.

      

    
    - **VersionNumber** *(integer) --* 

      The version number of the schema.

      

    
  
  :type SchemaVersionId: string
  :param SchemaVersionId: 

    The unique version ID of the schema version.

    

  
  :type MetadataList: list
  :param MetadataList: 

    Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.

    

  
    - *(dict) --* 

      A structure containing a key value pair for metadata.

      

    
      - **MetadataKey** *(string) --* 

        A metadata key.

        

      
      - **MetadataValue** *(string) --* 

        A metadata key’s corresponding value.

        

      
    

  :type MaxResults: integer
  :param MaxResults: 

    Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.

    

  
  :type NextToken: string
  :param NextToken: 

    A continuation token, if this is a continuation call.

    

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

    
    ::

      {
          'MetadataInfoMap': {
              'string': {
                  'MetadataValue': 'string',
                  'CreatedTime': 'string',
                  'OtherMetadataValueList': [
                      {
                          'MetadataValue': 'string',
                          'CreatedTime': 'string'
                      },
                  ]
              }
          },
          'SchemaVersionId': 'string',
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MetadataInfoMap** *(dict) --* 

        A map of a metadata key and associated values.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            A structure containing metadata information for a schema version.

            
            

            - **MetadataValue** *(string) --* 

              The metadata key’s corresponding value.

              
            

            - **CreatedTime** *(string) --* 

              The time at which the entry was created.

              
            

            - **OtherMetadataValueList** *(list) --* 

              Other metadata belonging to the same metadata key.

              
              

              - *(dict) --* 

                A structure containing other metadata for a schema version belonging to the same metadata key.

                
                

                - **MetadataValue** *(string) --* 

                  The metadata key’s corresponding value for the other metadata belonging to the same metadata key.

                  
                

                - **CreatedTime** *(string) --* 

                  The time at which the entry was created.

                  
            
          
        
    
  
      

      - **SchemaVersionId** *(string) --* 

        The unique version ID of the schema version.

        
      

      - **NextToken** *(string) --* 

        A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

  