We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74faacd commit 9a43222Copy full SHA for 9a43222
webview-ui/src/utils/validate.ts
@@ -89,7 +89,7 @@ export function validateApiConfiguration(apiConfiguration?: ApiConfiguration): s
89
*/
90
export function validateBedrockArn(arn: string, region?: string) {
91
// Validate ARN format
92
- const arnRegex = /^arn:aws:bedrock:([^:]+):([^:]*):(?:([^/]+)\/([\w.\-:]+)|([^/]+))$/
+ const arnRegex = /^arn:aws:(?:bedrock|sagemaker):([^:]+):([^:]*):(?:([^/]+)\/([\w.\-:]+)|([^/]+))$/
93
const match = arn.match(arnRegex)
94
95
if (!match) {
0 commit comments