list_foundation_models
¶
list_foundation_models(
*,
config_overrides: Optional[BedrockClientConfig] = None,
by_provider: Optional[Provider] = None,
by_customization_type: Optional[ModelCustomization] = None,
by_output_modality: Optional[ModelModality] = None,
by_inference_type: Optional[InferenceType] = None,
project_identifier: Optional[ProjectIdentifier] = None,
) -> ListFoundationModelsResponse
Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.
Parameters:
-
by_provider(Optional[Provider], default:None) –Return models belonging to the model provider that you specify.
-
by_customization_type(Optional[ModelCustomization], default:None) –Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.
-
by_output_modality(Optional[ModelModality], default:None) –Return models that support the output modality that you specify.
-
by_inference_type(Optional[InferenceType], default:None) –Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
-
project_identifier(Optional[ProjectIdentifier], default:None) –The ID or Amazon Resource Name (ARN) of a project. Amazon Bedrock uses the project's trusted access program participation when determining which models to return. The project must belong to your account in the same AWS Region and partition as the request.
If you omit this parameter or specify
default, Amazon Bedrock uses your account's participation, including organization inheritance. A project that doesn't exist or is archived causes aValidationException.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 | |