{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-amplify-branch.json",
  "title": "AWSAmplifyBranchProperties",
  "description": "The AWS::Amplify::Branch resource creates a new branch within an app.. 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-branch.json",
    "sourceSha256": "fc831c2b45c9eff6e727364835d75bc35c02289ee17962464a50dc68f9144523"
  },
  "type": "object",
  "properties": {
    "AppId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 20,
          "pattern": "d[a-z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "BasicAuthConfig": {
      "$ref": "#/$defs/BasicAuthConfig"
    },
    "BranchName": {
      "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Amplify::Branch",
  "writeOnlyProperties": [
    "/properties/BasicAuthConfig"
  ],
  "$defs": {
    "EnvironmentVariable": {
      "type": "object",
      "title": "AWSAmplifyBranchEnvironmentVariableDefinition",
      "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": "AWSAmplifyBranchTagDefinition",
      "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,
              "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    },
    "BasicAuthConfig": {
      "type": "object",
      "title": "AWSAmplifyBranchBasicAuthConfigDefinition",
      "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"
            }
          ]
        }
      },
      "required": [
        "Username",
        "Password"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "additionalProperties": false,
  "required": [
    "AppId",
    "BranchName"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/AppId",
    "/properties/BranchName"
  ]
}
