aws dms start-metadata-model-export-as-script
Queues an export of metadata models (database objects such as tables, views, and procedures) as a data definition language (DDL) script. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--file-nameThe name for the exported file.--migration-project-identifierThe migration project name or Amazon Resource Name (ARN).--originSpecifies the metadata tree to export from.--selection-rulesA JSON string that identifies the metadata models to export as a SQL script.