{
  "typeName" : "AWS::SSM::PatchBaseline",
  "description" : "Resource Type definition for AWS::SSM::PatchBaseline",
  "additionalProperties" : false,
  "properties" : {
    "OperatingSystem" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string"
    },
    "ApprovalRules" : {
      "$ref" : "#/definitions/RuleGroup"
    },
    "Sources" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/PatchSource"
      }
    },
    "Name" : {
      "type" : "string"
    },
    "RejectedPatches" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "ApprovedPatches" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "RejectedPatchesAction" : {
      "type" : "string"
    },
    "PatchGroups" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "ApprovedPatchesComplianceLevel" : {
      "type" : "string"
    },
    "ApprovedPatchesEnableNonSecurity" : {
      "type" : "boolean"
    },
    "Id" : {
      "type" : "string"
    },
    "GlobalFilters" : {
      "$ref" : "#/definitions/PatchFilterGroup"
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "definitions" : {
    "PatchFilterGroup" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "PatchFilters" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/PatchFilter"
          }
        }
      }
    },
    "PatchFilter" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Values" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Key" : {
          "type" : "string"
        }
      }
    },
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Value" : {
          "type" : "string"
        },
        "Key" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    },
    "Rule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ApproveUntilDate" : {
          "$ref" : "#/definitions/PatchStringDate"
        },
        "ApproveAfterDays" : {
          "type" : "integer"
        },
        "EnableNonSecurity" : {
          "type" : "boolean"
        },
        "ComplianceLevel" : {
          "type" : "string"
        },
        "PatchFilterGroup" : {
          "$ref" : "#/definitions/PatchFilterGroup"
        }
      }
    },
    "PatchStringDate" : {
      "type" : "object",
      "additionalProperties" : false
    },
    "PatchSource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Products" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Configuration" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      }
    },
    "RuleGroup" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "PatchRules" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Rule"
          }
        }
      }
    }
  },
  "required" : [ "Name" ],
  "createOnlyProperties" : [ "/properties/OperatingSystem" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}