Skip to main content

imported_models

Creates, updates, deletes, gets or lists an imported_models resource.

Overview

Nameimported_models
TypeResource
Idaws.bedrock.imported_models

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)Creation time of the imported model.
custom_model_unitsobjectInformation about the hardware utilization for a single copy of the model.
instruct_supportedbooleanSpecifies if the imported model supports converse.
job_arnstringJob Amazon Resource Name (ARN) associated with the imported model. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-import-job/[a-z0-9]{12}</code>)
job_namestringJob name associated with the imported model. (pattern: <code>[a-zA-Z0-9](-[a-zA-Z0-9+-.])</code>)
model_architecturestringThe architecture of the imported model.
model_arnstringThe Amazon Resource Name (ARN) associated with this imported model. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:imported-model/[a-z0-9]{12}</code>)
model_data_sourceobjectThe data source of the model to import.
model_kms_key_arnstringThe imported model is encrypted at rest using this key. (pattern: <code>arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
model_namestringThe name of the imported model. (pattern: <code>([0-9a-zA-Z][_-]?)+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_imported_modelselectmodel_identifier, regionGets properties associated with a customized model you imported.
list_imported_modelsselectregioncreationTimeBefore, creationTimeAfter, nameContains, maxResults, nextToken, sortBy, sortOrderReturns 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.
delete_imported_modeldeletemodel_identifier, regionDeletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
model_identifierstringName of the imported model to delete.
regionstringAWS region (default: us-east-1)
creationTimeAfterstring (date-time)Return imported models that were created after the specified time.
creationTimeBeforestring (date-time)Return imported models that created before the specified time.
maxResultsintegerThe 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.
nameContainsstringReturn imported models only if the model name contains these characters.
nextTokenstringIf 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.
sortBystringThe field to sort by in the returned list of imported models.
sortOrderstringSpecifies whetehr to sort the results in ascending or descending order.

SELECT examples

Gets properties associated with a customized model you imported.

SELECT
creation_time,
custom_model_units,
instruct_supported,
job_arn,
job_name,
model_architecture,
model_arn,
model_data_source,
model_kms_key_arn,
model_name
FROM aws.bedrock.imported_models
WHERE model_identifier = '{{ model_identifier }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.

DELETE FROM aws.bedrock.imported_models
WHERE model_identifier = '{{ model_identifier }}' --required
AND region = '{{ region }}' --required
;