Saltar al contenido principal
PUT
Registra un delegated grant de AWS

Autorizaciones

Authorization
string
header
requerido

Un JWT bearer emitido por plugin-auth (lib-auth). La identidad del tenant se resuelve a partir de los claims validados del token; la superficie /v1 nunca lee un tenant del cuerpo, del path ni de la query. Los llamadores de máquina obtienen un token vía el flujo client-credentials de plugin-auth. La superficie /admin autoriza contra un scope de operador y no lleva contexto de tenant.

Encabezados

X-Idempotency
string
requerido

A client-chosen unique key that makes this mutation at-most-once. A mutation sent without it is rejected before any write with 400 missing_idempotency_key. Reusing the same key with an identical request replays the original response byte-for-byte (with X-Idempotency-Replayed: true); reusing it with a different request body returns 409 idempotency_conflict. To re-drive a corrected request, mint a new key.

Parámetros de ruta

id
string<uuid>
requerido

The unique identifier of the subscription (UUIDv7).

Cuerpo

application/json

The non-secret AWS delegated-grant coordinates. No AWS credential crosses this body — the role is assumed per delivery, guarded by the separately minted ExternalId.

roleArn
string
requerido

The cross-account delivery role ARN Streaming Hub assumes at delivery time.

Ejemplo:

"arn:aws:iam::444455556666:role/streaming-hub-delegated-delivery"

region
string
requerido

The AWS region of the destination.

Ejemplo:

"us-east-1"

destination
string
requerido

The resolved destination (queue URL or event-bus ARN). SSRF-validated before the write.

Ejemplo:

"https://sqs.us-east-1.amazonaws.com/444455556666/orders"

Respuesta

El grant se persistió (sin cuerpo; el estado de verificación permanece sin cambios).