feat: add bedrock application inference profile (#1938)

This commit is contained in:
Taiki Maekawa 2025-03-24 23:17:47 +09:00 committed by GitHub
parent cc2420ea1a
commit 2985172c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)\/(.+)$/
/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|application-inference-profile)\/(.+)$/
const match = arn.match(arnRegex)
if (!match) {