{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-update-patch-baseline-result-schema.json",
  "title": "UpdatePatchBaselineResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-patch-baseline-api-openapi.yml#/components/schemas/UpdatePatchBaselineResult",
  "type": "object",
  "properties": {
    "BaselineId": {
      "type": "string",
      "description": "The ID of the deleted patch baseline."
    },
    "Name": {
      "type": "string",
      "description": "The name of the patch baseline."
    },
    "OperatingSystem": {
      "type": "string",
      "enum": [
        "WINDOWS",
        "AMAZON_LINUX",
        "AMAZON_LINUX_2",
        "AMAZON_LINUX_2022",
        "UBUNTU",
        "REDHAT_ENTERPRISE_LINUX",
        "SUSE",
        "CENTOS",
        "ORACLE_LINUX",
        "DEBIAN",
        "MACOS",
        "RASPBIAN",
        "ROCKY_LINUX",
        "ALMA_LINUX",
        "AMAZON_LINUX_2023"
      ],
      "description": "The operating system rule used by the updated patch baseline."
    },
    "GlobalFilters": {
      "$ref": "#/$defs/PatchFilterGroup"
    },
    "ApprovalRules": {
      "$ref": "#/$defs/PatchRuleGroup"
    },
    "ApprovedPatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of explicitly approved patches for the baseline."
    },
    "ApprovedPatchesComplianceLevel": {
      "type": "string",
      "enum": [
        "CRITICAL",
        "HIGH",
        "MEDIUM",
        "LOW",
        "INFORMATIONAL",
        "UNSPECIFIED"
      ],
      "description": "The compliance severity level assigned to the patch baseline after the update completed."
    },
    "ApprovedPatchesEnableNonSecurity": {
      "type": "boolean",
      "description": "Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only."
    },
    "RejectedPatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of explicitly rejected patches for the baseline."
    },
    "RejectedPatchesAction": {
      "type": "string",
      "enum": [
        "ALLOW_AS_DEPENDENCY",
        "BLOCK"
      ],
      "description": "The action specified to take on patches included in the RejectedPatches list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency."
    },
    "CreatedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the patch baseline was created."
    },
    "ModifiedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the patch baseline was last modified."
    },
    "Description": {
      "type": "string",
      "description": "A description of the patch baseline."
    },
    "Sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PatchSource"
      },
      "description": "Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only."
    },
    "AvailableSecurityUpdatesComplianceStatus": {
      "type": "string",
      "enum": [
        "COMPLIANT",
        "NON_COMPLIANT"
      ],
      "description": "Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the CreatePatchBaseline or UpdatePatchBaseline commands are run. Applies to Windows Server managed nodes only."
    }
  },
  "$defs": {
    "PatchFilter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "enum": [
            "ARCH",
            "ADVISORY_ID",
            "BUGZILLA_ID",
            "PATCH_SET",
            "PRODUCT",
            "PRODUCT_FAMILY",
            "CLASSIFICATION",
            "CVE_ID",
            "EPOCH",
            "MSRC_SEVERITY",
            "NAME",
            "PATCH_ID",
            "SECTION",
            "PRIORITY",
            "REPOSITORY",
            "RELEASE",
            "SEVERITY",
            "SECURITY",
            "VERSION"
          ],
          "description": "The key for the filter. Run the DescribePatchProperties command to view lists of valid keys for each operating system type."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value for the filter key. Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type."
        }
      },
      "required": [
        "Key",
        "Values"
      ]
    },
    "PatchFilterGroup": {
      "type": "object",
      "properties": {
        "PatchFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PatchFilter"
          },
          "description": "The set of patch filters that make up the group."
        }
      },
      "required": [
        "PatchFilters"
      ]
    },
    "PatchRule": {
      "type": "object",
      "properties": {
        "PatchFilterGroup": {
          "$ref": "#/$defs/PatchFilterGroup"
        },
        "ComplianceLevel": {
          "type": "string",
          "enum": [
            "CRITICAL",
            "HIGH",
            "MEDIUM",
            "LOW",
            "INFORMATIONAL",
            "UNSPECIFIED"
          ],
          "description": "A compliance severity level for all approved patches in a patch baseline."
        },
        "ApproveAfterDays": {
          "type": "integer",
          "description": "The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released. Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at 2025-11-09T18:00:00Z and ApproveAfterDays is set to 7, the patch will be approved after 2025-11-16T18:00:00Z. This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate. Not supported for Deb"
        },
        "ApproveUntilDate": {
          "type": "string",
          "description": "The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Enter dates in the format YYYY-MM-DD. For example, 2025-11-16. Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date 2025-11-16, patches released between 2025-11-16T00:00:00Z and 2025-11-16T23:59:59Z will be included in the approval. This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays. Not supported for Debian Server or Ubuntu Server. Use cau"
        },
        "EnableNonSecurity": {
          "type": "boolean",
          "description": "For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is false. Applies to Linux managed nodes only."
        }
      },
      "required": [
        "PatchFilterGroup"
      ]
    },
    "PatchRuleGroup": {
      "type": "object",
      "properties": {
        "PatchRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PatchRule"
          },
          "description": "The rules that make up the rule group."
        }
      },
      "required": [
        "PatchRules"
      ]
    },
    "PatchSource": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name specified to identify the patch source."
        },
        "Products": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The specific operating system versions a patch repository applies to, such as \"Ubuntu16.04\", \"AmazonLinux2016.09\", \"RedhatEnterpriseLinux7.2\" or \"Suse12.7\". For lists of supported product values, see PatchFilter."
        },
        "Configuration": {
          "type": "string",
          "description": "The value of the repo configuration. Example for yum repositories [main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1 For information about other options available for your yum repository configuration, see dnf.conf(5) on the man7.org website. Examples for Ubuntu Server and Debian Server deb http://security.ubuntu.com/ubuntu jammy main deb https://site.example.com/debian distribution component1 component2 component3 Repo information for Ubuntu Server repositories must be specifed in a single line. For more examples and information, see jammy (5) sources.list.5.gz on t"
        }
      },
      "required": [
        "Name",
        "Products",
        "Configuration"
      ]
    }
  }
}