{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-template-response-schema.json",
  "title": "GetTemplateResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-templates-api-openapi.yml#/components/schemas/GetTemplateResponse",
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "description": "A unique identifier of a template."
    },
    "templateArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the template."
    },
    "name": {
      "type": "string",
      "description": "The name of the template."
    },
    "description": {
      "type": "string",
      "description": "A brief description of the template."
    },
    "layoutConfiguration": {
      "$ref": "#/$defs/LayoutConfiguration"
    },
    "requiredFields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RequiredField"
      },
      "description": "A list of fields that must contain a value for a case to be successfully created with this template."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource."
    },
    "status": {
      "type": "string",
      "description": "The status of the template."
    },
    "deleted": {
      "type": "boolean",
      "description": "Denotes whether or not the resource has been deleted."
    },
    "createdTime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp at which the resource was created."
    },
    "lastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp at which the resource was created or last modified."
    },
    "rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TemplateRule"
      },
      "description": "A list of case rules (also known as case field conditions) on a template."
    },
    "tagPropagationConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagPropagationConfiguration"
      },
      "description": "Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type."
    }
  },
  "required": [
    "templateId",
    "templateArn",
    "name",
    "status"
  ],
  "$defs": {
    "LayoutConfiguration": {
      "type": "object",
      "properties": {
        "defaultLayout": {
          "type": "string",
          "description": "Unique identifier of a layout."
        }
      }
    },
    "RequiredField": {
      "type": "object",
      "properties": {
        "fieldId": {
          "type": "string",
          "description": "Unique identifier of a field."
        }
      },
      "required": [
        "fieldId"
      ]
    },
    "TagPropagationConfiguration": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string",
          "description": "Supported resource types for tag propagation. Determines which resources will receive automatically propagated tags."
        },
        "tagMap": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags that will be applied to the created resource."
        }
      },
      "required": [
        "resourceType",
        "tagMap"
      ]
    },
    "TemplateRule": {
      "type": "object",
      "properties": {
        "caseRuleId": {
          "type": "string",
          "description": "Unique identifier of a case rule."
        },
        "fieldId": {
          "type": "string",
          "description": "Unique identifier of a field."
        }
      },
      "required": [
        "caseRuleId"
      ]
    }
  }
}