{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-refactorspaces-application.json",
  "title": "AWSRefactorSpacesApplicationProperties",
  "description": "Definition of AWS::RefactorSpaces::Application 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-application.json",
    "sourceSha256": "7ef149b61649b8cbe839dd4f21b265b69f72e9da30c2b0126833d81aec791581"
  },
  "type": "object",
  "properties": {
    "ApiGatewayProxy": {
      "$ref": "#/$defs/ApiGatewayProxyInput"
    },
    "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"
        }
      ]
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 63,
          "minLength": 3,
          "pattern": "^(?!app-)[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"
        }
      ]
    },
    "ProxyType": {
      "$ref": "#/$defs/ProxyType"
    },
    "VpcId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 21,
          "minLength": 12,
          "pattern": "^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "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::Application",
  "taggable": true,
  "additionalProperties": false,
  "$defs": {
    "ApiGatewayEndpointType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "REGIONAL",
            "PRIVATE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesApplicationApiGatewayEndpointTypeDefinition"
    },
    "ApiGatewayProxyInput": {
      "type": "object",
      "properties": {
        "StageName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[-a-zA-Z0-9_]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EndpointType": {
          "$ref": "#/$defs/ApiGatewayEndpointType"
        }
      },
      "title": "AWSRefactorSpacesApplicationApiGatewayProxyInputDefinition",
      "additionalProperties": false
    },
    "ProxyType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "API_GATEWAY"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesApplicationProxyTypeDefinition"
    },
    "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": "AWSRefactorSpacesApplicationTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "EnvironmentIdentifier",
    "VpcId",
    "Name",
    "ProxyType"
  ],
  "readOnlyProperties": [
    "/properties/ApplicationIdentifier",
    "/properties/Arn",
    "/properties/ApiGatewayId",
    "/properties/VpcLinkId",
    "/properties/NlbArn",
    "/properties/NlbName",
    "/properties/ProxyUrl",
    "/properties/StageName"
  ],
  "writeOnlyProperties": [
    "/properties/ApiGatewayProxy"
  ],
  "createOnlyProperties": [
    "/properties/ApiGatewayProxy",
    "/properties/EnvironmentIdentifier",
    "/properties/Name",
    "/properties/ProxyType",
    "/properties/VpcId"
  ],
  "primaryIdentifier": [
    "/properties/EnvironmentIdentifier",
    "/properties/ApplicationIdentifier"
  ]
}
