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,
) -> 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/async_bedrock.py
6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 | |