EventBridge DLQ POST returning 400 on retry policy matrix

The Java SDK requires strict schema alignment for EventBridge dead letter queues. We’ve sent an atomic POST to /api/v2/eventbridge/destinations with a retry policy matrix and DLQ topic reference. It’s throwing a 400 Bad Request citing maxRetryCount exceeds limit. Tried stripping the alert threshold directive, still fails. The payload structure looks correct against the docs, but the deserialization pipeline keeps rejecting it. How should the retry policy matrix be formatted inside the JSON body to pass validation without triggering the schema mismatch error.

The API caps maxRetryCount at five. Sending a higher value triggers that exact 400. Don’t overcomplicate the matrix. Flatten the payload like this.

$body = @{
 retryPolicy = @{
 maxRetryCount = 5
 backoffStrategy = "exponential"
 }
} | ConvertTo-Json

The docs are usually vague on the exact cap. Check the destination scope permissions next time it throws.