getTargetSelectionRules

Converts source selection rules into their target counterparts for schema conversion operations.

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

Samples

// The following example converts source selection rules that select the ExampleTable table in the
// ExampleSchema schema into target selection rules that reference its converted counterpart.
val resp = databaseMigrationClient.getTargetSelectionRules {
    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\", \"database-name\": \"ExampleDatabase\", \"schema-name\": \"ExampleSchema\", \"table-name\": \"ExampleTable\"}, \"rule-action\": \"explicit\"}]}"
}