{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-account-audit-configuration-request-schema.json",
  "title": "UpdateAccountAuditConfigurationRequest",
  "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/UpdateAccountAuditConfigurationRequest",
  "type": "object",
  "properties": {
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the role that grants permission to IoT to access information about your devices, policies, certificates, and other items as required when performing an audit."
    },
    "auditNotificationTargetConfigurations": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AuditNotificationTarget"
      },
      "description": "Information about the targets to which audit notifications are sent."
    },
    "auditCheckConfigurations": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AuditCheckConfiguration"
      },
      "description": "Specifies which audit checks are enabled and disabled for this account. Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are currently enabled. Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted. You cannot disable a check if it's used by any scheduled audit. You must first delete the check from the scheduled audit or delete the scheduled audit itself. On the first call to UpdateAccountAuditConfiguration, this parameter is required and must"
    }
  },
  "$defs": {
    "AuditCheckConfiguration": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "True if this audit check is enabled for this account."
        },
        "configuration": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A structure containing the configName and corresponding configValue for configuring audit checks."
        }
      }
    },
    "AuditNotificationTarget": {
      "type": "object",
      "properties": {
        "targetArn": {
          "type": "string",
          "description": "The ARN of the target (SNS topic) to which audit notifications are sent."
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the role that grants permission to send notifications to the target."
        },
        "enabled": {
          "type": "boolean",
          "description": "True if notifications to the target are enabled."
        }
      }
    }
  }
}