:doc:`DatabaseMigrationService <../../dms>` / Client / start_metadata_model_creation

*****************************
start_metadata_model_creation
*****************************



.. py:method:: DatabaseMigrationService.Client.start_metadata_model_creation(**kwargs)

  

  Creates source metadata model of the given type with the specified properties for schema conversion operations.

   

  .. note::

    

    This action supports only these directions: from SQL Server to Aurora PostgreSQL, or from SQL Server to RDS for PostgreSQL.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartMetadataModelCreation>`_  


  **Request Syntax**
  ::

    response = client.start_metadata_model_creation(
        MigrationProjectIdentifier='string',
        SelectionRules='string',
        MetadataModelName='string',
        Properties={
            'StatementProperties': {
                'Definition': 'string'
            }
        }
    )
    
  :type MigrationProjectIdentifier: string
  :param MigrationProjectIdentifier: **[REQUIRED]** 

    The migration project name or Amazon Resource Name (ARN).

    

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

    The JSON string that specifies the location where the metadata model will be created. Selection rules must specify a single schema. For more information, see Selection Rules in the DMS User Guide.

    

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

    The name of the metadata model.

    

  
  :type Properties: dict
  :param Properties: **[REQUIRED]** 

    The properties of metadata model in JSON format. This object is a Union. Only one member of this object can be specified or returned.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``StatementProperties``. 

  
    - **StatementProperties** *(dict) --* 

      The properties of the statement.

      

    
      - **Definition** *(string) --* **[REQUIRED]** 

        The SQL text of the statement.

        

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

    
    ::

      {
          'RequestIdentifier': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RequestIdentifier** *(string) --* 

        The identifier for the metadata model creation operation.

        
  
  **Exceptions**
  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.ResourceAlreadyExistsFault`

  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault`

  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.ResourceQuotaExceededFault`

  
  *   :py:class:`DatabaseMigrationService.Client.exceptions.AccessDeniedFault`

  