{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-refactorspaces-route.json",
  "title": "AWSRefactorSpacesRouteProperties",
  "description": "Definition of AWS::RefactorSpaces::Route Resource Type. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-refactorspaces-route.json",
    "sourceSha256": "66ea8376b0434e63cf43374dc2a30cda213e737c5861f1d544a78b11e6bbea18"
  },
  "type": "object",
  "properties": {
    "ApplicationIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 14,
          "minLength": 14,
          "pattern": "^app-([0-9A-Za-z]{10}$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EnvironmentIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 14,
          "minLength": 14,
          "pattern": "^env-([0-9A-Za-z]{10}$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RouteType": {
      "$ref": "#/$defs/RouteType"
    },
    "ServiceIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 14,
          "minLength": 14,
          "pattern": "^svc-([0-9A-Za-z]{10}$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DefaultRoute": {
      "$ref": "#/$defs/DefaultRouteInput"
    },
    "UriPathRoute": {
      "$ref": "#/$defs/UriPathRouteInput"
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair."
    }
  },
  "typeName": "AWS::RefactorSpaces::Route",
  "taggable": true,
  "additionalProperties": false,
  "$defs": {
    "RouteActivationState": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "INACTIVE",
            "ACTIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesRouteRouteActivationStateDefinition"
    },
    "Method": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "DELETE",
            "GET",
            "HEAD",
            "OPTIONS",
            "PATCH",
            "POST",
            "PUT"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesRouteMethodDefinition"
    },
    "RouteType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "DEFAULT",
            "URI_PATH"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesRouteRouteTypeDefinition"
    },
    "DefaultRouteInput": {
      "type": "object",
      "properties": {
        "ActivationState": {
          "$ref": "#/$defs/RouteActivationState"
        }
      },
      "required": [
        "ActivationState"
      ],
      "title": "AWSRefactorSpacesRouteDefaultRouteInputDefinition",
      "additionalProperties": false
    },
    "UriPathRouteInput": {
      "type": "object",
      "properties": {
        "SourcePath": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^(/([a-zA-Z0-9._:-]+|\\{[a-zA-Z0-9._:-]+\\}))+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ActivationState": {
          "$ref": "#/$defs/RouteActivationState"
        },
        "Methods": {
          "type": "array",
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/Method"
          }
        },
        "IncludeChildPaths": {
          "type": "boolean"
        },
        "AppendSourcePath": {
          "type": "boolean"
        }
      },
      "required": [
        "ActivationState"
      ],
      "title": "AWSRefactorSpacesRouteUriPathRouteInputDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A label for tagging Environment resource",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!aws:).+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string used to identify this tag"
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string containing the value for the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRefactorSpacesRouteTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "EnvironmentIdentifier",
    "ApplicationIdentifier",
    "ServiceIdentifier",
    "RouteType"
  ],
  "readOnlyProperties": [
    "/properties/RouteIdentifier",
    "/properties/PathResourceToId",
    "/properties/Arn"
  ],
  "writeOnlyProperties": [
    "/properties/RouteType",
    "/properties/ServiceIdentifier",
    "/properties/DefaultRoute",
    "/properties/UriPathRoute"
  ],
  "createOnlyProperties": [
    "/properties/ApplicationIdentifier",
    "/properties/EnvironmentIdentifier",
    "/properties/RouteType",
    "/properties/ServiceIdentifier",
    "/properties/UriPathRoute/SourcePath",
    "/properties/UriPathRoute/Methods",
    "/properties/UriPathRoute/IncludeChildPaths",
    "/properties/UriPathRoute/AppendSourcePath"
  ],
  "primaryIdentifier": [
    "/properties/EnvironmentIdentifier",
    "/properties/ApplicationIdentifier",
    "/properties/RouteIdentifier"
  ]
}
