{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-connect-tasktemplate.json",
  "title": "AWSConnectTaskTemplateProperties",
  "description": "Resource Type definition for AWS::Connect::TaskTemplate.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-connect-tasktemplate.json",
    "sourceSha256": "93f72740e2e31d0131e214b1b598caf1569278ec6edcc169646d2af92b36dd3c"
  },
  "type": "object",
  "properties": {
    "InstanceArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier (arn) of the instance."
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the task template."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the task template."
    },
    "ContactFlowArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the contact flow."
    },
    "Constraints": {
      "description": "The constraints for the task template",
      "type": "object",
      "properties": {
        "InvisibleFields": {
          "$ref": "#/$defs/InvisibleTaskTemplateFields"
        },
        "RequiredFields": {
          "$ref": "#/$defs/RequiredTaskTemplateFields"
        },
        "ReadOnlyFields": {
          "$ref": "#/$defs/ReadOnlyTaskTemplateFields"
        }
      },
      "additionalProperties": false
    },
    "Defaults": {
      "description": "",
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/DefaultFieldValue"
      }
    },
    "Fields": {
      "description": "The list of task template's fields",
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/Field"
      }
    },
    "Status": {
      "$ref": "#/$defs/Status"
    },
    "ClientToken": {
      "$ref": "#/$defs/ClientToken"
    },
    "Tags": {
      "description": "One or more tags.",
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Connect::TaskTemplate",
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "required": [
    "InstanceArn"
  ],
  "$defs": {
    "Status": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The status of the task template",
      "title": "AWSConnectTaskTemplateStatusDefinition"
    },
    "FieldType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "NAME",
            "DESCRIPTION",
            "SCHEDULED_TIME",
            "QUICK_CONNECT",
            "URL",
            "NUMBER",
            "TEXT",
            "TEXT_AREA",
            "DATE_TIME",
            "BOOLEAN",
            "SINGLE_SELECT",
            "EMAIL"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of the task template's field",
      "title": "AWSConnectTaskTemplateFieldTypeDefinition"
    },
    "FieldIdentifier": {
      "description": "the identifier (name) for the task template field",
      "type": "object",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the task template field"
        }
      },
      "title": "AWSConnectTaskTemplateFieldIdentifierDefinition",
      "required": [
        "Name"
      ],
      "additionalProperties": false
    },
    "FieldOption": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9_.,\\s-]*[A-Za-z0-9_.,-])?$",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Single select field identifier",
      "title": "AWSConnectTaskTemplateFieldOptionDefinition"
    },
    "Field": {
      "description": "A task template field object.",
      "type": "object",
      "properties": {
        "Id": {
          "$ref": "#/$defs/FieldIdentifier"
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description of the task template's field"
        },
        "Type": {
          "$ref": "#/$defs/FieldType"
        },
        "SingleSelectOptions": {
          "description": "list of field options to be used with single select",
          "type": "array",
          "maxItems": 50,
          "items": {
            "$ref": "#/$defs/FieldOption"
          }
        }
      },
      "title": "AWSConnectTaskTemplateFieldDefinition",
      "required": [
        "Id",
        "Type"
      ],
      "additionalProperties": false
    },
    "InvisibleFieldInfo": {
      "description": "Invisible field info",
      "type": "object",
      "properties": {
        "Id": {
          "$ref": "#/$defs/FieldIdentifier"
        }
      },
      "title": "AWSConnectTaskTemplateInvisibleFieldInfoDefinition",
      "required": [
        "Id"
      ],
      "additionalProperties": false
    },
    "InvisibleTaskTemplateFields": {
      "description": "The list of the task template's invisible fields",
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/InvisibleFieldInfo"
      },
      "title": "AWSConnectTaskTemplateInvisibleTaskTemplateFieldsDefinition"
    },
    "ReadOnlyFieldInfo": {
      "description": "ReadOnly field info",
      "type": "object",
      "properties": {
        "Id": {
          "$ref": "#/$defs/FieldIdentifier"
        }
      },
      "title": "AWSConnectTaskTemplateReadOnlyFieldInfoDefinition",
      "required": [
        "Id"
      ],
      "additionalProperties": false
    },
    "ReadOnlyTaskTemplateFields": {
      "description": "The list of the task template's read only fields",
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/ReadOnlyFieldInfo"
      },
      "title": "AWSConnectTaskTemplateReadOnlyTaskTemplateFieldsDefinition"
    },
    "RequiredFieldInfo": {
      "description": "Required field info",
      "type": "object",
      "properties": {
        "Id": {
          "$ref": "#/$defs/FieldIdentifier"
        }
      },
      "title": "AWSConnectTaskTemplateRequiredFieldInfoDefinition",
      "required": [
        "Id"
      ],
      "additionalProperties": false
    },
    "RequiredTaskTemplateFields": {
      "description": "The list of the task template's required fields",
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/RequiredFieldInfo"
      },
      "title": "AWSConnectTaskTemplateRequiredTaskTemplateFieldsDefinition"
    },
    "FieldValue": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "the default value for the task template's field",
      "title": "AWSConnectTaskTemplateFieldValueDefinition"
    },
    "DefaultFieldValue": {
      "description": "the default value for the task template's field",
      "type": "object",
      "properties": {
        "Id": {
          "$ref": "#/$defs/FieldIdentifier"
        },
        "DefaultValue": {
          "$ref": "#/$defs/FieldValue"
        }
      },
      "title": "AWSConnectTaskTemplateDefaultFieldValueDefinition",
      "required": [
        "Id",
        "DefaultValue"
      ],
      "additionalProperties": false
    },
    "ClientToken": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "the client token string in uuid format",
      "title": "AWSConnectTaskTemplateClientTokenDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSConnectTaskTemplateTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. . You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  }
}
