{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-amplify-app.json",
  "title": "AWSAmplifyAppProperties",
  "description": "The AWS::Amplify::App resource creates Apps in the Amplify Console. An App is a collection of branches.. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-amplify-app.json",
    "sourceSha256": "f67c93fa16205421704094c0b0e43bcfa4e44c52666b560b6aabea989fc540ee"
  },
  "type": "object",
  "properties": {
    "AccessToken": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutoBranchCreationConfig": {
      "$ref": "#/$defs/AutoBranchCreationConfig"
    },
    "BasicAuthConfig": {
      "$ref": "#/$defs/BasicAuthConfig"
    },
    "BuildSpec": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 25000,
          "pattern": "(?s).+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CustomHeaders": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 25000,
          "pattern": "(?s).*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CustomRules": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/CustomRule"
      }
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1000,
          "pattern": "(?s).*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EnableBranchAutoDeletion": {
      "type": "boolean"
    },
    "EnvironmentVariables": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/EnvironmentVariable"
      }
    },
    "IAMServiceRole": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000,
          "pattern": "(?s).*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "pattern": "(?s).+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "OauthToken": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1000,
          "pattern": "(?s).*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Platform": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "WEB",
            "WEB_DYNAMIC",
            "WEB_COMPUTE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Repository": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "(?s).*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Amplify::App",
  "writeOnlyProperties": [
    "/properties/AccessToken",
    "/properties/BasicAuthConfig",
    "/properties/OauthToken",
    "/properties/AutoBranchCreationConfig"
  ],
  "$defs": {
    "AutoBranchCreationConfig": {
      "type": "object",
      "title": "AWSAmplifyAppAutoBranchCreationConfigDefinition",
      "properties": {
        "AutoBranchCreationPatterns": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        },
        "BasicAuthConfig": {
          "$ref": "#/$defs/BasicAuthConfig"
        },
        "BuildSpec": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 25000
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EnableAutoBranchCreation": {
          "type": "boolean"
        },
        "EnableAutoBuild": {
          "type": "boolean"
        },
        "EnablePerformanceMode": {
          "type": "boolean"
        },
        "EnablePullRequestPreview": {
          "type": "boolean"
        },
        "EnvironmentVariables": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/EnvironmentVariable"
          }
        },
        "Framework": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PullRequestEnvironmentName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 20,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Stage": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "EXPERIMENTAL",
                "BETA",
                "PULL_REQUEST",
                "PRODUCTION",
                "DEVELOPMENT"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "BasicAuthConfig": {
      "type": "object",
      "title": "AWSAmplifyAppBasicAuthConfigDefinition",
      "properties": {
        "EnableBasicAuth": {
          "type": "boolean"
        },
        "Username": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Password": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "CustomRule": {
      "type": "object",
      "title": "AWSAmplifyAppCustomRuleDefinition",
      "properties": {
        "Condition": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 2048,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Status": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3,
              "maxLength": 7,
              "pattern": ".{3,7}"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Target": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "(?s).+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Source": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "(?s).+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Target",
        "Source"
      ],
      "additionalProperties": false
    },
    "EnvironmentVariable": {
      "type": "object",
      "title": "AWSAmplifyAppEnvironmentVariableDefinition",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 5500,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Name",
        "Value"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSAmplifyAppTagDefinition",
      "insertionOrder": false,
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "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"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/AppId",
    "/properties/AppName",
    "/properties/Arn",
    "/properties/DefaultDomain"
  ],
  "additionalProperties": false,
  "required": [
    "Name"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ]
}
