{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ssm-patchbaseline.json",
  "title": "AWSSSMPatchBaselineProperties",
  "description": "Resource Type definition for AWS::SSM::PatchBaseline. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ssm-patchbaseline.json",
    "sourceSha256": "30e781fe4af3d83c1a03dc0fe1e32501e0ed4692c862eeb11eeb7ffbbd315dd2"
  },
  "type": "object",
  "properties": {
    "OperatingSystem": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ApprovalRules": {
      "$ref": "#/$defs/RuleGroup"
    },
    "Sources": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/PatchSource"
      }
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RejectedPatches": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "ApprovedPatches": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "RejectedPatchesAction": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PatchGroups": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "ApprovedPatchesComplianceLevel": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ApprovedPatchesEnableNonSecurity": {
      "type": "boolean"
    },
    "GlobalFilters": {
      "$ref": "#/$defs/PatchFilterGroup"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::SSM::PatchBaseline",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "PatchFilterGroup": {
      "type": "object",
      "title": "AWSSSMPatchBaselinePatchFilterGroupDefinition",
      "properties": {
        "PatchFilters": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/PatchFilter"
          }
        }
      },
      "additionalProperties": false
    },
    "PatchFilter": {
      "type": "object",
      "title": "AWSSSMPatchBaselinePatchFilterDefinition",
      "properties": {
        "Values": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSSSMPatchBaselineTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "Rule": {
      "type": "object",
      "title": "AWSSSMPatchBaselineRuleDefinition",
      "properties": {
        "ApproveUntilDate": {
          "$ref": "#/$defs/PatchStringDate"
        },
        "ApproveAfterDays": {
          "type": "integer"
        },
        "EnableNonSecurity": {
          "type": "boolean"
        },
        "ComplianceLevel": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PatchFilterGroup": {
          "$ref": "#/$defs/PatchFilterGroup"
        }
      },
      "additionalProperties": false
    },
    "PatchStringDate": {
      "type": "object",
      "title": "AWSSSMPatchBaselinePatchStringDateDefinition",
      "additionalProperties": false
    },
    "PatchSource": {
      "type": "object",
      "title": "AWSSSMPatchBaselinePatchSourceDefinition",
      "properties": {
        "Products": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "Configuration": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "RuleGroup": {
      "type": "object",
      "title": "AWSSSMPatchBaselineRuleGroupDefinition",
      "properties": {
        "PatchRules": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Rule"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/OperatingSystem"
  ]
}
