{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-apigatewayv2-api.json",
  "title": "AWSApiGatewayV2ApiProperties",
  "description": "Resource Type definition for AWS::ApiGatewayV2::Api. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-apigatewayv2-api.json",
    "sourceSha256": "276f21604c0e0c509676a84fb593689516b1786b364b8cac20d26e2c93736866"
  },
  "type": "object",
  "properties": {
    "RouteSelectionExpression": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "BodyS3Location": {
      "$ref": "#/$defs/BodyS3Location"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "BasePath": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "FailOnWarnings": {
      "type": "boolean"
    },
    "DisableExecuteApiEndpoint": {
      "type": "boolean"
    },
    "DisableSchemaValidation": {
      "type": "boolean"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Target": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CredentialsArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CorsConfiguration": {
      "$ref": "#/$defs/Cors"
    },
    "Version": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ProtocolType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RouteKey": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Body": {
      "type": "object"
    },
    "Tags": {
      "type": "object",
      "description": "This resource type use map for Tags, suggest to use List of Tag",
      "additionalProperties": false,
      "patternProperties": {
        ".*": {
          "type": "string"
        }
      }
    },
    "ApiKeySelectionExpression": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::ApiGatewayV2::Api",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "BodyS3Location": {
      "type": "object",
      "title": "AWSApiGatewayV2ApiBodyS3LocationDefinition",
      "properties": {
        "Etag": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Bucket": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Version": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Cors": {
      "type": "object",
      "title": "AWSApiGatewayV2ApiCorsDefinition",
      "properties": {
        "AllowOrigins": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "AllowCredentials": {
          "type": "boolean"
        },
        "ExposeHeaders": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "AllowHeaders": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "MaxAge": {
          "type": "integer"
        },
        "AllowMethods": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "writeOnlyProperties": [
    "/properties/BasePath",
    "/properties/Body",
    "/properties/BodyS3Location",
    "/properties/BodyS3Location/Etag",
    "/properties/BodyS3Location/Bucket",
    "/properties/BodyS3Location/Version",
    "/properties/BodyS3Location/Key",
    "/properties/CredentialsArn",
    "/properties/FailOnWarnings",
    "/properties/RouteKey",
    "/properties/Target",
    "/properties/DisableSchemaValidation"
  ],
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/ProtocolType"
  ],
  "primaryIdentifier": [
    "/properties/ApiId"
  ],
  "readOnlyProperties": [
    "/properties/ApiId",
    "/properties/ApiEndpoint"
  ]
}
