{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-systemsmanagersap-application.json",
  "title": "AWSSystemsManagerSAPApplicationProperties",
  "description": "Resource schema for AWS::SystemsManagerSAP::Application. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-systemsmanagersap-application.json",
    "sourceSha256": "e123517cd5dd430d97f8ecfc47bee15cde02ecfa1589aaf7ecf6da138ba13c52"
  },
  "type": "object",
  "properties": {
    "ApplicationId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\w0-9]{1,50}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ApplicationType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "HANA"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Credentials": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Credential"
      },
      "minItems": 1,
      "insertionOrder": true
    },
    "Instances": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Instance"
      },
      "minItems": 1,
      "insertionOrder": true
    },
    "SapInstanceNumber": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[0-9]{2}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Sid": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[A-Z][A-Z0-9]{2}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "description": "The tags of a SystemsManagerSAP application.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "insertionOrder": true
    }
  },
  "typeName": "AWS::SystemsManagerSAP::Application",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "additionalProperties": false,
  "required": [
    "ApplicationId",
    "ApplicationType"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/Credentials",
    "/properties/Instances",
    "/properties/SapInstanceNumber",
    "/properties/Sid"
  ],
  "writeOnlyProperties": [
    "/properties/Credentials",
    "/properties/Instances",
    "/properties/SapInstanceNumber",
    "/properties/Sid"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSSystemsManagerSAPApplicationTagDefinition",
      "additionalProperties": false
    },
    "Credential": {
      "type": "object",
      "properties": {
        "DatabaseName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?=.{1,100}$).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "CredentialType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "ADMIN"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SecretId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?=.{1,100}$).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSSystemsManagerSAPApplicationCredentialDefinition",
      "additionalProperties": false
    },
    "Instance": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^i-[\\w0-9]{8}$|^i-[\\w0-9]{17}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSSystemsManagerSAPApplicationInstanceDefinition"
    }
  }
}
