{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-iam-principal-arns-v2-schema.json",
  "title": "IamPrincipalArnsV2",
  "description": "List of IAM Principal ARNs for a cluster data center",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-aws-endpoint-service-principals-v2-api-openapi.yml#/components/schemas/IamPrincipalArnsV2",
  "type": "object",
  "properties": {
    "clusterDataCenterId": {
      "type": "string",
      "description": "ID of the cluster data center",
      "x-terraform-id": true
    },
    "iamPrincipalArns": {
      "type": "array",
      "description": "IAM Principal ARNs to allow connection to the AWS Endpoint Service.",
      "items": {
        "$ref": "#/$defs/IamPrincipalArnV2"
      }
    }
  },
  "$defs": {
    "IamPrincipalArnV2": {
      "required": [
        "clusterDataCenterId",
        "principalArn"
      ],
      "type": "object",
      "properties": {
        "clusterDataCenterId": {
          "type": "string",
          "description": "The ID of the cluster data center.",
          "format": "uuid",
          "x-terraform-force-new": true
        },
        "endPointServiceId": {
          "type": "string",
          "description": "The Instaclustr ID of the AWS endpoint service",
          "x-terraform-computed": true
        },
        "id": {
          "type": "string",
          "description": "The Instaclustr ID of the IAM Principal ARN.",
          "format": "uuid",
          "readOnly": true
        },
        "principalArn": {
          "pattern": "^arn:aws:iam::[0-9]{12}:(root$|user\\/[\\w+=,.@-]+|role\\/[\\w+=,.@-]+)$",
          "type": "string",
          "description": "The IAM Principal ARN.",
          "x-terraform-force-new": true
        }
      },
      "description": "Definition of an IAM Principal ARN being used for Kafka PrivateLink."
    }
  }
}