DatabaseMigrationService / Client / reload_tables
reload_tables#
- DatabaseMigrationService.Client.reload_tables(**kwargs)#
Reloads the target database table with the source data.
You can only use this operation with a task in the
RUNNING
state, otherwise the service will throw anInvalidResourceStateFault
exception.See also: AWS API Documentation
Request Syntax
response = client.reload_tables( ReplicationTaskArn='string', TablesToReload=[ { 'SchemaName': 'string', 'TableName': 'string' }, ], ReloadOption='data-reload'|'validate-only' )
- Parameters:
ReplicationTaskArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the replication task.
TablesToReload (list) –
[REQUIRED]
The name and schema of the table to be reloaded.
(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.
ReloadOption (string) –
Options for reload. Specify
data-reload
to reload the data and re-validate it if validation is enabled. Specifyvalidate-only
to re-validate the table. This option applies only when validation is enabled for the task.Valid values: data-reload, validate-only
Default value is data-reload.
- Return type:
dict
- Returns:
Response Syntax
{ 'ReplicationTaskArn': 'string' }
Response Structure
(dict) –
ReplicationTaskArn (string) –
The Amazon Resource Name (ARN) of the replication task.
Exceptions
DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault
DatabaseMigrationService.Client.exceptions.InvalidResourceStateFault