Bedrock / Client / list_imported_models
list_imported_models#
- Bedrock.Client.list_imported_models(**kwargs)#
Returns a list of models you’ve imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_imported_models( creationTimeBefore=datetime(2015, 1, 1), creationTimeAfter=datetime(2015, 1, 1), nameContains='string', maxResults=123, nextToken='string', sortBy='CreationTime', sortOrder='Ascending'|'Descending' )
- Parameters:
creationTimeBefore (datetime) – Return imported models that created before the specified time.
creationTimeAfter (datetime) – Return imported models that were created after the specified time.
nameContains (string) – Return imported models only if the model name contains these characters.
maxResults (integer) – 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
nextToken
field when making another request to return the next batch of results.nextToken (string) – If the total number of results is greater than the
maxResults
value provided in the request, enter the token returned in thenextToken
field in the response in this field to return the next batch of results.sortBy (string) – The field to sort by in the returned list of imported models.
sortOrder (string) – Specifies whetehr to sort the results in ascending or descending order.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'modelSummaries': [ { 'modelArn': 'string', 'modelName': 'string', 'creationTime': datetime(2015, 1, 1), 'instructSupported': True|False, 'modelArchitecture': 'string' }, ] }
Response Structure
(dict) –
nextToken (string) –
If the total number of results is greater than the
maxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.modelSummaries (list) –
Model summaries.
(dict) –
Information about the imported model.
modelArn (string) –
The Amazon Resource Name (ARN) of the imported model.
modelName (string) –
Name of the imported model.
creationTime (datetime) –
Creation time of the imported model.
instructSupported (boolean) –
Specifies if the imported model supports converse.
modelArchitecture (string) –
The architecture of the imported model.
Exceptions