{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-list-automation-rules-v2-response-schema.json",
  "title": "ListAutomationRulesV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-automationrulesv2-api-openapi.yml#/components/schemas/ListAutomationRulesV2Response",
  "type": "object",
  "properties": {
    "Rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutomationRulesMetadataV2"
      },
      "description": "An array of automation rules."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token to use to request the next page of results. Otherwise, this parameter is null."
    }
  },
  "$defs": {
    "AutomationRulesActionTypeObjectV2": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "FINDING_FIELDS_UPDATE",
            "EXTERNAL_INTEGRATION",
            "RESOURCE_FIELDS_UPDATE"
          ],
          "description": "The category of action to be executed by the automation rule."
        }
      }
    },
    "AutomationRulesMetadataV2": {
      "type": "object",
      "properties": {
        "RuleArn": {
          "type": "string",
          "description": "The ARN of the automation rule."
        },
        "RuleId": {
          "type": "string",
          "description": "The ID of the automation rule."
        },
        "RuleOrder": {
          "type": "number",
          "description": "The value for the rule priority."
        },
        "RuleName": {
          "type": "string",
          "description": "The name of the automation rule."
        },
        "RuleStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of the automation rule."
        },
        "Description": {
          "type": "string",
          "description": "An explanation for the purpose and funcitonality of the automation rule."
        },
        "Actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutomationRulesActionTypeObjectV2"
          },
          "description": "The list of action to be performed when the rule criteria is met."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the automation rule was created."
        },
        "UpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for the most recent modification to the automation rule."
        }
      }
    }
  }
}