{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dms/json-schema/amazon-dms-start-metadata-model-creation-message-schema.json",
  "title": "StartMetadataModelCreationMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dms-metadata-model-creation-api-openapi.yml#/components/schemas/StartMetadataModelCreationMessage",
  "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 source schema for the metadata model. For the selection rule format and examples, see Selection rules in DMS Schema Conversion. Usage: Accepts only source selection rules, where server-name in the object locator matches the source data provider. Supports only explicit rule actions. Exactly one rule is allowed."
    },
    "MetadataModelName": {
      "type": "string",
      "description": "The name for the metadata model to use in subsequent operations."
    },
    "Properties": {
      "$ref": "#/$defs/MetadataModelProperties"
    }
  },
  "required": [
    "MigrationProjectIdentifier",
    "SelectionRules",
    "MetadataModelName",
    "Properties"
  ],
  "$defs": {
    "MetadataModelProperties": {
      "type": "object",
      "properties": {
        "StatementProperties": {
          "$ref": "#/$defs/StatementProperties"
        }
      },
      "description": "Exactly one member is set."
    },
    "StatementProperties": {
      "type": "object",
      "properties": {
        "Definition": {
          "type": "string",
          "description": "The SQL text of the statement."
        }
      },
      "required": [
        "Definition"
      ]
    }
  }
}