list_custom_models
¶
list_custom_models(
*,
config_overrides: Optional[BedrockClientConfig] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
name_contains: Optional[CustomModelName] = None,
base_model_arn_equals: Optional[ModelArn] = None,
foundation_model_arn_equals: Optional[FoundationModelArn] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
sort_by: Optional[SortModelsBy] = None,
sort_order: Optional[SortOrder] = None,
is_owned: Optional[bool] = None,
model_status: Optional[ModelStatus] = None,
) -> ListCustomModelsResponse
Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.
For more information, see Custom models in the Amazon Bedrock User Guide.
Parameters:
-
creation_time_before(Optional[Timestamp], default:None) –Return custom models created before the specified time.
-
creation_time_after(Optional[Timestamp], default:None) –Return custom models created after the specified time.
-
name_contains(Optional[CustomModelName], default:None) –Return custom models only if the job name contains these characters.
-
base_model_arn_equals(Optional[ModelArn], default:None) –Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter.
-
foundation_model_arn_equals(Optional[FoundationModelArn], default:None) –Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
next_token(Optional[PaginationToken], default:None) –If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. -
sort_by(Optional[SortModelsBy], default:None) –The field to sort by in the returned list of models.
-
sort_order(Optional[SortOrder], default:None) –The sort order of the results.
-
is_owned(Optional[bool], default:None) –Return custom models depending on if the current account owns them (
true) or if they were shared with the current account (false). -
model_status(Optional[ModelStatus], default:None) –The status of them model to filter results by. Possible values include:
-
Creating- Include only models that are currently being created and validated. -
Active- Include only models that have been successfully created and are ready for use. -
Failed- Include only models where the creation process failed.
If you don't specify a status, the API returns models in all states.
-
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
3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 | |