{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-create-template-request-schema.json",
  "title": "CreateTemplateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-template-api-openapi.yml#/components/schemas/CreateTemplateRequest",
  "type": "object",
  "properties": {
    "templateName": {
      "type": "string",
      "description": "The name of the migration workflow template."
    },
    "templateDescription": {
      "type": "string",
      "description": "A description of the migration workflow template."
    },
    "templateSource": {
      "$ref": "#/$defs/TemplateSource"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Idempotency in the Smithy documentation."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to add to the migration workflow template."
    }
  },
  "required": [
    "templateName",
    "templateSource"
  ],
  "$defs": {
    "TemplateSource": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The ID of the workflow from the source migration workflow template."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}