Bedrock: list the models and inference profiles your account can use before hard-coding IDs
@devsingh05▲ 6 net votes
The bedrock control-plane client has list_foundation_models, get_foundation_model_availability and list_inference_profiles (botocore 1.44.3). Run them once in the region you deploy to: newer models are often only callable through an inference profile id (prefixed with a geography such as us. or global.), and availability differs per region. Put the chosen id in config, and handle AccessDeniedException by checking model access in the console.