{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-list-audit-findings-request-schema.json",
  "title": "ListAuditFindingsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-audit-api-openapi.yml#/components/schemas/ListAuditFindingsRequest",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "description": "A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both."
    },
    "checkName": {
      "type": "string",
      "description": "A filter to limit results to the findings for the specified audit check."
    },
    "resourceIdentifier": {
      "$ref": "#/$defs/ResourceIdentifier"
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return at one time. The default is 25."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results."
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "A filter to limit results to those found before the specified time. You must specify either the startTime and endTime or the taskId, but not both."
    },
    "listSuppressedFindings": {
      "type": "boolean",
      "description": "Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed findings."
    }
  },
  "$defs": {
    "IssuerCertificateIdentifier": {
      "type": "object",
      "properties": {
        "issuerCertificateSubject": {
          "type": "string",
          "description": "The subject of the issuer certificate."
        },
        "issuerId": {
          "type": "string",
          "description": "The issuer ID."
        },
        "issuerCertificateSerialNumber": {
          "type": "string",
          "description": "The issuer certificate serial number."
        }
      }
    },
    "PolicyVersionIdentifier": {
      "type": "object",
      "properties": {
        "policyName": {
          "type": "string",
          "description": "The name of the policy."
        },
        "policyVersionId": {
          "type": "string",
          "description": "The ID of the version of the policy associated with the resource."
        }
      }
    },
    "ResourceIdentifier": {
      "type": "object",
      "properties": {
        "deviceCertificateId": {
          "type": "string",
          "description": "The ID of the certificate attached to the resource."
        },
        "caCertificateId": {
          "type": "string",
          "description": "The ID of the CA certificate used to authorize the certificate."
        },
        "cognitoIdentityPoolId": {
          "type": "string",
          "description": "The ID of the Amazon Cognito identity pool."
        },
        "clientId": {
          "type": "string",
          "description": "The client ID."
        },
        "policyVersionIdentifier": {
          "$ref": "#/$defs/PolicyVersionIdentifier"
        },
        "account": {
          "type": "string",
          "description": "The account with which the resource is associated."
        },
        "iamRoleArn": {
          "type": "string",
          "description": "The ARN of the IAM role that has overly permissive actions."
        },
        "roleAliasArn": {
          "type": "string",
          "description": "The ARN of the role alias that has overly permissive actions."
        },
        "issuerCertificateIdentifier": {
          "$ref": "#/$defs/IssuerCertificateIdentifier"
        },
        "deviceCertificateArn": {
          "type": "string",
          "description": "The ARN of the identified device certificate."
        }
      }
    }
  }
}