{
 "additionalProperties": false,
 "definitions": {
  "ApplicationConfig": {
   "additionalProperties": false,
   "properties": {
    "ContactHandling": {
     "$ref": "#/definitions/ContactHandling"
    }
   },
   "type": "object"
  },
  "ApprovedOrigins": {
   "maxLength": 1000,
   "minLength": 1,
   "pattern": "^\\w+\\:\\/\\/.*$",
   "type": "string"
  },
  "ContactHandling": {
   "additionalProperties": false,
   "properties": {
    "Scope": {
     "enum": [
      "CROSS_CONTACTS",
      "PER_CONTACT"
     ],
     "type": "string"
    }
   },
   "required": [
    "Scope"
   ],
   "type": "object"
  },
  "ExternalUrlConfig": {
   "additionalProperties": false,
   "properties": {
    "AccessUrl": {
     "maxLength": 1000,
     "minLength": 1,
     "pattern": "^\\w+\\:\\/\\/.*$",
     "type": "string"
    },
    "ApprovedOrigins": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/ApprovedOrigins"
     },
     "maxItems": 50,
     "minItems": 0,
     "type": "array"
    }
   },
   "required": [
    "AccessUrl"
   ],
   "type": "object"
  },
  "IframeConfig": {
   "additionalProperties": false,
   "properties": {
    "Allow": {
     "insertionOrder": false,
     "items": {
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^[a-z-]+$",
      "type": "string"
     },
     "maxItems": 25,
     "minItems": 0,
     "type": "array"
    },
    "Sandbox": {
     "insertionOrder": false,
     "items": {
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^[a-z-]+$",
      "type": "string"
     },
     "maxItems": 25,
     "minItems": 0,
     "type": "array"
    }
   },
   "type": "object"
  },
  "Permissions": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9\\/\\._\\-\\*]+$",
   "type": "string"
  },
  "Tag": {
   "additionalProperties": 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/ApplicationArn"
 ],
 "properties": {
  "ApplicationArn": {
   "maxLength": 2048,
   "minLength": 1,
   "pattern": "^arn:aws[-a-z0-9]*:app-integrations:[-a-z0-9]*:[0-9]{12}:application/[-a-zA-Z0-9]*",
   "type": "string"
  },
  "ApplicationConfig": {
   "$ref": "#/definitions/ApplicationConfig"
  },
  "ApplicationSourceConfig": {
   "additionalProperties": false,
   "properties": {
    "ExternalUrlConfig": {
     "$ref": "#/definitions/ExternalUrlConfig"
    }
   },
   "required": [
    "ExternalUrlConfig"
   ],
   "type": "object"
  },
  "Description": {
   "maxLength": 1000,
   "minLength": 1,
   "type": "string"
  },
  "Id": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9/\\._\\-]+$",
   "type": "string"
  },
  "IframeConfig": {
   "$ref": "#/definitions/IframeConfig"
  },
  "InitializationTimeout": {
   "maximum": 600000,
   "minimum": 1,
   "type": "integer"
  },
  "IsService": {
   "default": false,
   "type": "boolean"
  },
  "Name": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9\\/\\._ \\-]+$",
   "type": "string"
  },
  "Namespace": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9/\\._\\-]+$",
   "type": "string"
  },
  "Permissions": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Permissions"
   },
   "maxItems": 150,
   "minItems": 0,
   "type": "array"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/ApplicationArn",
  "/properties/Id"
 ],
 "required": [
  "Name",
  "Namespace",
  "Description",
  "ApplicationSourceConfig"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::AppIntegrations::Application"
}
