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

*************************
reload_replication_tables
*************************



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

  

  Reloads the target database table with the source data for a given DMS Serverless replication configuration.

   

  You can only use this operation with a task in the RUNNING state, otherwise the service will throw an ``InvalidResourceStateFault`` exception.

  

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


  **Request Syntax**
  ::

    response = client.reload_replication_tables(
        ReplicationConfigArn='string',
        TablesToReload=[
            {
                'SchemaName': 'string',
                'TableName': 'string'
            },
        ],
        ReloadOption='data-reload'|'validate-only'
    )
    
  :type ReplicationConfigArn: string
  :param ReplicationConfigArn: **[REQUIRED]** 

    The Amazon Resource Name of the replication config for which to reload tables.

    

  
  :type TablesToReload: list
  :param TablesToReload: **[REQUIRED]** 

    The list of tables to reload.

    

  
    - *(dict) --* 

      Provides the name of the schema and table to be reloaded.

      

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

        The schema name of the table to be reloaded.

        

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

        The table name of the table to be reloaded.

        

      
    

  :type ReloadOption: string
  :param ReloadOption: 

    Options for reload. Specify ``data-reload`` to reload the data and re-validate it if validation is enabled. Specify ``validate-only`` to re-validate the table. This option applies only when validation is enabled for the replication.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ReplicationConfigArn** *(string) --* 

        The Amazon Resource Name of the replication config for which to reload tables.

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

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

  