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

***************************
start_metadata_model_import
***************************



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

  

  Loads the metadata for all the dependent database objects of the parent object.

   

  This operation uses your project's Amazon S3 bucket as a metadata cache to improve performance.

  

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


  **Request Syntax**
  ::

    response = client.start_metadata_model_import(
        MigrationProjectIdentifier='string',
        SelectionRules='string',
        Origin='SOURCE'|'TARGET',
        Refresh=True|False
    )
    
  :type MigrationProjectIdentifier: string
  :param MigrationProjectIdentifier: **[REQUIRED]** 

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

    

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

    A value that specifies the database objects to import.

    

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

    Whether to load metadata to the source or target database.

    

  
  :type Refresh: boolean
  :param Refresh: 

    If ``true``, DMS loads metadata for the specified objects from the source database.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The identifier for the import operation.

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

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

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

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

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

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

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

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

  