{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-iam-principal-arn-v2-schema.json",
  "title": "IamPrincipalArnV2",
  "description": "Definition of an IAM Principal ARN being used for Kafka PrivateLink.",
  "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/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
    }
  }
}