list_custom_models
async
¶
list_custom_models(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
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 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 | |