{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dms/json-schema/amazon-dms-start-metadata-model-import-message-schema.json",
  "title": "StartMetadataModelImportMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dms-operations-api-openapi.yml#/components/schemas/StartMetadataModelImportMessage",
  "type": "object",
  "properties": {
    "MigrationProjectIdentifier": {
      "type": "string",
      "description": "The migration project name or Amazon Resource Name (ARN)."
    },
    "SelectionRules": {
      "type": "string",
      "description": "A JSON string that identifies the metadata models to import from the data provider. For the selection rule format and examples, see Selection rules in DMS Schema Conversion. Usage: Accepts source or target selection rules depending on the Origin parameter. The server-name in the object locator must match the corresponding data provider. Supports explicit, include, and exclude rule actions."
    },
    "Origin": {
      "type": "string",
      "enum": [
        "SOURCE",
        "TARGET"
      ],
      "description": "Specifies the metadata tree to import into. You cannot import from a virtual target data provider."
    },
    "Refresh": {
      "type": "boolean",
      "description": "Specifies whether to refresh the selected metadata models from the data provider. When true, the import reloads the selected metadata models with current definitions and removes their existing subtree. When false (default), the import loads the full subtree that has not yet been loaded into the metadata tree."
    }
  },
  "required": [
    "MigrationProjectIdentifier",
    "SelectionRules",
    "Origin"
  ]
}