Include inference-profile in Bedrock arnRegex (#2156)

This commit is contained in:
Matt Rubens 2025-03-31 13:52:57 -04:00 committed by cte
parent a6d6301612
commit dc16241a57

View file

@ -30,7 +30,7 @@ import { logger } from "../../utils/logging"
function validateBedrockArn(arn: string, region?: string) {
// Validate ARN format
const arnRegex =
/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|application-inference-profile)\/(.+)$/
/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|inference-profile|application-inference-profile)\/(.+)$/
const match = arn.match(arnRegex)
if (!match) {