{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-opsworkscm-server.json",
  "title": "AWSOpsWorksCMServerProperties",
  "description": "Resource Type definition for AWS::OpsWorksCM::Server. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-opsworkscm-server.json",
    "sourceSha256": "d1a8664ff4a84557fbb0aae7d395ce2adec861c18e0a246c47cef852aba0ee91"
  },
  "type": "object",
  "properties": {
    "KeyPair": {
      "oneOf": [
        {
          "type": "string",
          "pattern": ".*",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineVersion": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ServiceRoleArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:aws:iam::[0-9]{12}:role/.*",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DisableAutomatedBackup": {
      "type": "boolean"
    },
    "BackupId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z][a-zA-Z0-9\\-\\.\\:]*",
          "maxLength": 79
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineModel": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PreferredMaintenanceWindow": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^((Mon|Tue|Wed|Thu|Fri|Sat|Sun):)?([0-1][0-9]|2[0-3]):[0-5][0-9]$",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AssociatePublicIpAddress": {
      "type": "boolean"
    },
    "InstanceProfileArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:aws:iam::[0-9]{12}:instance-profile/.*",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CustomCertificate": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "(?s)\\s*-----BEGIN CERTIFICATE-----.+-----END CERTIFICATE-----\\s*",
          "maxLength": 2097152
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PreferredBackupWindow": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^((Mon|Tue|Wed|Thu|Fri|Sat|Sun):)?([0-1][0-9]|2[0-3]):[0-5][0-9]$",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SecurityGroupIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string",
        "maxLength": 10000
      }
    },
    "SubnetIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string",
        "maxLength": 10000
      }
    },
    "CustomDomain": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$",
          "maxLength": 253
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CustomPrivateKey": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "(?ms)\\s*^-----BEGIN (?-s:.*)PRIVATE KEY-----$.*?^-----END (?-s:.*)PRIVATE KEY-----$\\s*",
          "maxLength": 4096
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineAttributes": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/EngineAttribute"
      }
    },
    "BackupRetentionCount": {
      "type": "integer",
      "minLength": 1
    },
    "InstanceType": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "Engine": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 10000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::OpsWorksCM::Server",
  "writeOnlyProperties": [
    "/properties/BackupId",
    "/properties/CustomCertificate",
    "/properties/CustomDomain",
    "/properties/CustomPrivateKey",
    "/properties/EngineAttributes",
    "/properties/EngineVersion",
    "/properties/KeyPair",
    "/properties/Tags"
  ],
  "$defs": {
    "EngineAttribute": {
      "type": "object",
      "title": "AWSOpsWorksCMServerEngineAttributeDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "(?s).*",
              "maxLength": 10000
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "(?s).*",
              "maxLength": 10000
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSOpsWorksCMServerTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/ServerName",
    "/properties/Endpoint",
    "/properties/Arn"
  ],
  "additionalProperties": false,
  "required": [
    "ServiceRoleArn",
    "InstanceProfileArn",
    "InstanceType"
  ],
  "createOnlyProperties": [
    "/properties/KeyPair",
    "/properties/CustomPrivateKey",
    "/properties/ServiceRoleArn",
    "/properties/InstanceType",
    "/properties/CustomCertificate",
    "/properties/CustomDomain",
    "/properties/InstanceProfileArn",
    "/properties/SecurityGroupIds",
    "/properties/ServerName",
    "/properties/SubnetIds",
    "/properties/BackupId",
    "/properties/EngineModel",
    "/properties/AssociatePublicIpAddress",
    "/properties/EngineVersion",
    "/properties/Engine"
  ],
  "primaryIdentifier": [
    "/properties/ServerName"
  ]
}
