startMetadataModelExportToTarget
Queues an export of the selected converted metadata models (database objects such as tables, views, and procedures) to your target database. If other requests created by Start* operations are already in the migration project's queue, the export begins after they complete.
This operation requires a non-virtual target data provider.
The export applies only metadata models created by conversion. Metadata models imported from the database are skipped.
If objects with the same name already exist on the target database, the export overwrites them.
The operation installs the extension pack on the target database. For more information, see Using extension packs in DMS Schema Conversion.
To check the status of the export request, call DescribeMetadataModelExportsToTarget using the returned RequestIdentifier as a filter.
Required permissions:dms:StartMetadataModelExportToTarget. For more information, see Actions, resources, and condition keys for Database Migration Service.
Samples
// The following example queues an export of converted metadata models for all objects in the
// ExampleSchema schema to the target database.
val resp = databaseMigrationClient.startMetadataModelExportToTarget {
migrationProjectIdentifier = "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS"
selectionRules = "{\"rules\": [{\"rule-type\": \"selection\",\"rule-id\": \"1\",\"rule-name\": \"1\",\"object-locator\": {\"server-name\": \"example-target-server.us-east-1.rds.amazonaws.com\", \"schema-name\": \"ExampleSchema\"},\"rule-action\": \"explicit\"}]}"
overwriteExtensionPack = true
}