aws dms start-metadata-model-creation
Queues the creation of a metadata model in the source metadata tree. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To create a metadata model for a SQL statement
The following start-metadata-model-creation example queues the creation of a metadata model for a SQL statement. The selection rule specifies the schema where the metadata model is placed, and --metadata-model-name provides a unique identifier for use in subsequent operations.
aws dms start-metadata-model-creation --migration-project-identifier arn:aws:dms:us-west-2:123456789012:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS --selection-rules '{"rules": [{"rule-type": "selection", "rule-id": "1", "rule-name": "1", "object-locator": {"server-name": "example-source-server.us-west-2.rds.amazonaws.com", "database-name": "ExampleDatabase", "schema-name": "ExampleSchema"}, "rule-action": "explicit"}]}' --metadata-model-name ExampleStatement --properties StatementProperties={Definition="SELECT * FROM ExampleTable;"}Identify--migration-project-identifierThe migration project name or Amazon Resource Name (ARN).--selection-rulesA JSON string that identifies the source schema for the metadata model.--metadata-model-nameThe name for the metadata model to use in subsequent operations.--propertiesThe properties of the metadata model.Its output
{
"RequestIdentifier": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see Creating statement metadata models in the AWS Database Migration Service User Guide.
Options
--metadata-model-nameThe name for the metadata model to use in subsequent operations.--migration-project-identifierThe migration project name or Amazon Resource Name (ARN).--propertiesThe properties of the metadata model.--selection-rulesA JSON string that identifies the source schema for the metadata model.