{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-put-compliance-items-request-schema.json",
  "title": "PutComplianceItemsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-operations-api-openapi.yml#/components/schemas/PutComplianceItemsRequest",
  "type": "object",
  "properties": {
    "ResourceId": {
      "type": "string",
      "description": "Specify an ID for this resource. For a managed node, this is the node ID."
    },
    "ResourceType": {
      "type": "string",
      "description": "Specify the type of resource. ManagedInstance is currently the only supported resource type."
    },
    "ComplianceType": {
      "type": "string",
      "description": "Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string."
    },
    "ExecutionSummary": {
      "$ref": "#/$defs/ComplianceExecutionSummary"
    },
    "Items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComplianceItemEntry"
      },
      "description": "Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items includes information about the PatchSeverity, Classification, and so on."
    },
    "ItemContentHash": {
      "type": "string",
      "description": "MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored."
    },
    "UploadType": {
      "type": "string",
      "enum": [
        "COMPLETE",
        "PARTIAL"
      ],
      "description": "The mode for uploading compliance items. You can specify COMPLETE or PARTIAL. In COMPLETE mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request. In PARTIAL mode, the system overwrites compliance information for a specific association. The association must be configured with SyncCompliance set to MANUAL. By default, all requests use COMPLETE mode. This attribute is only valid for association compliance."
    }
  },
  "required": [
    "ResourceId",
    "ResourceType",
    "ComplianceType",
    "ExecutionSummary",
    "Items"
  ],
  "$defs": {
    "ComplianceExecutionSummary": {
      "type": "object",
      "properties": {
        "ExecutionTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the execution ran as a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z' For State Manager associations, this timestamp represents when the compliance status was captured and reported by the Systems Manager service, not when the underlying association was actually executed on the managed node. To track actual association execution times, use the DescribeAssociationExecutionTargets command or check the association execution history in the Systems Manager console."
        },
        "ExecutionId": {
          "type": "string",
          "description": "An ID created by the system when PutComplianceItems was called. For example, CommandID is a valid execution ID. You can use this ID in subsequent calls."
        },
        "ExecutionType": {
          "type": "string",
          "description": "The type of execution. For example, Command is a valid execution type."
        }
      },
      "required": [
        "ExecutionTime"
      ]
    },
    "ComplianceItemEntry": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number of the KB article."
        },
        "Title": {
          "type": "string",
          "description": "The title of the compliance item. For example, if the compliance item is a Windows patch, the title could be the title of the KB article for the patch; for example: Security Update for Active Directory Federation Services."
        },
        "Severity": {
          "type": "string",
          "enum": [
            "CRITICAL",
            "HIGH",
            "MEDIUM",
            "LOW",
            "INFORMATIONAL",
            "UNSPECIFIED"
          ],
          "description": "The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified."
        },
        "Status": {
          "type": "string",
          "enum": [
            "COMPLIANT",
            "NON_COMPLIANT"
          ],
          "description": "The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT."
        },
        "Details": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A \"Key\": \"Value\" tag combination for the compliance item."
        }
      },
      "required": [
        "Severity",
        "Status"
      ]
    }
  }
}