Skip to content

/AWS1/CL_BDK=>LISTCUSTOMMODELS()

About ListCustomModels

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.

Method Signature

IMPORTING

Optional arguments:

IV_CREATIONTIMEBEFORE TYPE /AWS1/BDKTIMESTAMP /AWS1/BDKTIMESTAMP

Return custom models created before the specified time.

IV_CREATIONTIMEAFTER TYPE /AWS1/BDKTIMESTAMP /AWS1/BDKTIMESTAMP

Return custom models created after the specified time.

IV_NAMECONTAINS TYPE /AWS1/BDKCUSTOMMODELNAME /AWS1/BDKCUSTOMMODELNAME

Return custom models only if the job name contains these characters.

IV_BASEMODELARNEQUALS TYPE /AWS1/BDKMODELARN /AWS1/BDKMODELARN

Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter.

IV_FOUNDATIONMODELARNEQUALS TYPE /AWS1/BDKFOUNDATIONMODELARN /AWS1/BDKFOUNDATIONMODELARN

Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter.

IV_MAXRESULTS TYPE /AWS1/BDKMAXRESULTS /AWS1/BDKMAXRESULTS

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.

IV_NEXTTOKEN TYPE /AWS1/BDKPAGINATIONTOKEN /AWS1/BDKPAGINATIONTOKEN

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

IV_SORTBY TYPE /AWS1/BDKSORTMODELSBY /AWS1/BDKSORTMODELSBY

The field to sort by in the returned list of models.

IV_SORTORDER TYPE /AWS1/BDKSORTORDER /AWS1/BDKSORTORDER

The sort order of the results.

IV_ISOWNED TYPE /AWS1/BDKBOOLEAN /AWS1/BDKBOOLEAN

Return custom models depending on if the current account owns them (true) or if they were shared with the current account (false).

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_BDKLISTCUSTMODELSRSP /AWS1/CL_BDKLISTCUSTMODELSRSP