startMetadataModelImport

Queues an import of metadata models (database objects such as tables, views, and procedures) from your data provider into the metadata tree. If other requests created by Start* operations are already in the migration project's queue, the import begins after they complete.

To check the status of the import request, call DescribeMetadataModelImports using the returned RequestIdentifier as a filter.

Required permissions:dms:StartMetadataModelImport. For more information, see Actions, resources, and condition keys for Database Migration Service.

Samples

// The following example queues a metadata import for all objects in the ExampleSchema schema from the
// source database.
val resp = databaseMigrationClient.startMetadataModelImport {
    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-source-server.us-east-1.rds.amazonaws.com\", \"schema-name\": \"ExampleSchema\"},\"rule-action\": \"explicit\"}]}"
    origin = OriginTypeValue.fromValue("SOURCE")
    refresh = false
}