{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-batch-update-findings-v2-response-schema.json",
  "title": "BatchUpdateFindingsV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-findingsv2-api-openapi.yml#/components/schemas/BatchUpdateFindingsV2Response",
  "type": "object",
  "properties": {
    "ProcessedFindings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchUpdateFindingsV2ProcessedFinding"
      },
      "description": "The list of findings that were updated successfully."
    },
    "UnprocessedFindings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchUpdateFindingsV2UnprocessedFinding"
      },
      "description": "The list of V2 findings that were not updated."
    }
  },
  "required": [
    "ProcessedFindings",
    "UnprocessedFindings"
  ],
  "$defs": {
    "BatchUpdateFindingsV2ProcessedFinding": {
      "type": "object",
      "properties": {
        "FindingIdentifier": {
          "$ref": "#/$defs/OcsfFindingIdentifier"
        },
        "MetadataUid": {
          "type": "string",
          "description": "The metadata.uid of a processed finding."
        }
      }
    },
    "BatchUpdateFindingsV2UnprocessedFinding": {
      "type": "object",
      "properties": {
        "FindingIdentifier": {
          "$ref": "#/$defs/OcsfFindingIdentifier"
        },
        "MetadataUid": {
          "type": "string",
          "description": "The metadata.uid of an unprocessed finding."
        },
        "ErrorCode": {
          "type": "string",
          "enum": [
            "ResourceNotFoundException",
            "ValidationException",
            "InternalServerException",
            "ConflictException"
          ],
          "description": "Indicates the specific type of error preventing successful processing of a finding during a batch update operation."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "A detailed description of why a finding could not be processed during a batch update operation."
        }
      }
    },
    "OcsfFindingIdentifier": {
      "type": "object",
      "properties": {
        "CloudAccountUid": {
          "type": "string",
          "description": "Finding cloud.account.uid, which is a unique identifier in the Amazon Web Services account.."
        },
        "FindingInfoUid": {
          "type": "string",
          "description": "Finding finding_info.uid, which is a unique identifier for the finding from the finding provider."
        },
        "MetadataProductUid": {
          "type": "string",
          "description": "Finding metadata.product.uid, which is a unique identifier for the product."
        }
      },
      "required": [
        "CloudAccountUid",
        "FindingInfoUid",
        "MetadataProductUid"
      ]
    }
  }
}