list_foundation_models
async
¶
list_foundation_models(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 | |