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,
) -> 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.
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
6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 | |