@aws-sdk/client-bedrock 3.772.0 → 3.774.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -2544,6 +2544,7 @@ var de_GetImportedModelCommand = /* @__PURE__ */ __name(async (output, context)
2544
2544
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2545
2545
  const doc = (0, import_smithy_client.take)(data, {
2546
2546
  creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
2547
+ customModelUnits: import_smithy_client._json,
2547
2548
  instructSupported: import_smithy_client.expectBoolean,
2548
2549
  jobArn: import_smithy_client.expectString,
2549
2550
  jobName: import_smithy_client.expectString,
@@ -1184,6 +1184,7 @@ export const de_GetImportedModelCommand = async (output, context) => {
1184
1184
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1185
1185
  const doc = take(data, {
1186
1186
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1187
+ customModelUnits: _json,
1187
1188
  instructSupported: __expectBoolean,
1188
1189
  jobArn: __expectString,
1189
1190
  jobName: __expectString,
@@ -53,6 +53,10 @@ declare const GetImportedModelCommand_base: {
53
53
  * // modelArchitecture: "STRING_VALUE",
54
54
  * // modelKmsKeyArn: "STRING_VALUE",
55
55
  * // instructSupported: true || false,
56
+ * // customModelUnits: { // CustomModelUnits
57
+ * // customModelUnitsPerModelCopy: Number("int"),
58
+ * // customModelUnitsVersion: "STRING_VALUE",
59
+ * // },
56
60
  * // };
57
61
  *
58
62
  * ```
@@ -3805,6 +3805,30 @@ export interface GetImportedModelRequest {
3805
3805
  */
3806
3806
  modelIdentifier: string | undefined;
3807
3807
  }
3808
+ /**
3809
+ * <p>A <code>CustomModelUnit</code> (CMU) is an abstract view of the hardware utilization that
3810
+ * Amazon Bedrock needs to host a single copy of your custom model. A model copy represents a
3811
+ * single instance of your imported model that is ready to serve inference requests. Amazon Bedrock
3812
+ * determines the number of custom model units that a model copy needs when you import the custom model.
3813
+ * </p>
3814
+ * <p>You can use <code>CustomModelUnits</code> to estimate the cost of running
3815
+ * your custom model. For more information, see Calculate the cost of running a custom model in the
3816
+ * Amazon Bedrock user guide.
3817
+ * </p>
3818
+ * @public
3819
+ */
3820
+ export interface CustomModelUnits {
3821
+ /**
3822
+ * <p>The number of custom model units used to host a model copy. </p>
3823
+ * @public
3824
+ */
3825
+ customModelUnitsPerModelCopy?: number | undefined;
3826
+ /**
3827
+ * <p>The version of the custom model unit. Use to determine the billing rate for the custom model unit.</p>
3828
+ * @public
3829
+ */
3830
+ customModelUnitsVersion?: string | undefined;
3831
+ }
3808
3832
  /**
3809
3833
  * @public
3810
3834
  */
@@ -3854,6 +3878,11 @@ export interface GetImportedModelResponse {
3854
3878
  * @public
3855
3879
  */
3856
3880
  instructSupported?: boolean | undefined;
3881
+ /**
3882
+ * <p>Information about the hardware utilization for a single copy of the model.</p>
3883
+ * @public
3884
+ */
3885
+ customModelUnits?: CustomModelUnits | undefined;
3857
3886
  }
3858
3887
  /**
3859
3888
  * @public
@@ -1047,6 +1047,10 @@ export interface DeleteImportedModelResponse {}
1047
1047
  export interface GetImportedModelRequest {
1048
1048
  modelIdentifier: string | undefined;
1049
1049
  }
1050
+ export interface CustomModelUnits {
1051
+ customModelUnitsPerModelCopy?: number | undefined;
1052
+ customModelUnitsVersion?: string | undefined;
1053
+ }
1050
1054
  export interface GetImportedModelResponse {
1051
1055
  modelArn?: string | undefined;
1052
1056
  modelName?: string | undefined;
@@ -1057,6 +1061,7 @@ export interface GetImportedModelResponse {
1057
1061
  modelArchitecture?: string | undefined;
1058
1062
  modelKmsKeyArn?: string | undefined;
1059
1063
  instructSupported?: boolean | undefined;
1064
+ customModelUnits?: CustomModelUnits | undefined;
1060
1065
  }
1061
1066
  export interface GetModelImportJobRequest {
1062
1067
  jobIdentifier: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.772.0",
4
+ "version": "3.774.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.772.0",
25
- "@aws-sdk/middleware-host-header": "3.734.0",
23
+ "@aws-sdk/core": "3.774.0",
24
+ "@aws-sdk/credential-provider-node": "3.774.0",
25
+ "@aws-sdk/middleware-host-header": "3.774.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
- "@aws-sdk/middleware-user-agent": "3.758.0",
28
+ "@aws-sdk/middleware-user-agent": "3.774.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.758.0",
33
+ "@aws-sdk/util-user-agent-node": "3.774.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
35
  "@smithy/core": "^3.1.5",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",