{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-cluster-all-aws-security-group-firewall-rules-v2-schema.json",
  "title": "ClusterAllAwsSecurityGroupFirewallRulesV2",
  "description": "A listable data source of all AWS Security Group based firewall rules in an Instaclustr managed cluster.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-aws-security-group-firewall-rules-v2-api-openapi.yml#/components/schemas/ClusterAllAwsSecurityGroupFirewallRulesV2",
  "required": [
    "clusterId",
    "firewallRules"
  ],
  "type": "object",
  "properties": {
    "clusterId": {
      "type": "string",
      "description": "ID of the cluster",
      "format": "uuid"
    },
    "id": {
      "type": "string",
      "description": "ID of the cluster security group firewall rules resource",
      "format": "uuid",
      "readOnly": true
    },
    "firewallRules": {
      "type": "array",
      "description": "Cluster AWS Security Group firewall rules",
      "items": {
        "$ref": "#/$defs/ClusterAllAwsSecurityGroupFirewallRuleV2"
      },
      "x-terraform-field-name": "firewall_rule",
      "x-terraform-ignore-order": true
    },
    "status": {
      "type": "string",
      "description": "The status of the cluster",
      "readOnly": true,
      "x-terraform-field-status": true
    }
  },
  "$defs": {
    "ClusterAllAwsSecurityGroupFirewallRuleV2": {
      "required": [
        "securityGroupId",
        "type"
      ],
      "type": "object",
      "properties": {
        "securityGroupId": {
          "type": "string",
          "description": "The security group ID of the AWS security group firewall rule.",
          "x-insta-unchangeable": true
        },
        "deferredReason": {
          "type": "string",
          "description": "The reason (if needed) for the deferred status of the AWS security group firewall rule.",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "ID of the AWS security group firewall rule.",
          "format": "uuid",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ClusterAllFirewallRuleTypesV2"
        }
      },
      "description": "Definition of an AWS Security Group based firewall rule to be applied to a cluster."
    },
    "ClusterAllFirewallRuleTypesV2": {
      "type": "string",
      "description": "The type of firewall rule.",
      "enum": [
        "APACHE_ZOOKEEPER",
        "CADENCE",
        "CADENCE_GRPC",
        "CADENCE_HTTP_API",
        "CADENCE_WEB",
        "CASSANDRA",
        "CASSANDRA_CQL",
        "CLICKHOUSE",
        "CLICKHOUSE_WEB",
        "ELASTICSEARCH",
        "KAFKA",
        "KAFKA_CONNECT",
        "KAFKA_ENCRYPTION",
        "KAFKA_MTLS",
        "KAFKA_NO_ENCRYPTION",
        "KAFKA_PRIVATE_SASL_PLAINTEXT_LISTENER",
        "KAFKA_PUBLIC_SASL_PLAINTEXT_LISTENER",
        "KAFKA_PRIVATE_PLAINTEXT_LISTENER",
        "KAFKA_PUBLIC_PLAINTEXT_LISTENER",
        "KAFKA_PRIVATE_SSL_LISTENER",
        "KAFKA_PUBLIC_SSL_LISTENER",
        "KAFKA_REST_PROXY",
        "KAFKA_SCHEMA_REGISTRY",
        "KARAPACE_REST_PROXY",
        "KARAPACE_SCHEMA_REGISTRY",
        "OPENSEARCH",
        "OPENSEARCH_DASHBOARDS",
        "PGBOUNCER",
        "POSTGRESQL",
        "REDIS",
        "VALKEY",
        "SEARCH_DASHBOARDS",
        "SECURE_APACHE_ZOOKEEPER",
        "SPARK",
        "SPARK_JOBSERVER",
        "SHOTOVER_PROXY",
        "MCP_GATEWAY",
        "KAFKA_DISKLESS"
      ],
      "x-insta-unchangeable": true
    }
  }
}