{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-list-exposures-by-remediation-v2-response-schema.json",
  "title": "ListExposuresByRemediationV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-operations-api-openapi.yml#/components/schemas/ListExposuresByRemediationV2Response",
  "type": "object",
  "properties": {
    "Items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExposureFinding"
      },
      "description": "An array of exposure findings returned by the operation."
    },
    "TargetUid": {
      "type": "string",
      "description": "The unique identifier (ID) of the remediation target that the exposure findings are associated with."
    },
    "Resource": {
      "$ref": "#/$defs/RemediationResource"
    },
    "TotalCount": {
      "type": "integer",
      "description": "The total count of exposure findings associated with the remediation target."
    },
    "Trait": {
      "$ref": "#/$defs/RemediationTrait"
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token to use to request the next page of results. Otherwise, this parameter is null."
    }
  },
  "required": [
    "Items",
    "TargetUid",
    "Resource",
    "TotalCount",
    "Trait"
  ],
  "$defs": {
    "ExposureFinding": {
      "type": "object",
      "properties": {
        "MetadataUid": {
          "type": "string",
          "description": "The unique identifier (ID) of the Security Hub exposure finding, found under the metadata.uid field of the finding."
        },
        "Title": {
          "type": "string",
          "description": "The title of the exposure finding."
        },
        "PreviousSeverity": {
          "type": "string",
          "enum": [
            "Informational",
            "Low",
            "Medium",
            "High",
            "Critical"
          ],
          "description": "The severity of the exposure finding before the remediation target is resolved."
        },
        "ProjectedSeverity": {
          "type": "string",
          "enum": [
            "Informational",
            "Low",
            "Medium",
            "High",
            "Critical"
          ],
          "description": "The severity of the exposure finding after the remediation target is resolved."
        },
        "Impact": {
          "type": "string",
          "enum": [
            "Reduces",
            "Resolves",
            "Unchanged"
          ],
          "description": "The impact resolving a remediation target has on the exposure finding. Reduces specifies that resolving the remediation target lowers the severity of the exposure finding, but does not resolve it. Resolves specifies that resolving the remediation target resolves the exposure finding. Unchanged specifies that resolving the remediation target does not change the severity of the exposure finding."
        }
      },
      "required": [
        "MetadataUid",
        "Title",
        "PreviousSeverity",
        "ProjectedSeverity",
        "Impact"
      ]
    },
    "RemediationResource": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "description": "The Amazon Web Services account that recorded the resource data in Security Hub."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region in which Security Hub recorded the resource data."
        },
        "ResourceOwnerAccountId": {
          "type": "string",
          "description": "The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID."
        },
        "ResourceOwnerOrgId": {
          "type": "string",
          "description": "The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID."
        },
        "Type": {
          "type": "string",
          "description": "The type of the resource."
        },
        "Name": {
          "type": "string",
          "description": "The name of the resource."
        },
        "Id": {
          "type": "string",
          "description": "The unique identifier for a resource."
        },
        "ResourceGuid": {
          "type": "string",
          "description": "The global identifier used to identify a resource."
        },
        "ResourceRegion": {
          "type": "string",
          "description": "The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example, us-east-1). For Azure resources, this is the Azure region (for example, westus2). This field is always included."
        },
        "CloudProvider": {
          "type": "string",
          "enum": [
            "Azure",
            "AWS"
          ],
          "description": "The cloud provider where the resource exists. AWS specifies that the resource exists in Amazon Web Services. Azure specifies that the resource exists in Microsoft Azure."
        }
      },
      "required": [
        "AccountId",
        "Region",
        "Type",
        "Id",
        "ResourceRegion",
        "CloudProvider"
      ]
    },
    "RemediationTrait": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "description": "The trait type."
        },
        "Title": {
          "type": "string",
          "description": "The trait title."
        }
      },
      "required": [
        "Type",
        "Title"
      ]
    }
  }
}