* * AMAZON REGIONS *
(region: string)
| 1340 | *************************************************************************************/ |
| 1341 | |
| 1342 | private static getPrefixForRegion(region: string): string | undefined { |
| 1343 | // Use AWS recommended inference profile prefixes |
| 1344 | // Array is pre-sorted by pattern length (descending) to ensure more specific patterns match first |
| 1345 | for (const [regionPattern, inferenceProfile] of AWS_INFERENCE_PROFILE_MAPPING) { |
| 1346 | if (region.startsWith(regionPattern)) { |
| 1347 | return inferenceProfile |
| 1348 | } |
| 1349 | } |
| 1350 | |
| 1351 | return undefined |
| 1352 | } |
| 1353 | |
| 1354 | private static isSystemInferenceProfile(prefix: string): boolean { |
| 1355 | // Check if the prefix is defined in AWS_INFERENCE_PROFILE_MAPPING |
no outgoing calls
no test coverage detected