startMetadataModelImport
inline suspend fun DatabaseMigrationClient.startMetadataModelImport(crossinline block: StartMetadataModelImportRequest.Builder.() -> Unit): 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
import aws.sdk.kotlin.services.databasemigrationservice.model.OriginTypeValue
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
}