{
  "$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-request-schema.json",
  "title": "UpdatePatchBaselineRequest",
  "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/UpdatePatchBaselineRequest",
  "type": "object",
  "properties": {
    "BaselineId": {
      "type": "string",
      "description": "The ID of the patch baseline to update."
    },
    "Name": {
      "type": "string",
      "description": "The name of the 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. For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide."
    },
    "ApprovedPatchesComplianceLevel": {
      "type": "string",
      "enum": [
        "CRITICAL",
        "HIGH",
        "MEDIUM",
        "LOW",
        "INFORMATIONAL",
        "UNSPECIFIED"
      ],
      "description": "Assigns a new compliance severity level to an existing patch baseline."
    },
    "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. For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide."
    },
    "RejectedPatchesAction": {
      "type": "string",
      "enum": [
        "ALLOW_AS_DEPENDENCY",
        "BLOCK"
      ],
      "description": "The action for Patch Manager to take on patches included in the RejectedPackages list. ALLOW_AS_DEPENDENCY Linux and macOS: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as INSTALLED_OTHER. This is the default action if no option is specified. Windows Server: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as INSTALLED_OTHER. Any package not alre"
    },
    "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 status to be assigned to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline. Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed. Supported for Wi"
    },
    "Replace": {
      "type": "boolean",
      "description": "If True, then all fields that are required by the CreatePatchBaseline operation are also required for this API request. Optional fields that aren't specified are set to null."
    }
  },
  "required": [
    "BaselineId"
  ],
  "$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"
      ]
    }
  }
}