Skip to main content
GET
/
admin
/
connections
/
aws-role-config
Get Barndoor's AWS principal
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/connections/aws-role-config \
  --header 'Authorization: Bearer <token>'
{
  "configured": true,
  "principal_arn": "arn:aws:iam::123456789012:role/barndoor-llm-gateway"
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Response

200 - application/json

Barndoor's AWS principal info

Barndoor's AWS principal that customer roles must trust for AWS Bedrock IAM-role auth.

configured
boolean
required

Whether AWS role auth is enabled on this Barndoor environment.

principal_arn
string | null

The AWS IAM principal ARN customers should trust in their role's trust policy.

Example:

"arn:aws:iam::123456789012:role/barndoor-llm-gateway"