@aws-sdk/client-bedrock-runtime 3.616.0 → 3.620.1

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
@@ -75,6 +75,7 @@ __export(src_exports, {
75
75
  ResponseStream: () => ResponseStream,
76
76
  ResponseStreamFilterSensitiveLog: () => ResponseStreamFilterSensitiveLog,
77
77
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
78
+ ServiceUnavailableException: () => ServiceUnavailableException,
78
79
  StopReason: () => StopReason,
79
80
  SystemContentBlock: () => SystemContentBlock,
80
81
  ThrottlingException: () => ThrottlingException,
@@ -657,6 +658,23 @@ var _ModelTimeoutException = class _ModelTimeoutException extends BedrockRuntime
657
658
  };
658
659
  __name(_ModelTimeoutException, "ModelTimeoutException");
659
660
  var ModelTimeoutException = _ModelTimeoutException;
661
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends BedrockRuntimeServiceException {
662
+ /**
663
+ * @internal
664
+ */
665
+ constructor(opts) {
666
+ super({
667
+ name: "ServiceUnavailableException",
668
+ $fault: "server",
669
+ ...opts
670
+ });
671
+ this.name = "ServiceUnavailableException";
672
+ this.$fault = "server";
673
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
674
+ }
675
+ };
676
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
677
+ var ServiceUnavailableException = _ServiceUnavailableException;
660
678
  var GuardrailStreamProcessingMode = {
661
679
  ASYNC: "async",
662
680
  SYNC: "sync"
@@ -721,6 +739,8 @@ var ConverseStreamOutput;
721
739
  return visitor.validationException(value.validationException);
722
740
  if (value.throttlingException !== void 0)
723
741
  return visitor.throttlingException(value.throttlingException);
742
+ if (value.serviceUnavailableException !== void 0)
743
+ return visitor.serviceUnavailableException(value.serviceUnavailableException);
724
744
  return visitor._(value.$unknown[0], value.$unknown[1]);
725
745
  }, "visit");
726
746
  })(ConverseStreamOutput || (ConverseStreamOutput = {}));
@@ -743,6 +763,8 @@ var ResponseStream;
743
763
  return visitor.throttlingException(value.throttlingException);
744
764
  if (value.modelTimeoutException !== void 0)
745
765
  return visitor.modelTimeoutException(value.modelTimeoutException);
766
+ if (value.serviceUnavailableException !== void 0)
767
+ return visitor.serviceUnavailableException(value.serviceUnavailableException);
746
768
  return visitor._(value.$unknown[0], value.$unknown[1]);
747
769
  }, "visit");
748
770
  })(ResponseStream || (ResponseStream = {}));
@@ -767,6 +789,8 @@ var ConverseStreamOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
767
789
  return { validationException: obj.validationException };
768
790
  if (obj.throttlingException !== void 0)
769
791
  return { throttlingException: obj.throttlingException };
792
+ if (obj.serviceUnavailableException !== void 0)
793
+ return { serviceUnavailableException: obj.serviceUnavailableException };
770
794
  if (obj.$unknown !== void 0)
771
795
  return { [obj.$unknown[0]]: "UNKNOWN" };
772
796
  }, "ConverseStreamOutputFilterSensitiveLog");
@@ -803,6 +827,8 @@ var ResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
803
827
  return { throttlingException: obj.throttlingException };
804
828
  if (obj.modelTimeoutException !== void 0)
805
829
  return { modelTimeoutException: obj.modelTimeoutException };
830
+ if (obj.serviceUnavailableException !== void 0)
831
+ return { serviceUnavailableException: obj.serviceUnavailableException };
806
832
  if (obj.$unknown !== void 0)
807
833
  return { [obj.$unknown[0]]: "UNKNOWN" };
808
834
  }, "ResponseStreamFilterSensitiveLog");
@@ -1015,6 +1041,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1015
1041
  case "ModelTimeoutException":
1016
1042
  case "com.amazonaws.bedrockruntime#ModelTimeoutException":
1017
1043
  throw await de_ModelTimeoutExceptionRes(parsedOutput, context);
1044
+ case "ServiceUnavailableException":
1045
+ case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
1046
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1018
1047
  case "ModelStreamErrorException":
1019
1048
  case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
1020
1049
  throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
@@ -1136,6 +1165,19 @@ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOu
1136
1165
  });
1137
1166
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1138
1167
  }, "de_ServiceQuotaExceededExceptionRes");
1168
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1169
+ const contents = (0, import_smithy_client.map)({});
1170
+ const data = parsedOutput.body;
1171
+ const doc = (0, import_smithy_client.take)(data, {
1172
+ message: import_smithy_client.expectString
1173
+ });
1174
+ Object.assign(contents, doc);
1175
+ const exception = new ServiceUnavailableException({
1176
+ $metadata: deserializeMetadata(parsedOutput),
1177
+ ...contents
1178
+ });
1179
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1180
+ }, "de_ServiceUnavailableExceptionRes");
1139
1181
  var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1140
1182
  const contents = (0, import_smithy_client.map)({});
1141
1183
  const data = parsedOutput.body;
@@ -1217,6 +1259,14 @@ var de_ConverseStreamOutput = /* @__PURE__ */ __name((output, context) => {
1217
1259
  throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
1218
1260
  };
1219
1261
  }
1262
+ if (event["serviceUnavailableException"] != null) {
1263
+ return {
1264
+ serviceUnavailableException: await de_ServiceUnavailableException_event(
1265
+ event["serviceUnavailableException"],
1266
+ context
1267
+ )
1268
+ };
1269
+ }
1220
1270
  return { $unknown: output };
1221
1271
  });
1222
1272
  }, "de_ConverseStreamOutput");
@@ -1255,6 +1305,14 @@ var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
1255
1305
  modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context)
1256
1306
  };
1257
1307
  }
1308
+ if (event["serviceUnavailableException"] != null) {
1309
+ return {
1310
+ serviceUnavailableException: await de_ServiceUnavailableException_event(
1311
+ event["serviceUnavailableException"],
1312
+ context
1313
+ )
1314
+ };
1315
+ }
1258
1316
  return { $unknown: output };
1259
1317
  });
1260
1318
  }, "de_ResponseStream");
@@ -1321,6 +1379,13 @@ var de_PayloadPart_event = /* @__PURE__ */ __name(async (output, context) => {
1321
1379
  Object.assign(contents, de_PayloadPart(data, context));
1322
1380
  return contents;
1323
1381
  }, "de_PayloadPart_event");
1382
+ var de_ServiceUnavailableException_event = /* @__PURE__ */ __name(async (output, context) => {
1383
+ const parsedOutput = {
1384
+ ...output,
1385
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1386
+ };
1387
+ return de_ServiceUnavailableExceptionRes(parsedOutput, context);
1388
+ }, "de_ServiceUnavailableException_event");
1324
1389
  var de_ThrottlingException_event = /* @__PURE__ */ __name(async (output, context) => {
1325
1390
  const parsedOutput = {
1326
1391
  ...output,
@@ -1844,6 +1909,7 @@ var BedrockRuntime = _BedrockRuntime;
1844
1909
  ModelErrorException,
1845
1910
  ModelNotReadyException,
1846
1911
  ModelTimeoutException,
1912
+ ServiceUnavailableException,
1847
1913
  GuardrailStreamProcessingMode,
1848
1914
  ContentBlockDelta,
1849
1915
  ContentBlockStart,
@@ -349,6 +349,18 @@ export class ModelTimeoutException extends __BaseException {
349
349
  Object.setPrototypeOf(this, ModelTimeoutException.prototype);
350
350
  }
351
351
  }
352
+ export class ServiceUnavailableException extends __BaseException {
353
+ constructor(opts) {
354
+ super({
355
+ name: "ServiceUnavailableException",
356
+ $fault: "server",
357
+ ...opts,
358
+ });
359
+ this.name = "ServiceUnavailableException";
360
+ this.$fault = "server";
361
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
362
+ }
363
+ }
352
364
  export const GuardrailStreamProcessingMode = {
353
365
  ASYNC: "async",
354
366
  SYNC: "sync",
@@ -408,6 +420,8 @@ export var ConverseStreamOutput;
408
420
  return visitor.validationException(value.validationException);
409
421
  if (value.throttlingException !== undefined)
410
422
  return visitor.throttlingException(value.throttlingException);
423
+ if (value.serviceUnavailableException !== undefined)
424
+ return visitor.serviceUnavailableException(value.serviceUnavailableException);
411
425
  return visitor._(value.$unknown[0], value.$unknown[1]);
412
426
  };
413
427
  })(ConverseStreamOutput || (ConverseStreamOutput = {}));
@@ -430,6 +444,8 @@ export var ResponseStream;
430
444
  return visitor.throttlingException(value.throttlingException);
431
445
  if (value.modelTimeoutException !== undefined)
432
446
  return visitor.modelTimeoutException(value.modelTimeoutException);
447
+ if (value.serviceUnavailableException !== undefined)
448
+ return visitor.serviceUnavailableException(value.serviceUnavailableException);
433
449
  return visitor._(value.$unknown[0], value.$unknown[1]);
434
450
  };
435
451
  })(ResponseStream || (ResponseStream = {}));
@@ -454,6 +470,8 @@ export const ConverseStreamOutputFilterSensitiveLog = (obj) => {
454
470
  return { validationException: obj.validationException };
455
471
  if (obj.throttlingException !== undefined)
456
472
  return { throttlingException: obj.throttlingException };
473
+ if (obj.serviceUnavailableException !== undefined)
474
+ return { serviceUnavailableException: obj.serviceUnavailableException };
457
475
  if (obj.$unknown !== undefined)
458
476
  return { [obj.$unknown[0]]: "UNKNOWN" };
459
477
  };
@@ -490,6 +508,8 @@ export const ResponseStreamFilterSensitiveLog = (obj) => {
490
508
  return { throttlingException: obj.throttlingException };
491
509
  if (obj.modelTimeoutException !== undefined)
492
510
  return { modelTimeoutException: obj.modelTimeoutException };
511
+ if (obj.serviceUnavailableException !== undefined)
512
+ return { serviceUnavailableException: obj.serviceUnavailableException };
493
513
  if (obj.$unknown !== undefined)
494
514
  return { [obj.$unknown[0]]: "UNKNOWN" };
495
515
  };
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BedrockRuntimeServiceException as __BaseException } from "../models/BedrockRuntimeServiceException";
5
- import { AccessDeniedException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, } from "../models/models_0";
6
6
  export const se_ApplyGuardrailCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {
@@ -200,6 +200,9 @@ const de_CommandError = async (output, context) => {
200
200
  case "ModelTimeoutException":
201
201
  case "com.amazonaws.bedrockruntime#ModelTimeoutException":
202
202
  throw await de_ModelTimeoutExceptionRes(parsedOutput, context);
203
+ case "ServiceUnavailableException":
204
+ case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
205
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
203
206
  case "ModelStreamErrorException":
204
207
  case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
205
208
  throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
@@ -321,6 +324,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
321
324
  });
322
325
  return __decorateServiceException(exception, parsedOutput.body);
323
326
  };
327
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
328
+ const contents = map({});
329
+ const data = parsedOutput.body;
330
+ const doc = take(data, {
331
+ message: __expectString,
332
+ });
333
+ Object.assign(contents, doc);
334
+ const exception = new ServiceUnavailableException({
335
+ $metadata: deserializeMetadata(parsedOutput),
336
+ ...contents,
337
+ });
338
+ return __decorateServiceException(exception, parsedOutput.body);
339
+ };
324
340
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
325
341
  const contents = map({});
326
342
  const data = parsedOutput.body;
@@ -399,6 +415,11 @@ const de_ConverseStreamOutput = (output, context) => {
399
415
  throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
400
416
  };
401
417
  }
418
+ if (event["serviceUnavailableException"] != null) {
419
+ return {
420
+ serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
421
+ };
422
+ }
402
423
  return { $unknown: output };
403
424
  });
404
425
  };
@@ -434,6 +455,11 @@ const de_ResponseStream = (output, context) => {
434
455
  modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context),
435
456
  };
436
457
  }
458
+ if (event["serviceUnavailableException"] != null) {
459
+ return {
460
+ serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
461
+ };
462
+ }
437
463
  return { $unknown: output };
438
464
  });
439
465
  };
@@ -500,6 +526,13 @@ const de_PayloadPart_event = async (output, context) => {
500
526
  Object.assign(contents, de_PayloadPart(data, context));
501
527
  return contents;
502
528
  };
529
+ const de_ServiceUnavailableException_event = async (output, context) => {
530
+ const parsedOutput = {
531
+ ...output,
532
+ body: await parseBody(output.body, context),
533
+ };
534
+ return de_ServiceUnavailableExceptionRes(parsedOutput, context);
535
+ };
503
536
  const de_ThrottlingException_event = async (output, context) => {
504
537
  const parsedOutput = {
505
538
  ...output,
@@ -150,10 +150,10 @@ declare const ApplyGuardrailCommand_base: {
150
150
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
151
151
  *
152
152
  * @throws {@link ServiceQuotaExceededException} (client fault)
153
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
153
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
154
154
  *
155
155
  * @throws {@link ThrottlingException} (client fault)
156
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
156
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
157
157
  *
158
158
  * @throws {@link ValidationException} (client fault)
159
159
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -30,8 +30,9 @@ declare const ConverseCommand_base: {
30
30
  * <p>Sends messages to the specified Amazon Bedrock model. <code>Converse</code> provides
31
31
  * a consistent interface that works with all models that
32
32
  * support messages. This allows you to write code once and use it with different models.
33
- * Should a model have unique inference parameters, you can also pass those unique parameters
33
+ * If a model has unique inference parameters, you can also pass those unique parameters
34
34
  * to the model.</p>
35
+ * <p>Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.</p>
35
36
  * <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.
36
37
  * To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.
37
38
  * To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>
@@ -394,8 +395,11 @@ declare const ConverseCommand_base: {
394
395
  * @throws {@link ResourceNotFoundException} (client fault)
395
396
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
396
397
  *
398
+ * @throws {@link ServiceUnavailableException} (server fault)
399
+ * <p>The service isn't currently available. Try again later.</p>
400
+ *
397
401
  * @throws {@link ThrottlingException} (client fault)
398
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
402
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
399
403
  *
400
404
  * @throws {@link ValidationException} (client fault)
401
405
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -35,6 +35,10 @@ declare const ConverseStreamCommand_base: {
35
35
  * model. </p>
36
36
  * <p>To find out if a model supports streaming, call <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html">GetFoundationModel</a>
37
37
  * and check the <code>responseStreamingSupported</code> field in the response.</p>
38
+ * <note>
39
+ * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>ConverseStream</code>.</p>
40
+ * </note>
41
+ * <p>Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.</p>
38
42
  * <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.
39
43
  * To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.
40
44
  * To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>
@@ -354,6 +358,9 @@ declare const ConverseStreamCommand_base: {
354
358
  * // throttlingException: { // ThrottlingException
355
359
  * // message: "STRING_VALUE",
356
360
  * // },
361
+ * // serviceUnavailableException: { // ServiceUnavailableException
362
+ * // message: "STRING_VALUE",
363
+ * // },
357
364
  * // },
358
365
  * // };
359
366
  *
@@ -383,8 +390,11 @@ declare const ConverseStreamCommand_base: {
383
390
  * @throws {@link ResourceNotFoundException} (client fault)
384
391
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
385
392
  *
393
+ * @throws {@link ServiceUnavailableException} (server fault)
394
+ * <p>The service isn't currently available. Try again later.</p>
395
+ *
386
396
  * @throws {@link ThrottlingException} (client fault)
387
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
397
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
388
398
  *
389
399
  * @throws {@link ValidationException} (client fault)
390
400
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -94,10 +94,13 @@ declare const InvokeModelCommand_base: {
94
94
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
95
95
  *
96
96
  * @throws {@link ServiceQuotaExceededException} (client fault)
97
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
97
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
98
+ *
99
+ * @throws {@link ServiceUnavailableException} (server fault)
100
+ * <p>The service isn't currently available. Try again later.</p>
98
101
  *
99
102
  * @throws {@link ThrottlingException} (client fault)
100
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
103
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
101
104
  *
102
105
  * @throws {@link ValidationException} (client fault)
103
106
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -37,7 +37,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
37
37
  * <p>To see if a model supports streaming, call <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html">GetFoundationModel</a>
38
38
  * and check the <code>responseStreamingSupported</code> field in the response.</p>
39
39
  * <note>
40
- * <p>The CLI doesn't support <code>InvokeModelWithResponseStream</code>.</p>
40
+ * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p>
41
41
  * </note>
42
42
  * <p>For example code, see <i>Invoke model with streaming code
43
43
  * example</i> in the <i>Amazon Bedrock User Guide</i>.
@@ -82,6 +82,9 @@ declare const InvokeModelWithResponseStreamCommand_base: {
82
82
  * // modelTimeoutException: { // ModelTimeoutException
83
83
  * // message: "STRING_VALUE",
84
84
  * // },
85
+ * // serviceUnavailableException: { // ServiceUnavailableException
86
+ * // message: "STRING_VALUE",
87
+ * // },
85
88
  * // },
86
89
  * // contentType: "STRING_VALUE", // required
87
90
  * // };
@@ -116,10 +119,13 @@ declare const InvokeModelWithResponseStreamCommand_base: {
116
119
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
117
120
  *
118
121
  * @throws {@link ServiceQuotaExceededException} (client fault)
119
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
122
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
123
+ *
124
+ * @throws {@link ServiceUnavailableException} (server fault)
125
+ * <p>The service isn't currently available. Try again later.</p>
120
126
  *
121
127
  * @throws {@link ThrottlingException} (client fault)
122
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
128
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
123
129
  *
124
130
  * @throws {@link ValidationException} (client fault)
125
131
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -628,7 +628,7 @@ export declare class ResourceNotFoundException extends __BaseException {
628
628
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
629
629
  }
630
630
  /**
631
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
631
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
632
632
  * @public
633
633
  */
634
634
  export declare class ServiceQuotaExceededException extends __BaseException {
@@ -640,7 +640,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
640
640
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
641
641
  }
642
642
  /**
643
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
643
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
644
644
  * @public
645
645
  */
646
646
  export declare class ThrottlingException extends __BaseException {
@@ -1744,6 +1744,18 @@ export declare class ModelTimeoutException extends __BaseException {
1744
1744
  */
1745
1745
  constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
1746
1746
  }
1747
+ /**
1748
+ * <p>The service isn't currently available. Try again later.</p>
1749
+ * @public
1750
+ */
1751
+ export declare class ServiceUnavailableException extends __BaseException {
1752
+ readonly name: "ServiceUnavailableException";
1753
+ readonly $fault: "server";
1754
+ /**
1755
+ * @internal
1756
+ */
1757
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
1758
+ }
1747
1759
  /**
1748
1760
  * @public
1749
1761
  * @enum
@@ -2100,7 +2112,7 @@ export declare class ModelStreamErrorException extends __BaseException {
2100
2112
  * <p>The messages output stream</p>
2101
2113
  * @public
2102
2114
  */
2103
- export type ConverseStreamOutput = ConverseStreamOutput.ContentBlockDeltaMember | ConverseStreamOutput.ContentBlockStartMember | ConverseStreamOutput.ContentBlockStopMember | ConverseStreamOutput.InternalServerExceptionMember | ConverseStreamOutput.MessageStartMember | ConverseStreamOutput.MessageStopMember | ConverseStreamOutput.MetadataMember | ConverseStreamOutput.ModelStreamErrorExceptionMember | ConverseStreamOutput.ThrottlingExceptionMember | ConverseStreamOutput.ValidationExceptionMember | ConverseStreamOutput.$UnknownMember;
2115
+ export type ConverseStreamOutput = ConverseStreamOutput.ContentBlockDeltaMember | ConverseStreamOutput.ContentBlockStartMember | ConverseStreamOutput.ContentBlockStopMember | ConverseStreamOutput.InternalServerExceptionMember | ConverseStreamOutput.MessageStartMember | ConverseStreamOutput.MessageStopMember | ConverseStreamOutput.MetadataMember | ConverseStreamOutput.ModelStreamErrorExceptionMember | ConverseStreamOutput.ServiceUnavailableExceptionMember | ConverseStreamOutput.ThrottlingExceptionMember | ConverseStreamOutput.ValidationExceptionMember | ConverseStreamOutput.$UnknownMember;
2104
2116
  /**
2105
2117
  * @public
2106
2118
  */
@@ -2120,6 +2132,7 @@ export declare namespace ConverseStreamOutput {
2120
2132
  modelStreamErrorException?: never;
2121
2133
  validationException?: never;
2122
2134
  throttlingException?: never;
2135
+ serviceUnavailableException?: never;
2123
2136
  $unknown?: never;
2124
2137
  }
2125
2138
  /**
@@ -2137,6 +2150,7 @@ export declare namespace ConverseStreamOutput {
2137
2150
  modelStreamErrorException?: never;
2138
2151
  validationException?: never;
2139
2152
  throttlingException?: never;
2153
+ serviceUnavailableException?: never;
2140
2154
  $unknown?: never;
2141
2155
  }
2142
2156
  /**
@@ -2154,6 +2168,7 @@ export declare namespace ConverseStreamOutput {
2154
2168
  modelStreamErrorException?: never;
2155
2169
  validationException?: never;
2156
2170
  throttlingException?: never;
2171
+ serviceUnavailableException?: never;
2157
2172
  $unknown?: never;
2158
2173
  }
2159
2174
  /**
@@ -2171,6 +2186,7 @@ export declare namespace ConverseStreamOutput {
2171
2186
  modelStreamErrorException?: never;
2172
2187
  validationException?: never;
2173
2188
  throttlingException?: never;
2189
+ serviceUnavailableException?: never;
2174
2190
  $unknown?: never;
2175
2191
  }
2176
2192
  /**
@@ -2188,6 +2204,7 @@ export declare namespace ConverseStreamOutput {
2188
2204
  modelStreamErrorException?: never;
2189
2205
  validationException?: never;
2190
2206
  throttlingException?: never;
2207
+ serviceUnavailableException?: never;
2191
2208
  $unknown?: never;
2192
2209
  }
2193
2210
  /**
@@ -2205,6 +2222,7 @@ export declare namespace ConverseStreamOutput {
2205
2222
  modelStreamErrorException?: never;
2206
2223
  validationException?: never;
2207
2224
  throttlingException?: never;
2225
+ serviceUnavailableException?: never;
2208
2226
  $unknown?: never;
2209
2227
  }
2210
2228
  /**
@@ -2222,6 +2240,7 @@ export declare namespace ConverseStreamOutput {
2222
2240
  modelStreamErrorException?: never;
2223
2241
  validationException?: never;
2224
2242
  throttlingException?: never;
2243
+ serviceUnavailableException?: never;
2225
2244
  $unknown?: never;
2226
2245
  }
2227
2246
  /**
@@ -2239,6 +2258,7 @@ export declare namespace ConverseStreamOutput {
2239
2258
  modelStreamErrorException: ModelStreamErrorException;
2240
2259
  validationException?: never;
2241
2260
  throttlingException?: never;
2261
+ serviceUnavailableException?: never;
2242
2262
  $unknown?: never;
2243
2263
  }
2244
2264
  /**
@@ -2256,6 +2276,7 @@ export declare namespace ConverseStreamOutput {
2256
2276
  modelStreamErrorException?: never;
2257
2277
  validationException: ValidationException;
2258
2278
  throttlingException?: never;
2279
+ serviceUnavailableException?: never;
2259
2280
  $unknown?: never;
2260
2281
  }
2261
2282
  /**
@@ -2273,6 +2294,25 @@ export declare namespace ConverseStreamOutput {
2273
2294
  modelStreamErrorException?: never;
2274
2295
  validationException?: never;
2275
2296
  throttlingException: ThrottlingException;
2297
+ serviceUnavailableException?: never;
2298
+ $unknown?: never;
2299
+ }
2300
+ /**
2301
+ * <p>The service isn't currently available. Try again later.</p>
2302
+ * @public
2303
+ */
2304
+ interface ServiceUnavailableExceptionMember {
2305
+ messageStart?: never;
2306
+ contentBlockStart?: never;
2307
+ contentBlockDelta?: never;
2308
+ contentBlockStop?: never;
2309
+ messageStop?: never;
2310
+ metadata?: never;
2311
+ internalServerException?: never;
2312
+ modelStreamErrorException?: never;
2313
+ validationException?: never;
2314
+ throttlingException?: never;
2315
+ serviceUnavailableException: ServiceUnavailableException;
2276
2316
  $unknown?: never;
2277
2317
  }
2278
2318
  /**
@@ -2289,6 +2329,7 @@ export declare namespace ConverseStreamOutput {
2289
2329
  modelStreamErrorException?: never;
2290
2330
  validationException?: never;
2291
2331
  throttlingException?: never;
2332
+ serviceUnavailableException?: never;
2292
2333
  $unknown: [string, any];
2293
2334
  }
2294
2335
  interface Visitor<T> {
@@ -2302,6 +2343,7 @@ export declare namespace ConverseStreamOutput {
2302
2343
  modelStreamErrorException: (value: ModelStreamErrorException) => T;
2303
2344
  validationException: (value: ValidationException) => T;
2304
2345
  throttlingException: (value: ThrottlingException) => T;
2346
+ serviceUnavailableException: (value: ServiceUnavailableException) => T;
2305
2347
  _: (name: string, value: any) => T;
2306
2348
  }
2307
2349
  const visit: <T>(value: ConverseStreamOutput, visitor: Visitor<T>) => T;
@@ -2491,7 +2533,7 @@ export interface PayloadPart {
2491
2533
  * <p>Definition of content in the response stream.</p>
2492
2534
  * @public
2493
2535
  */
2494
- export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelStreamErrorExceptionMember | ResponseStream.ModelTimeoutExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
2536
+ export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelStreamErrorExceptionMember | ResponseStream.ModelTimeoutExceptionMember | ResponseStream.ServiceUnavailableExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
2495
2537
  /**
2496
2538
  * @public
2497
2539
  */
@@ -2507,6 +2549,7 @@ export declare namespace ResponseStream {
2507
2549
  validationException?: never;
2508
2550
  throttlingException?: never;
2509
2551
  modelTimeoutException?: never;
2552
+ serviceUnavailableException?: never;
2510
2553
  $unknown?: never;
2511
2554
  }
2512
2555
  /**
@@ -2520,6 +2563,7 @@ export declare namespace ResponseStream {
2520
2563
  validationException?: never;
2521
2564
  throttlingException?: never;
2522
2565
  modelTimeoutException?: never;
2566
+ serviceUnavailableException?: never;
2523
2567
  $unknown?: never;
2524
2568
  }
2525
2569
  /**
@@ -2533,6 +2577,7 @@ export declare namespace ResponseStream {
2533
2577
  validationException?: never;
2534
2578
  throttlingException?: never;
2535
2579
  modelTimeoutException?: never;
2580
+ serviceUnavailableException?: never;
2536
2581
  $unknown?: never;
2537
2582
  }
2538
2583
  /**
@@ -2546,10 +2591,11 @@ export declare namespace ResponseStream {
2546
2591
  validationException: ValidationException;
2547
2592
  throttlingException?: never;
2548
2593
  modelTimeoutException?: never;
2594
+ serviceUnavailableException?: never;
2549
2595
  $unknown?: never;
2550
2596
  }
2551
2597
  /**
2552
- * <p>The number or frequency of requests exceeds the limit. Resubmit your request later.</p>
2598
+ * <p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>
2553
2599
  * @public
2554
2600
  */
2555
2601
  interface ThrottlingExceptionMember {
@@ -2559,6 +2605,7 @@ export declare namespace ResponseStream {
2559
2605
  validationException?: never;
2560
2606
  throttlingException: ThrottlingException;
2561
2607
  modelTimeoutException?: never;
2608
+ serviceUnavailableException?: never;
2562
2609
  $unknown?: never;
2563
2610
  }
2564
2611
  /**
@@ -2572,6 +2619,21 @@ export declare namespace ResponseStream {
2572
2619
  validationException?: never;
2573
2620
  throttlingException?: never;
2574
2621
  modelTimeoutException: ModelTimeoutException;
2622
+ serviceUnavailableException?: never;
2623
+ $unknown?: never;
2624
+ }
2625
+ /**
2626
+ * <p>The service isn't currently available. Try again later.</p>
2627
+ * @public
2628
+ */
2629
+ interface ServiceUnavailableExceptionMember {
2630
+ chunk?: never;
2631
+ internalServerException?: never;
2632
+ modelStreamErrorException?: never;
2633
+ validationException?: never;
2634
+ throttlingException?: never;
2635
+ modelTimeoutException?: never;
2636
+ serviceUnavailableException: ServiceUnavailableException;
2575
2637
  $unknown?: never;
2576
2638
  }
2577
2639
  /**
@@ -2584,6 +2646,7 @@ export declare namespace ResponseStream {
2584
2646
  validationException?: never;
2585
2647
  throttlingException?: never;
2586
2648
  modelTimeoutException?: never;
2649
+ serviceUnavailableException?: never;
2587
2650
  $unknown: [string, any];
2588
2651
  }
2589
2652
  interface Visitor<T> {
@@ -2593,6 +2656,7 @@ export declare namespace ResponseStream {
2593
2656
  validationException: (value: ValidationException) => T;
2594
2657
  throttlingException: (value: ThrottlingException) => T;
2595
2658
  modelTimeoutException: (value: ModelTimeoutException) => T;
2659
+ serviceUnavailableException: (value: ServiceUnavailableException) => T;
2596
2660
  _: (name: string, value: any) => T;
2597
2661
  }
2598
2662
  const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
@@ -732,6 +732,13 @@ export declare class ModelTimeoutException extends __BaseException {
732
732
  opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
733
733
  );
734
734
  }
735
+ export declare class ServiceUnavailableException extends __BaseException {
736
+ readonly name: "ServiceUnavailableException";
737
+ readonly $fault: "server";
738
+ constructor(
739
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
740
+ );
741
+ }
735
742
  export declare const GuardrailStreamProcessingMode: {
736
743
  readonly ASYNC: "async";
737
744
  readonly SYNC: "sync";
@@ -853,6 +860,7 @@ export type ConverseStreamOutput =
853
860
  | ConverseStreamOutput.MessageStopMember
854
861
  | ConverseStreamOutput.MetadataMember
855
862
  | ConverseStreamOutput.ModelStreamErrorExceptionMember
863
+ | ConverseStreamOutput.ServiceUnavailableExceptionMember
856
864
  | ConverseStreamOutput.ThrottlingExceptionMember
857
865
  | ConverseStreamOutput.ValidationExceptionMember
858
866
  | ConverseStreamOutput.$UnknownMember;
@@ -868,6 +876,7 @@ export declare namespace ConverseStreamOutput {
868
876
  modelStreamErrorException?: never;
869
877
  validationException?: never;
870
878
  throttlingException?: never;
879
+ serviceUnavailableException?: never;
871
880
  $unknown?: never;
872
881
  }
873
882
  interface ContentBlockStartMember {
@@ -881,6 +890,7 @@ export declare namespace ConverseStreamOutput {
881
890
  modelStreamErrorException?: never;
882
891
  validationException?: never;
883
892
  throttlingException?: never;
893
+ serviceUnavailableException?: never;
884
894
  $unknown?: never;
885
895
  }
886
896
  interface ContentBlockDeltaMember {
@@ -894,6 +904,7 @@ export declare namespace ConverseStreamOutput {
894
904
  modelStreamErrorException?: never;
895
905
  validationException?: never;
896
906
  throttlingException?: never;
907
+ serviceUnavailableException?: never;
897
908
  $unknown?: never;
898
909
  }
899
910
  interface ContentBlockStopMember {
@@ -907,6 +918,7 @@ export declare namespace ConverseStreamOutput {
907
918
  modelStreamErrorException?: never;
908
919
  validationException?: never;
909
920
  throttlingException?: never;
921
+ serviceUnavailableException?: never;
910
922
  $unknown?: never;
911
923
  }
912
924
  interface MessageStopMember {
@@ -920,6 +932,7 @@ export declare namespace ConverseStreamOutput {
920
932
  modelStreamErrorException?: never;
921
933
  validationException?: never;
922
934
  throttlingException?: never;
935
+ serviceUnavailableException?: never;
923
936
  $unknown?: never;
924
937
  }
925
938
  interface MetadataMember {
@@ -933,6 +946,7 @@ export declare namespace ConverseStreamOutput {
933
946
  modelStreamErrorException?: never;
934
947
  validationException?: never;
935
948
  throttlingException?: never;
949
+ serviceUnavailableException?: never;
936
950
  $unknown?: never;
937
951
  }
938
952
  interface InternalServerExceptionMember {
@@ -946,6 +960,7 @@ export declare namespace ConverseStreamOutput {
946
960
  modelStreamErrorException?: never;
947
961
  validationException?: never;
948
962
  throttlingException?: never;
963
+ serviceUnavailableException?: never;
949
964
  $unknown?: never;
950
965
  }
951
966
  interface ModelStreamErrorExceptionMember {
@@ -959,6 +974,7 @@ export declare namespace ConverseStreamOutput {
959
974
  modelStreamErrorException: ModelStreamErrorException;
960
975
  validationException?: never;
961
976
  throttlingException?: never;
977
+ serviceUnavailableException?: never;
962
978
  $unknown?: never;
963
979
  }
964
980
  interface ValidationExceptionMember {
@@ -972,6 +988,7 @@ export declare namespace ConverseStreamOutput {
972
988
  modelStreamErrorException?: never;
973
989
  validationException: ValidationException;
974
990
  throttlingException?: never;
991
+ serviceUnavailableException?: never;
975
992
  $unknown?: never;
976
993
  }
977
994
  interface ThrottlingExceptionMember {
@@ -985,6 +1002,21 @@ export declare namespace ConverseStreamOutput {
985
1002
  modelStreamErrorException?: never;
986
1003
  validationException?: never;
987
1004
  throttlingException: ThrottlingException;
1005
+ serviceUnavailableException?: never;
1006
+ $unknown?: never;
1007
+ }
1008
+ interface ServiceUnavailableExceptionMember {
1009
+ messageStart?: never;
1010
+ contentBlockStart?: never;
1011
+ contentBlockDelta?: never;
1012
+ contentBlockStop?: never;
1013
+ messageStop?: never;
1014
+ metadata?: never;
1015
+ internalServerException?: never;
1016
+ modelStreamErrorException?: never;
1017
+ validationException?: never;
1018
+ throttlingException?: never;
1019
+ serviceUnavailableException: ServiceUnavailableException;
988
1020
  $unknown?: never;
989
1021
  }
990
1022
  interface $UnknownMember {
@@ -998,6 +1030,7 @@ export declare namespace ConverseStreamOutput {
998
1030
  modelStreamErrorException?: never;
999
1031
  validationException?: never;
1000
1032
  throttlingException?: never;
1033
+ serviceUnavailableException?: never;
1001
1034
  $unknown: [string, any];
1002
1035
  }
1003
1036
  interface Visitor<T> {
@@ -1011,6 +1044,7 @@ export declare namespace ConverseStreamOutput {
1011
1044
  modelStreamErrorException: (value: ModelStreamErrorException) => T;
1012
1045
  validationException: (value: ValidationException) => T;
1013
1046
  throttlingException: (value: ThrottlingException) => T;
1047
+ serviceUnavailableException: (value: ServiceUnavailableException) => T;
1014
1048
  _: (name: string, value: any) => T;
1015
1049
  }
1016
1050
  const visit: <T>(value: ConverseStreamOutput, visitor: Visitor<T>) => T;
@@ -1053,6 +1087,7 @@ export type ResponseStream =
1053
1087
  | ResponseStream.InternalServerExceptionMember
1054
1088
  | ResponseStream.ModelStreamErrorExceptionMember
1055
1089
  | ResponseStream.ModelTimeoutExceptionMember
1090
+ | ResponseStream.ServiceUnavailableExceptionMember
1056
1091
  | ResponseStream.ThrottlingExceptionMember
1057
1092
  | ResponseStream.ValidationExceptionMember
1058
1093
  | ResponseStream.$UnknownMember;
@@ -1064,6 +1099,7 @@ export declare namespace ResponseStream {
1064
1099
  validationException?: never;
1065
1100
  throttlingException?: never;
1066
1101
  modelTimeoutException?: never;
1102
+ serviceUnavailableException?: never;
1067
1103
  $unknown?: never;
1068
1104
  }
1069
1105
  interface InternalServerExceptionMember {
@@ -1073,6 +1109,7 @@ export declare namespace ResponseStream {
1073
1109
  validationException?: never;
1074
1110
  throttlingException?: never;
1075
1111
  modelTimeoutException?: never;
1112
+ serviceUnavailableException?: never;
1076
1113
  $unknown?: never;
1077
1114
  }
1078
1115
  interface ModelStreamErrorExceptionMember {
@@ -1082,6 +1119,7 @@ export declare namespace ResponseStream {
1082
1119
  validationException?: never;
1083
1120
  throttlingException?: never;
1084
1121
  modelTimeoutException?: never;
1122
+ serviceUnavailableException?: never;
1085
1123
  $unknown?: never;
1086
1124
  }
1087
1125
  interface ValidationExceptionMember {
@@ -1091,6 +1129,7 @@ export declare namespace ResponseStream {
1091
1129
  validationException: ValidationException;
1092
1130
  throttlingException?: never;
1093
1131
  modelTimeoutException?: never;
1132
+ serviceUnavailableException?: never;
1094
1133
  $unknown?: never;
1095
1134
  }
1096
1135
  interface ThrottlingExceptionMember {
@@ -1100,6 +1139,7 @@ export declare namespace ResponseStream {
1100
1139
  validationException?: never;
1101
1140
  throttlingException: ThrottlingException;
1102
1141
  modelTimeoutException?: never;
1142
+ serviceUnavailableException?: never;
1103
1143
  $unknown?: never;
1104
1144
  }
1105
1145
  interface ModelTimeoutExceptionMember {
@@ -1109,6 +1149,17 @@ export declare namespace ResponseStream {
1109
1149
  validationException?: never;
1110
1150
  throttlingException?: never;
1111
1151
  modelTimeoutException: ModelTimeoutException;
1152
+ serviceUnavailableException?: never;
1153
+ $unknown?: never;
1154
+ }
1155
+ interface ServiceUnavailableExceptionMember {
1156
+ chunk?: never;
1157
+ internalServerException?: never;
1158
+ modelStreamErrorException?: never;
1159
+ validationException?: never;
1160
+ throttlingException?: never;
1161
+ modelTimeoutException?: never;
1162
+ serviceUnavailableException: ServiceUnavailableException;
1112
1163
  $unknown?: never;
1113
1164
  }
1114
1165
  interface $UnknownMember {
@@ -1118,6 +1169,7 @@ export declare namespace ResponseStream {
1118
1169
  validationException?: never;
1119
1170
  throttlingException?: never;
1120
1171
  modelTimeoutException?: never;
1172
+ serviceUnavailableException?: never;
1121
1173
  $unknown: [string, any];
1122
1174
  }
1123
1175
  interface Visitor<T> {
@@ -1127,6 +1179,7 @@ export declare namespace ResponseStream {
1127
1179
  validationException: (value: ValidationException) => T;
1128
1180
  throttlingException: (value: ThrottlingException) => T;
1129
1181
  modelTimeoutException: (value: ModelTimeoutException) => T;
1182
+ serviceUnavailableException: (value: ServiceUnavailableException) => T;
1130
1183
  _: (name: string, value: any) => T;
1131
1184
  }
1132
1185
  const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.616.0",
4
+ "version": "3.620.1",
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-runtime",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.616.0",
24
- "@aws-sdk/client-sts": "3.616.0",
25
- "@aws-sdk/core": "3.616.0",
26
- "@aws-sdk/credential-provider-node": "3.616.0",
27
- "@aws-sdk/middleware-host-header": "3.616.0",
23
+ "@aws-sdk/client-sso-oidc": "3.620.1",
24
+ "@aws-sdk/client-sts": "3.620.1",
25
+ "@aws-sdk/core": "3.620.1",
26
+ "@aws-sdk/credential-provider-node": "3.620.1",
27
+ "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.616.0",
30
- "@aws-sdk/middleware-user-agent": "3.616.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
+ "@aws-sdk/middleware-user-agent": "3.620.0",
31
31
  "@aws-sdk/region-config-resolver": "3.614.0",
32
32
  "@aws-sdk/types": "3.609.0",
33
33
  "@aws-sdk/util-endpoints": "3.614.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.2.7",
38
- "@smithy/eventstream-serde-browser": "^3.0.4",
37
+ "@smithy/core": "^2.3.0",
38
+ "@smithy/eventstream-serde-browser": "^3.0.5",
39
39
  "@smithy/eventstream-serde-config-resolver": "^3.0.3",
40
40
  "@smithy/eventstream-serde-node": "^3.0.4",
41
- "@smithy/fetch-http-handler": "^3.2.2",
41
+ "@smithy/fetch-http-handler": "^3.2.3",
42
42
  "@smithy/hash-node": "^3.0.3",
43
43
  "@smithy/invalid-dependency": "^3.0.3",
44
- "@smithy/middleware-content-length": "^3.0.4",
45
- "@smithy/middleware-endpoint": "^3.0.5",
46
- "@smithy/middleware-retry": "^3.0.10",
44
+ "@smithy/middleware-content-length": "^3.0.5",
45
+ "@smithy/middleware-endpoint": "^3.1.0",
46
+ "@smithy/middleware-retry": "^3.0.12",
47
47
  "@smithy/middleware-serde": "^3.0.3",
48
48
  "@smithy/middleware-stack": "^3.0.3",
49
49
  "@smithy/node-config-provider": "^3.1.4",
50
- "@smithy/node-http-handler": "^3.1.3",
51
- "@smithy/protocol-http": "^4.0.4",
52
- "@smithy/smithy-client": "^3.1.8",
50
+ "@smithy/node-http-handler": "^3.1.4",
51
+ "@smithy/protocol-http": "^4.1.0",
52
+ "@smithy/smithy-client": "^3.1.10",
53
53
  "@smithy/types": "^3.3.0",
54
54
  "@smithy/url-parser": "^3.0.3",
55
55
  "@smithy/util-base64": "^3.0.0",
56
56
  "@smithy/util-body-length-browser": "^3.0.0",
57
57
  "@smithy/util-body-length-node": "^3.0.0",
58
- "@smithy/util-defaults-mode-browser": "^3.0.10",
59
- "@smithy/util-defaults-mode-node": "^3.0.10",
58
+ "@smithy/util-defaults-mode-browser": "^3.0.12",
59
+ "@smithy/util-defaults-mode-node": "^3.0.12",
60
60
  "@smithy/util-endpoints": "^2.0.5",
61
61
  "@smithy/util-middleware": "^3.0.3",
62
62
  "@smithy/util-retry": "^3.0.3",
63
- "@smithy/util-stream": "^3.1.0",
63
+ "@smithy/util-stream": "^3.1.2",
64
64
  "@smithy/util-utf8": "^3.0.0",
65
65
  "tslib": "^2.6.2"
66
66
  },