{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-m2-application.json",
  "title": "AWSM2ApplicationProperties",
  "description": "Represents an application that runs on an AWS Mainframe Modernization Environment. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-m2-application.json",
    "sourceSha256": "974f921582b104500f027ffdb6c6218bf21f5af3541119a057b3a257c3e189c3"
  },
  "type": "object",
  "properties": {
    "Definition": {
      "$ref": "#/$defs/Definition"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 500,
          "minLength": 0
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineType": {
      "$ref": "#/$defs/EngineType"
    },
    "KmsKeyId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting application-related resources."
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "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}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "$ref": "#/$defs/TagMap"
    }
  },
  "typeName": "AWS::M2::Application",
  "$defs": {
    "Definition": {
      "oneOf": [
        {
          "type": "object",
          "title": "S3Location",
          "properties": {
            "S3Location": {
              "type": "string",
              "pattern": "^\\S{1,2000}$"
            }
          },
          "required": [
            "S3Location"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "title": "Content",
          "properties": {
            "Content": {
              "type": "string",
              "maxLength": 65000,
              "minLength": 1
            }
          },
          "required": [
            "Content"
          ],
          "additionalProperties": false
        }
      ],
      "title": "AWSM2ApplicationDefinition"
    },
    "EngineType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "microfocus",
            "bluage"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSM2ApplicationEngineTypeDefinition"
    },
    "TagMap": {
      "type": "object",
      "maxProperties": 200,
      "minProperties": 0,
      "additionalProperties": false,
      "title": "AWSM2ApplicationTagMapDefinition",
      "patternProperties": {
        "^(?!aws:).+$": {
          "type": "string",
          "maxLength": 256,
          "minLength": 0
        }
      }
    }
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/ApplicationArn"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false
  },
  "required": [
    "Definition",
    "EngineType",
    "Name"
  ],
  "readOnlyProperties": [
    "/properties/ApplicationArn",
    "/properties/ApplicationId"
  ],
  "writeOnlyProperties": [
    "/properties/Definition"
  ],
  "createOnlyProperties": [
    "/properties/EngineType",
    "/properties/Name",
    "/properties/KmsKeyId",
    "/properties/RoleArn"
  ]
}
