startMetadataModelImport
abstract suspend fun startMetadataModelImport(input: StartMetadataModelImportRequest): StartMetadataModelImportResponse
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.
Samples
fun main() {
//sampleStart
// Loads the metadata for all the dependent database objects of the parent object.
val resp = databaseMigrationClient.startMetadataModelImport {
migrationProjectIdentifier = "arn:aws:dms:us-east-1:012345678901:migration-project:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ012"
selectionRules = "{\"rules\": [{\"rule-type\": \"selection\",\"rule-id\": \"1\",\"rule-name\": \"1\",\"object-locator\": {\"server-name\": \"aurora-pg.cluster-0a1b2c3d4e5f.us-east-1.rds.amazonaws.com\", \"schema-name\": \"schema1\", \"table-name\": \"Cities\"},\"rule-action\": \"explicit\"} ]}"
origin = OriginTypeValue.fromValue("SOURCE")
refresh = false
}
//sampleEnd
}