Amazon Bedrock

2025/03/21 - Amazon Bedrock - 1 updated api methods

Changes  A CustomModelUnit(CMU) is an abstract view of the hardware utilization that Bedrock needs to host a a single copy of your custom imported model. Bedrock determines the number of CMUs that a model copy needs when you import the custom model. You can use CMUs to estimate the cost of Inference's.

GetImportedModel (updated) Link ΒΆ
Changes (response)
{'customModelUnits': {'customModelUnitsPerModelCopy': 'integer',
                      'customModelUnitsVersion': 'string'}}

Gets properties associated with a customized model you imported.

See also: AWS API Documentation

Request Syntax

client.get_imported_model(
    modelIdentifier='string'
)
type modelIdentifier:

string

param modelIdentifier:

[REQUIRED]

Name or Amazon Resource Name (ARN) of the imported model.

rtype:

dict

returns:

Response Syntax

{
    'modelArn': 'string',
    'modelName': 'string',
    'jobName': 'string',
    'jobArn': 'string',
    'modelDataSource': {
        's3DataSource': {
            's3Uri': 'string'
        }
    },
    'creationTime': datetime(2015, 1, 1),
    'modelArchitecture': 'string',
    'modelKmsKeyArn': 'string',
    'instructSupported': True|False,
    'customModelUnits': {
        'customModelUnitsPerModelCopy': 123,
        'customModelUnitsVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • modelArn (string) --

      The Amazon Resource Name (ARN) associated with this imported model.

    • modelName (string) --

      The name of the imported model.

    • jobName (string) --

      Job name associated with the imported model.

    • jobArn (string) --

      Job Amazon Resource Name (ARN) associated with the imported model.

    • modelDataSource (dict) --

      The data source for this imported model.

      • s3DataSource (dict) --

        The Amazon S3 data source of the imported model.

        • s3Uri (string) --

          The URI of the Amazon S3 data source.

    • creationTime (datetime) --

      Creation time of the imported model.

    • modelArchitecture (string) --

      The architecture of the imported model.

    • modelKmsKeyArn (string) --

      The imported model is encrypted at rest using this key.

    • instructSupported (boolean) --

      Specifies if the imported model supports converse.

    • customModelUnits (dict) --

      Information about the hardware utilization for a single copy of the model.

      • customModelUnitsPerModelCopy (integer) --

        The number of custom model units used to host a model copy.

      • customModelUnitsVersion (string) --

        The version of the custom model unit. Use to determine the billing rate for the custom model unit.