{
 "additionalProperties": false,
 "definitions": {
  "AutoBranchCreationConfig": {
   "additionalProperties": false,
   "properties": {
    "AutoBranchCreationPatterns": {
     "items": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "BasicAuthConfig": {
     "$ref": "#/definitions/BasicAuthConfig"
    },
    "BuildSpec": {
     "maxLength": 25000,
     "minLength": 1,
     "pattern": "^(?s).+$",
     "type": "string"
    },
    "EnableAutoBranchCreation": {
     "type": "boolean"
    },
    "EnableAutoBuild": {
     "type": "boolean"
    },
    "EnablePerformanceMode": {
     "type": "boolean"
    },
    "EnablePullRequestPreview": {
     "type": "boolean"
    },
    "EnvironmentVariables": {
     "items": {
      "$ref": "#/definitions/EnvironmentVariable"
     },
     "type": "array",
     "uniqueItems": false
    },
    "Framework": {
     "maxLength": 255,
     "minLength": 0,
     "pattern": "(?s).*",
     "type": "string"
    },
    "PullRequestEnvironmentName": {
     "maxLength": 20,
     "minLength": 0,
     "pattern": "(?s).*",
     "type": "string"
    },
    "Stage": {
     "enum": [
      "EXPERIMENTAL",
      "BETA",
      "PULL_REQUEST",
      "PRODUCTION",
      "DEVELOPMENT"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "BasicAuthConfig": {
   "additionalProperties": false,
   "properties": {
    "EnableBasicAuth": {
     "type": "boolean"
    },
    "Password": {
     "maxLength": 255,
     "minLength": 1,
     "type": "string"
    },
    "Username": {
     "maxLength": 255,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  },
  "CacheConfig": {
   "additionalProperties": false,
   "properties": {
    "Type": {
     "enum": [
      "AMPLIFY_MANAGED",
      "AMPLIFY_MANAGED_NO_COOKIES"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "CustomRule": {
   "additionalProperties": false,
   "properties": {
    "Condition": {
     "maxLength": 2048,
     "minLength": 0,
     "pattern": "(?s).*",
     "type": "string"
    },
    "Source": {
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "(?s).+",
     "type": "string"
    },
    "Status": {
     "maxLength": 7,
     "minLength": 3,
     "pattern": ".{3,7}",
     "type": "string"
    },
    "Target": {
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "(?s).+",
     "type": "string"
    }
   },
   "required": [
    "Target",
    "Source"
   ],
   "type": "object"
  },
  "EnvironmentVariable": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "maxLength": 255,
     "pattern": "(?s).*",
     "type": "string"
    },
    "Value": {
     "maxLength": 5500,
     "pattern": "(?s).*",
     "type": "string"
    }
   },
   "required": [
    "Name",
    "Value"
   ],
   "type": "object"
  },
  "JobConfig": {
   "additionalProperties": false,
   "properties": {
    "BuildComputeType": {
     "enum": [
      "STANDARD_8GB",
      "LARGE_16GB",
      "XLARGE_72GB"
     ],
     "type": "string"
    }
   },
   "required": [
    "BuildComputeType"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "insertionOrder": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "AccessToken": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^(?s).+$",
   "type": "string"
  },
  "AppId": {
   "maxLength": 20,
   "minLength": 1,
   "pattern": "d[a-z0-9]+",
   "type": "string"
  },
  "AppName": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "(?s).+",
   "type": "string"
  },
  "Arn": {
   "maxLength": 1000,
   "pattern": "(?s).*",
   "type": "string"
  },
  "AutoBranchCreationConfig": {
   "$ref": "#/definitions/AutoBranchCreationConfig"
  },
  "BasicAuthConfig": {
   "$ref": "#/definitions/BasicAuthConfig"
  },
  "BuildSpec": {
   "maxLength": 25000,
   "minLength": 1,
   "pattern": "(?s).+",
   "type": "string"
  },
  "CacheConfig": {
   "$ref": "#/definitions/CacheConfig"
  },
  "ComputeRoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 1000,
   "minLength": 0,
   "pattern": "(?s).*",
   "type": "string"
  },
  "CustomHeaders": {
   "maxLength": 25000,
   "minLength": 0,
   "pattern": "(?s).*",
   "type": "string"
  },
  "CustomRules": {
   "items": {
    "$ref": "#/definitions/CustomRule"
   },
   "type": "array",
   "uniqueItems": false
  },
  "DefaultDomain": {
   "maxLength": 1000,
   "minLength": 0,
   "type": "string"
  },
  "Description": {
   "maxLength": 1000,
   "minLength": 0,
   "pattern": "(?s).*",
   "type": "string"
  },
  "EnableBranchAutoDeletion": {
   "type": "boolean"
  },
  "EnvironmentVariables": {
   "items": {
    "$ref": "#/definitions/EnvironmentVariable"
   },
   "type": "array",
   "uniqueItems": false
  },
  "IAMServiceRole": {
   "maxLength": 1000,
   "minLength": 1,
   "pattern": "(?s).*",
   "type": "string"
  },
  "JobConfig": {
   "$ref": "#/definitions/JobConfig"
  },
  "Name": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "(?s).+",
   "type": "string"
  },
  "OauthToken": {
   "maxLength": 1000,
   "minLength": 0,
   "pattern": "(?s).*",
   "type": "string"
  },
  "Platform": {
   "enum": [
    "WEB",
    "WEB_DYNAMIC",
    "WEB_COMPUTE"
   ],
   "type": "string"
  },
  "Repository": {
   "maxLength": 1000,
   "minLength": 0,
   "pattern": "(?s).*",
   "type": "string"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/AppId",
  "/properties/AppName",
  "/properties/Arn",
  "/properties/DefaultDomain"
 ],
 "required": [
  "Name"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-amplify",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Amplify::App",
 "writeOnlyProperties": [
  "/properties/AccessToken",
  "/properties/BasicAuthConfig",
  "/properties/OauthToken",
  "/properties/AutoBranchCreationConfig"
 ]
}
