@aws-sdk/client-ebs 3.716.0 → 3.723.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
@@ -156,7 +156,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
156
156
  }, "resolveRuntimeExtensions");
157
157
 
158
158
  // src/EBSClient.ts
159
- var _EBSClient = class _EBSClient extends import_smithy_client.Client {
159
+ var EBSClient = class extends import_smithy_client.Client {
160
+ static {
161
+ __name(this, "EBSClient");
162
+ }
163
+ /**
164
+ * The resolved configuration of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
165
+ */
166
+ config;
160
167
  constructor(...[configuration]) {
161
168
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
162
169
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -166,7 +173,7 @@ var _EBSClient = class _EBSClient extends import_smithy_client.Client {
166
173
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
167
174
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
168
175
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
169
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
176
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
170
177
  super(_config_8);
171
178
  this.config = _config_8;
172
179
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -194,8 +201,6 @@ var _EBSClient = class _EBSClient extends import_smithy_client.Client {
194
201
  super.destroy();
195
202
  }
196
203
  };
197
- __name(_EBSClient, "EBSClient");
198
- var EBSClient = _EBSClient;
199
204
 
200
205
  // src/EBS.ts
201
206
 
@@ -213,7 +218,10 @@ var import_uuid = require("uuid");
213
218
 
214
219
  // src/models/EBSServiceException.ts
215
220
 
216
- var _EBSServiceException = class _EBSServiceException extends import_smithy_client.ServiceException {
221
+ var EBSServiceException = class _EBSServiceException extends import_smithy_client.ServiceException {
222
+ static {
223
+ __name(this, "EBSServiceException");
224
+ }
217
225
  /**
218
226
  * @internal
219
227
  */
@@ -222,8 +230,6 @@ var _EBSServiceException = class _EBSServiceException extends import_smithy_clie
222
230
  Object.setPrototypeOf(this, _EBSServiceException.prototype);
223
231
  }
224
232
  };
225
- __name(_EBSServiceException, "EBSServiceException");
226
- var EBSServiceException = _EBSServiceException;
227
233
 
228
234
  // src/models/models_0.ts
229
235
 
@@ -231,7 +237,18 @@ var AccessDeniedExceptionReason = {
231
237
  DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
232
238
  UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT"
233
239
  };
234
- var _AccessDeniedException = class _AccessDeniedException extends EBSServiceException {
240
+ var AccessDeniedException = class _AccessDeniedException extends EBSServiceException {
241
+ static {
242
+ __name(this, "AccessDeniedException");
243
+ }
244
+ name = "AccessDeniedException";
245
+ $fault = "client";
246
+ Message;
247
+ /**
248
+ * <p>The reason for the exception.</p>
249
+ * @public
250
+ */
251
+ Reason;
235
252
  /**
236
253
  * @internal
237
254
  */
@@ -241,15 +258,11 @@ var _AccessDeniedException = class _AccessDeniedException extends EBSServiceExce
241
258
  $fault: "client",
242
259
  ...opts
243
260
  });
244
- this.name = "AccessDeniedException";
245
- this.$fault = "client";
246
261
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
247
262
  this.Message = opts.Message;
248
263
  this.Reason = opts.Reason;
249
264
  }
250
265
  };
251
- __name(_AccessDeniedException, "AccessDeniedException");
252
- var AccessDeniedException = _AccessDeniedException;
253
266
  var ChecksumAggregationMethod = {
254
267
  CHECKSUM_AGGREGATION_LINEAR: "LINEAR"
255
268
  };
@@ -261,7 +274,13 @@ var Status = {
261
274
  ERROR: "error",
262
275
  PENDING: "pending"
263
276
  };
264
- var _InternalServerException = class _InternalServerException extends EBSServiceException {
277
+ var InternalServerException = class _InternalServerException extends EBSServiceException {
278
+ static {
279
+ __name(this, "InternalServerException");
280
+ }
281
+ name = "InternalServerException";
282
+ $fault = "server";
283
+ Message;
265
284
  /**
266
285
  * @internal
267
286
  */
@@ -271,20 +290,27 @@ var _InternalServerException = class _InternalServerException extends EBSService
271
290
  $fault: "server",
272
291
  ...opts
273
292
  });
274
- this.name = "InternalServerException";
275
- this.$fault = "server";
276
293
  Object.setPrototypeOf(this, _InternalServerException.prototype);
277
294
  this.Message = opts.Message;
278
295
  }
279
296
  };
280
- __name(_InternalServerException, "InternalServerException");
281
- var InternalServerException = _InternalServerException;
282
297
  var RequestThrottledExceptionReason = {
283
298
  ACCOUNT_THROTTLED: "ACCOUNT_THROTTLED",
284
299
  DEPENDENCY_REQUEST_THROTTLED: "DEPENDENCY_REQUEST_THROTTLED",
285
300
  RESOURCE_LEVEL_THROTTLE: "RESOURCE_LEVEL_THROTTLE"
286
301
  };
287
- var _RequestThrottledException = class _RequestThrottledException extends EBSServiceException {
302
+ var RequestThrottledException = class _RequestThrottledException extends EBSServiceException {
303
+ static {
304
+ __name(this, "RequestThrottledException");
305
+ }
306
+ name = "RequestThrottledException";
307
+ $fault = "client";
308
+ Message;
309
+ /**
310
+ * <p>The reason for the exception.</p>
311
+ * @public
312
+ */
313
+ Reason;
288
314
  /**
289
315
  * @internal
290
316
  */
@@ -294,22 +320,29 @@ var _RequestThrottledException = class _RequestThrottledException extends EBSSer
294
320
  $fault: "client",
295
321
  ...opts
296
322
  });
297
- this.name = "RequestThrottledException";
298
- this.$fault = "client";
299
323
  Object.setPrototypeOf(this, _RequestThrottledException.prototype);
300
324
  this.Message = opts.Message;
301
325
  this.Reason = opts.Reason;
302
326
  }
303
327
  };
304
- __name(_RequestThrottledException, "RequestThrottledException");
305
- var RequestThrottledException = _RequestThrottledException;
306
328
  var ResourceNotFoundExceptionReason = {
307
329
  DEPENDENCY_RESOURCE_NOT_FOUND: "DEPENDENCY_RESOURCE_NOT_FOUND",
308
330
  GRANT_NOT_FOUND: "GRANT_NOT_FOUND",
309
331
  IMAGE_NOT_FOUND: "IMAGE_NOT_FOUND",
310
332
  SNAPSHOT_NOT_FOUND: "SNAPSHOT_NOT_FOUND"
311
333
  };
312
- var _ResourceNotFoundException = class _ResourceNotFoundException extends EBSServiceException {
334
+ var ResourceNotFoundException = class _ResourceNotFoundException extends EBSServiceException {
335
+ static {
336
+ __name(this, "ResourceNotFoundException");
337
+ }
338
+ name = "ResourceNotFoundException";
339
+ $fault = "client";
340
+ Message;
341
+ /**
342
+ * <p>The reason for the exception.</p>
343
+ * @public
344
+ */
345
+ Reason;
313
346
  /**
314
347
  * @internal
315
348
  */
@@ -319,19 +352,26 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends EBSSer
319
352
  $fault: "client",
320
353
  ...opts
321
354
  });
322
- this.name = "ResourceNotFoundException";
323
- this.$fault = "client";
324
355
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
325
356
  this.Message = opts.Message;
326
357
  this.Reason = opts.Reason;
327
358
  }
328
359
  };
329
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
330
- var ResourceNotFoundException = _ResourceNotFoundException;
331
360
  var ServiceQuotaExceededExceptionReason = {
332
361
  DEPENDENCY_SERVICE_QUOTA_EXCEEDED: "DEPENDENCY_SERVICE_QUOTA_EXCEEDED"
333
362
  };
334
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends EBSServiceException {
363
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends EBSServiceException {
364
+ static {
365
+ __name(this, "ServiceQuotaExceededException");
366
+ }
367
+ name = "ServiceQuotaExceededException";
368
+ $fault = "client";
369
+ Message;
370
+ /**
371
+ * <p>The reason for the exception.</p>
372
+ * @public
373
+ */
374
+ Reason;
335
375
  /**
336
376
  * @internal
337
377
  */
@@ -341,15 +381,11 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
341
381
  $fault: "client",
342
382
  ...opts
343
383
  });
344
- this.name = "ServiceQuotaExceededException";
345
- this.$fault = "client";
346
384
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
347
385
  this.Message = opts.Message;
348
386
  this.Reason = opts.Reason;
349
387
  }
350
388
  };
351
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
352
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
353
389
  var ValidationExceptionReason = {
354
390
  CONFLICTING_BLOCK_UPDATE: "CONFLICTING_BLOCK_UPDATE",
355
391
  INVALID_BLOCK: "INVALID_BLOCK",
@@ -367,7 +403,18 @@ var ValidationExceptionReason = {
367
403
  UNRELATED_SNAPSHOTS: "UNRELATED_SNAPSHOTS",
368
404
  WRITE_REQUEST_TIMEOUT: "WRITE_REQUEST_TIMEOUT"
369
405
  };
370
- var _ValidationException = class _ValidationException extends EBSServiceException {
406
+ var ValidationException = class _ValidationException extends EBSServiceException {
407
+ static {
408
+ __name(this, "ValidationException");
409
+ }
410
+ name = "ValidationException";
411
+ $fault = "client";
412
+ Message;
413
+ /**
414
+ * <p>The reason for the validation exception.</p>
415
+ * @public
416
+ */
417
+ Reason;
371
418
  /**
372
419
  * @internal
373
420
  */
@@ -377,16 +424,18 @@ var _ValidationException = class _ValidationException extends EBSServiceExceptio
377
424
  $fault: "client",
378
425
  ...opts
379
426
  });
380
- this.name = "ValidationException";
381
- this.$fault = "client";
382
427
  Object.setPrototypeOf(this, _ValidationException.prototype);
383
428
  this.Message = opts.Message;
384
429
  this.Reason = opts.Reason;
385
430
  }
386
431
  };
387
- __name(_ValidationException, "ValidationException");
388
- var ValidationException = _ValidationException;
389
- var _ConcurrentLimitExceededException = class _ConcurrentLimitExceededException extends EBSServiceException {
432
+ var ConcurrentLimitExceededException = class _ConcurrentLimitExceededException extends EBSServiceException {
433
+ static {
434
+ __name(this, "ConcurrentLimitExceededException");
435
+ }
436
+ name = "ConcurrentLimitExceededException";
437
+ $fault = "client";
438
+ Message;
390
439
  /**
391
440
  * @internal
392
441
  */
@@ -396,15 +445,17 @@ var _ConcurrentLimitExceededException = class _ConcurrentLimitExceededException
396
445
  $fault: "client",
397
446
  ...opts
398
447
  });
399
- this.name = "ConcurrentLimitExceededException";
400
- this.$fault = "client";
401
448
  Object.setPrototypeOf(this, _ConcurrentLimitExceededException.prototype);
402
449
  this.Message = opts.Message;
403
450
  }
404
451
  };
405
- __name(_ConcurrentLimitExceededException, "ConcurrentLimitExceededException");
406
- var ConcurrentLimitExceededException = _ConcurrentLimitExceededException;
407
- var _ConflictException = class _ConflictException extends EBSServiceException {
452
+ var ConflictException = class _ConflictException extends EBSServiceException {
453
+ static {
454
+ __name(this, "ConflictException");
455
+ }
456
+ name = "ConflictException";
457
+ $fault = "client";
458
+ Message;
408
459
  /**
409
460
  * @internal
410
461
  */
@@ -414,14 +465,10 @@ var _ConflictException = class _ConflictException extends EBSServiceException {
414
465
  $fault: "client",
415
466
  ...opts
416
467
  });
417
- this.name = "ConflictException";
418
- this.$fault = "client";
419
468
  Object.setPrototypeOf(this, _ConflictException.prototype);
420
469
  this.Message = opts.Message;
421
470
  }
422
471
  };
423
- __name(_ConflictException, "ConflictException");
424
- var ConflictException = _ConflictException;
425
472
  var SSEType = {
426
473
  NONE: "none",
427
474
  SSE_EBS: "sse-ebs",
@@ -835,85 +882,91 @@ var _xadl = "x-amz-data-length";
835
882
  var _xap = "x-amz-progress";
836
883
 
837
884
  // src/commands/CompleteSnapshotCommand.ts
838
- var _CompleteSnapshotCommand = class _CompleteSnapshotCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
885
+ var CompleteSnapshotCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
839
886
  return [
840
887
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
841
888
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
842
889
  ];
843
890
  }).s("Ebs", "CompleteSnapshot", {}).n("EBSClient", "CompleteSnapshotCommand").f(void 0, void 0).ser(se_CompleteSnapshotCommand).de(de_CompleteSnapshotCommand).build() {
891
+ static {
892
+ __name(this, "CompleteSnapshotCommand");
893
+ }
844
894
  };
845
- __name(_CompleteSnapshotCommand, "CompleteSnapshotCommand");
846
- var CompleteSnapshotCommand = _CompleteSnapshotCommand;
847
895
 
848
896
  // src/commands/GetSnapshotBlockCommand.ts
849
897
 
850
898
 
851
899
 
852
- var _GetSnapshotBlockCommand = class _GetSnapshotBlockCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
900
+ var GetSnapshotBlockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
853
901
  return [
854
902
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
855
903
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
856
904
  ];
857
905
  }).s("Ebs", "GetSnapshotBlock", {}).n("EBSClient", "GetSnapshotBlockCommand").f(void 0, GetSnapshotBlockResponseFilterSensitiveLog).ser(se_GetSnapshotBlockCommand).de(de_GetSnapshotBlockCommand).build() {
906
+ static {
907
+ __name(this, "GetSnapshotBlockCommand");
908
+ }
858
909
  };
859
- __name(_GetSnapshotBlockCommand, "GetSnapshotBlockCommand");
860
- var GetSnapshotBlockCommand = _GetSnapshotBlockCommand;
861
910
 
862
911
  // src/commands/ListChangedBlocksCommand.ts
863
912
 
864
913
 
865
914
 
866
- var _ListChangedBlocksCommand = class _ListChangedBlocksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
915
+ var ListChangedBlocksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
867
916
  return [
868
917
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
869
918
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
870
919
  ];
871
920
  }).s("Ebs", "ListChangedBlocks", {}).n("EBSClient", "ListChangedBlocksCommand").f(void 0, ListChangedBlocksResponseFilterSensitiveLog).ser(se_ListChangedBlocksCommand).de(de_ListChangedBlocksCommand).build() {
921
+ static {
922
+ __name(this, "ListChangedBlocksCommand");
923
+ }
872
924
  };
873
- __name(_ListChangedBlocksCommand, "ListChangedBlocksCommand");
874
- var ListChangedBlocksCommand = _ListChangedBlocksCommand;
875
925
 
876
926
  // src/commands/ListSnapshotBlocksCommand.ts
877
927
 
878
928
 
879
929
 
880
- var _ListSnapshotBlocksCommand = class _ListSnapshotBlocksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
930
+ var ListSnapshotBlocksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
881
931
  return [
882
932
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
883
933
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
884
934
  ];
885
935
  }).s("Ebs", "ListSnapshotBlocks", {}).n("EBSClient", "ListSnapshotBlocksCommand").f(void 0, ListSnapshotBlocksResponseFilterSensitiveLog).ser(se_ListSnapshotBlocksCommand).de(de_ListSnapshotBlocksCommand).build() {
936
+ static {
937
+ __name(this, "ListSnapshotBlocksCommand");
938
+ }
886
939
  };
887
- __name(_ListSnapshotBlocksCommand, "ListSnapshotBlocksCommand");
888
- var ListSnapshotBlocksCommand = _ListSnapshotBlocksCommand;
889
940
 
890
941
  // src/commands/PutSnapshotBlockCommand.ts
891
942
 
892
943
 
893
944
 
894
- var _PutSnapshotBlockCommand = class _PutSnapshotBlockCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
945
+ var PutSnapshotBlockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
895
946
  return [
896
947
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
897
948
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
898
949
  ];
899
950
  }).s("Ebs", "PutSnapshotBlock", {}).n("EBSClient", "PutSnapshotBlockCommand").f(PutSnapshotBlockRequestFilterSensitiveLog, void 0).ser(se_PutSnapshotBlockCommand).de(de_PutSnapshotBlockCommand).build() {
951
+ static {
952
+ __name(this, "PutSnapshotBlockCommand");
953
+ }
900
954
  };
901
- __name(_PutSnapshotBlockCommand, "PutSnapshotBlockCommand");
902
- var PutSnapshotBlockCommand = _PutSnapshotBlockCommand;
903
955
 
904
956
  // src/commands/StartSnapshotCommand.ts
905
957
 
906
958
 
907
959
 
908
- var _StartSnapshotCommand = class _StartSnapshotCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
960
+ var StartSnapshotCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
909
961
  return [
910
962
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
911
963
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
912
964
  ];
913
965
  }).s("Ebs", "StartSnapshot", {}).n("EBSClient", "StartSnapshotCommand").f(StartSnapshotRequestFilterSensitiveLog, StartSnapshotResponseFilterSensitiveLog).ser(se_StartSnapshotCommand).de(de_StartSnapshotCommand).build() {
966
+ static {
967
+ __name(this, "StartSnapshotCommand");
968
+ }
914
969
  };
915
- __name(_StartSnapshotCommand, "StartSnapshotCommand");
916
- var StartSnapshotCommand = _StartSnapshotCommand;
917
970
 
918
971
  // src/EBS.ts
919
972
  var commands = {
@@ -924,10 +977,11 @@ var commands = {
924
977
  PutSnapshotBlockCommand,
925
978
  StartSnapshotCommand
926
979
  };
927
- var _EBS = class _EBS extends EBSClient {
980
+ var EBS = class extends EBSClient {
981
+ static {
982
+ __name(this, "EBS");
983
+ }
928
984
  };
929
- __name(_EBS, "EBS");
930
- var EBS = _EBS;
931
985
  (0, import_smithy_client.createAggregatedClient)(commands, EBS);
932
986
 
933
987
  // src/pagination/ListChangedBlocksPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class EBSClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -5,14 +5,16 @@ export const AccessDeniedExceptionReason = {
5
5
  UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",
6
6
  };
7
7
  export class AccessDeniedException extends __BaseException {
8
+ name = "AccessDeniedException";
9
+ $fault = "client";
10
+ Message;
11
+ Reason;
8
12
  constructor(opts) {
9
13
  super({
10
14
  name: "AccessDeniedException",
11
15
  $fault: "client",
12
16
  ...opts,
13
17
  });
14
- this.name = "AccessDeniedException";
15
- this.$fault = "client";
16
18
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
19
  this.Message = opts.Message;
18
20
  this.Reason = opts.Reason;
@@ -30,14 +32,15 @@ export const Status = {
30
32
  PENDING: "pending",
31
33
  };
32
34
  export class InternalServerException extends __BaseException {
35
+ name = "InternalServerException";
36
+ $fault = "server";
37
+ Message;
33
38
  constructor(opts) {
34
39
  super({
35
40
  name: "InternalServerException",
36
41
  $fault: "server",
37
42
  ...opts,
38
43
  });
39
- this.name = "InternalServerException";
40
- this.$fault = "server";
41
44
  Object.setPrototypeOf(this, InternalServerException.prototype);
42
45
  this.Message = opts.Message;
43
46
  }
@@ -48,14 +51,16 @@ export const RequestThrottledExceptionReason = {
48
51
  RESOURCE_LEVEL_THROTTLE: "RESOURCE_LEVEL_THROTTLE",
49
52
  };
50
53
  export class RequestThrottledException extends __BaseException {
54
+ name = "RequestThrottledException";
55
+ $fault = "client";
56
+ Message;
57
+ Reason;
51
58
  constructor(opts) {
52
59
  super({
53
60
  name: "RequestThrottledException",
54
61
  $fault: "client",
55
62
  ...opts,
56
63
  });
57
- this.name = "RequestThrottledException";
58
- this.$fault = "client";
59
64
  Object.setPrototypeOf(this, RequestThrottledException.prototype);
60
65
  this.Message = opts.Message;
61
66
  this.Reason = opts.Reason;
@@ -68,14 +73,16 @@ export const ResourceNotFoundExceptionReason = {
68
73
  SNAPSHOT_NOT_FOUND: "SNAPSHOT_NOT_FOUND",
69
74
  };
70
75
  export class ResourceNotFoundException extends __BaseException {
76
+ name = "ResourceNotFoundException";
77
+ $fault = "client";
78
+ Message;
79
+ Reason;
71
80
  constructor(opts) {
72
81
  super({
73
82
  name: "ResourceNotFoundException",
74
83
  $fault: "client",
75
84
  ...opts,
76
85
  });
77
- this.name = "ResourceNotFoundException";
78
- this.$fault = "client";
79
86
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
80
87
  this.Message = opts.Message;
81
88
  this.Reason = opts.Reason;
@@ -85,14 +92,16 @@ export const ServiceQuotaExceededExceptionReason = {
85
92
  DEPENDENCY_SERVICE_QUOTA_EXCEEDED: "DEPENDENCY_SERVICE_QUOTA_EXCEEDED",
86
93
  };
87
94
  export class ServiceQuotaExceededException extends __BaseException {
95
+ name = "ServiceQuotaExceededException";
96
+ $fault = "client";
97
+ Message;
98
+ Reason;
88
99
  constructor(opts) {
89
100
  super({
90
101
  name: "ServiceQuotaExceededException",
91
102
  $fault: "client",
92
103
  ...opts,
93
104
  });
94
- this.name = "ServiceQuotaExceededException";
95
- this.$fault = "client";
96
105
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
97
106
  this.Message = opts.Message;
98
107
  this.Reason = opts.Reason;
@@ -116,41 +125,45 @@ export const ValidationExceptionReason = {
116
125
  WRITE_REQUEST_TIMEOUT: "WRITE_REQUEST_TIMEOUT",
117
126
  };
118
127
  export class ValidationException extends __BaseException {
128
+ name = "ValidationException";
129
+ $fault = "client";
130
+ Message;
131
+ Reason;
119
132
  constructor(opts) {
120
133
  super({
121
134
  name: "ValidationException",
122
135
  $fault: "client",
123
136
  ...opts,
124
137
  });
125
- this.name = "ValidationException";
126
- this.$fault = "client";
127
138
  Object.setPrototypeOf(this, ValidationException.prototype);
128
139
  this.Message = opts.Message;
129
140
  this.Reason = opts.Reason;
130
141
  }
131
142
  }
132
143
  export class ConcurrentLimitExceededException extends __BaseException {
144
+ name = "ConcurrentLimitExceededException";
145
+ $fault = "client";
146
+ Message;
133
147
  constructor(opts) {
134
148
  super({
135
149
  name: "ConcurrentLimitExceededException",
136
150
  $fault: "client",
137
151
  ...opts,
138
152
  });
139
- this.name = "ConcurrentLimitExceededException";
140
- this.$fault = "client";
141
153
  Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
142
154
  this.Message = opts.Message;
143
155
  }
144
156
  }
145
157
  export class ConflictException extends __BaseException {
158
+ name = "ConflictException";
159
+ $fault = "client";
160
+ Message;
146
161
  constructor(opts) {
147
162
  super({
148
163
  name: "ConflictException",
149
164
  $fault: "client",
150
165
  ...opts,
151
166
  });
152
- this.name = "ConflictException";
153
- this.$fault = "client";
154
167
  Object.setPrototypeOf(this, ConflictException.prototype);
155
168
  this.Message = opts.Message;
156
169
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
32
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
33
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
37
  logger?: import("@smithy/types").Logger | undefined;
38
38
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -51,11 +53,21 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
51
53
  | import("@smithy/types").RetryStrategyV2
52
54
  | undefined;
53
55
  endpoint?:
54
- | string
55
- | import("@smithy/types").Endpoint
56
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
57
- | import("@smithy/types").EndpointV2
58
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
56
+ | ((
57
+ | string
58
+ | import("@smithy/types").Endpoint
59
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
60
+ | import("@smithy/types").EndpointV2
61
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
62
+ ) &
63
+ (
64
+ | string
65
+ | import("@smithy/types").Provider<string>
66
+ | import("@smithy/types").Endpoint
67
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
68
+ | import("@smithy/types").EndpointV2
69
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
70
+ ))
59
71
  | undefined;
60
72
  endpointProvider: (
61
73
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ebs",
3
3
  "description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.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-ebs",
@@ -20,59 +20,59 @@
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.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-stream": "^3.3.2",
61
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-stream": "^4.0.0",
61
+ "@smithy/util-utf8": "^4.0.0",
62
62
  "@types/uuid": "^9.0.1",
63
63
  "tslib": "^2.6.2",
64
64
  "uuid": "^9.0.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@tsconfig/node16": "16.1.3",
68
- "@types/node": "^16.18.96",
67
+ "@tsconfig/node18": "18.2.4",
68
+ "@types/node": "^18.19.69",
69
69
  "concurrently": "7.0.0",
70
70
  "downlevel-dts": "0.10.1",
71
71
  "rimraf": "3.0.2",
72
- "typescript": "~4.9.5"
72
+ "typescript": "~5.2.2"
73
73
  },
74
74
  "engines": {
75
- "node": ">=16.0.0"
75
+ "node": ">=18.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {