{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/EngineType",
  "/properties/Name",
  "/properties/KmsKeyId",
  "/properties/RoleArn"
 ],
 "definitions": {
  "Definition": {
   "oneOf": [
    {
     "additionalProperties": false,
     "properties": {
      "S3Location": {
       "pattern": "^\\S{1,2000}$",
       "type": "string"
      }
     },
     "required": [
      "S3Location"
     ],
     "title": "S3Location",
     "type": "object"
    },
    {
     "additionalProperties": false,
     "properties": {
      "Content": {
       "maxLength": 6500,
       "minLength": 1,
       "type": "string"
      }
     },
     "required": [
      "Content"
     ],
     "title": "Content",
     "type": "object"
    }
   ]
  },
  "EngineType": {
   "enum": [
    "microfocus",
    "bluage"
   ],
   "type": "string"
  },
  "TagMap": {
   "additionalProperties": false,
   "maxProperties": 200,
   "minProperties": 0,
   "patternProperties": {
    "^(?!aws:).+$": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/ApplicationArn"
 ],
 "properties": {
  "ApplicationArn": {
   "pattern": "^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+=,@.-]{0,1023}$",
   "type": "string"
  },
  "ApplicationId": {
   "pattern": "^\\S{1,80}$",
   "type": "string"
  },
  "Definition": {
   "$ref": "#/definitions/Definition"
  },
  "Description": {
   "maxLength": 500,
   "minLength": 0,
   "type": "string"
  },
  "EngineType": {
   "$ref": "#/definitions/EngineType"
  },
  "KmsKeyId": {
   "anyOf": [
    {
     "format": "AWS::KMS::Key.Arn"
    },
    {
     "format": "AWS::KMS::Key.Id"
    },
    {
     "format": "AWS::KMS::Alias.AliasName"
    }
   ],
   "maxLength": 2048,
   "type": "string"
  },
  "Name": {
   "pattern": "^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$",
   "type": "string"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "pattern": "^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]|):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+=,@.-]{0,1023}$",
   "type": "string"
  },
  "Tags": {
   "$ref": "#/definitions/TagMap"
  }
 },
 "readOnlyProperties": [
  "/properties/ApplicationArn",
  "/properties/ApplicationId"
 ],
 "required": [
  "EngineType",
  "Name"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::M2::Application",
 "writeOnlyProperties": [
  "/properties/Definition"
 ]
}
