{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-list-export-jobs-v2-response-schema.json",
  "title": "ListExportJobsV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-exportjobsv2-api-openapi.yml#/components/schemas/ListExportJobsV2Response",
  "type": "object",
  "properties": {
    "Items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExportSummary"
      },
      "description": "The export jobs that match the request, as ExportSummary objects."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token to use to request the next page of results. Otherwise, this parameter is null."
    }
  },
  "required": [
    "Items"
  ],
  "$defs": {
    "AwsOrganizationScope": {
      "type": "object",
      "properties": {
        "OrganizationId": {
          "type": "string",
          "description": "The unique identifier (ID) of the organization (for example, o-abcd1234567890). The organization must be the delegated administrator's own organization. If you omit this value and provide OrganizationalUnitId, Security Hub uses the caller's organization ID."
        },
        "OrganizationalUnitId": {
          "type": "string",
          "description": "The unique identifier (ID) of the organizational unit (OU) (for example, ou-ab12-cd345678). The OU must exist within the delegated administrator's own organization. When specified, the results include only data from accounts in this OU."
        }
      }
    },
    "ExportDestination": {
      "type": "object",
      "properties": {
        "S3": {
          "$ref": "#/$defs/S3ExportDestination"
        }
      },
      "description": "Exactly one member is set."
    },
    "ExportOutputSummary": {
      "type": "object",
      "properties": {
        "Findings": {
          "$ref": "#/$defs/FindingsOutputSummary"
        }
      },
      "description": "Exactly one member is set."
    },
    "ExportScopes": {
      "type": "object",
      "properties": {
        "AwsOrganizations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AwsOrganizationScope"
          },
          "description": "A list of Organizations scopes to include in the export. Each entry in the list specifies an organization or organizational unit to include for the delegated administrator's account. If the list specifies multiple entries, the entries are combined using OR logic."
        }
      }
    },
    "ExportSummary": {
      "type": "object",
      "properties": {
        "ExportJobId": {
          "type": "string",
          "description": "The unique identifier of the export job."
        },
        "Name": {
          "type": "string",
          "description": "The user-provided name of the export job, if one was specified."
        },
        "Status": {
          "type": "string",
          "enum": [
            "RUNNING",
            "SUCCEEDED",
            "FAILED",
            "CANCELLED"
          ],
          "description": "The current state of the export job."
        },
        "DataType": {
          "type": "string",
          "enum": [
            "FINDINGS"
          ],
          "description": "The category of data that the export job produces."
        },
        "OutputConfiguration": {
          "$ref": "#/$defs/ExportOutputSummary"
        },
        "Scopes": {
          "$ref": "#/$defs/ExportScopes"
        },
        "Destination": {
          "$ref": "#/$defs/ExportDestination"
        },
        "FailureCode": {
          "type": "string",
          "enum": [
            "ACCESS_DENIED",
            "RESOURCE_NOT_FOUND",
            "INTERNAL_ERROR"
          ],
          "description": "A code that classifies why the export job failed. Present only when Status is FAILED."
        },
        "FailureMessage": {
          "type": "string",
          "description": "A human-readable message about why the export job failed. Present only when Status is FAILED."
        },
        "StartedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the export job was created. For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps."
        },
        "EndedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the export job reached a terminal state. Absent while the job is RUNNING. For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps."
        }
      },
      "required": [
        "ExportJobId",
        "Status",
        "DataType",
        "Destination",
        "StartedAt"
      ]
    },
    "FindingsOutputSummary": {
      "type": "object",
      "properties": {
        "Format": {
          "type": "string",
          "enum": [
            "CSV",
            "OCSF_JSON"
          ],
          "description": "The output format of the export. CSV produces comma-separated rows that are suitable for spreadsheets and analysis tools. OCSF_JSON produces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub."
        }
      },
      "required": [
        "Format"
      ]
    },
    "S3ExportDestination": {
      "type": "object",
      "properties": {
        "BucketArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to. You must own the bucket, and its bucket policy must grant the Security Hub service principal (exportv2.securityhub.amazonaws.com) permission to write objects. For the required bucket policy, see the Examples section of StartExportJobV2."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with server-side encryption. The key policy must allow the Security Hub service principal (exportv2.securityhub.amazonaws.com) to use the key through Amazon S3. For the required key policy, see the Examples section of StartExportJobV2. The key must meet all of the following requirements: It must be a symmetric key with a key usage of ENCRYPT_DECRYPT. It must be a single-Region key. Multi-Region keys, whose key IDs begin with mrk-, are rejected. You must specify the full key ARN. Key IDs and aliases "
        },
        "ObjectPrefix": {
          "type": "string",
          "description": "An optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output. Use a prefix to organize exports within the bucket. The value can be up to 512 characters."
        }
      },
      "required": [
        "BucketArn",
        "KmsKeyArn"
      ]
    }
  }
}