@aws-sdk/client-ebs 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultEBSHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CompleteSnapshot$, GetSnapshotBlock$, ListChangedBlocks$, ListSnapshotBlocks$, PutSnapshotBlock$, StartSnapshot$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { EBSServiceException } = require("./models/EBSServiceException");
18
- exports.EBSServiceException = EBSServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultEBSHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "ebs",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultEBSHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,515 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://ebs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://ebs-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://ebs.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://ebs.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class EBSServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, EBSServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends EBSServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ Message;
144
+ Reason;
145
+ constructor(opts) {
146
+ super({
147
+ name: "AccessDeniedException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
152
+ this.Message = opts.Message;
153
+ this.Reason = opts.Reason;
154
+ }
155
+ }
156
+ class InternalServerException extends EBSServiceException {
157
+ name = "InternalServerException";
158
+ $fault = "server";
159
+ Message;
160
+ constructor(opts) {
161
+ super({
162
+ name: "InternalServerException",
163
+ $fault: "server",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, InternalServerException.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
170
+ class RequestThrottledException extends EBSServiceException {
171
+ name = "RequestThrottledException";
172
+ $fault = "client";
173
+ Message;
174
+ Reason;
175
+ constructor(opts) {
176
+ super({
177
+ name: "RequestThrottledException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, RequestThrottledException.prototype);
182
+ this.Message = opts.Message;
183
+ this.Reason = opts.Reason;
184
+ }
185
+ }
186
+ class ResourceNotFoundException extends EBSServiceException {
187
+ name = "ResourceNotFoundException";
188
+ $fault = "client";
189
+ Message;
190
+ Reason;
191
+ constructor(opts) {
192
+ super({
193
+ name: "ResourceNotFoundException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
198
+ this.Message = opts.Message;
199
+ this.Reason = opts.Reason;
200
+ }
201
+ }
202
+ class ServiceQuotaExceededException extends EBSServiceException {
203
+ name = "ServiceQuotaExceededException";
204
+ $fault = "client";
205
+ Message;
206
+ Reason;
207
+ constructor(opts) {
208
+ super({
209
+ name: "ServiceQuotaExceededException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
214
+ this.Message = opts.Message;
215
+ this.Reason = opts.Reason;
216
+ }
217
+ }
218
+ class ValidationException extends EBSServiceException {
219
+ name = "ValidationException";
220
+ $fault = "client";
221
+ Message;
222
+ Reason;
223
+ constructor(opts) {
224
+ super({
225
+ name: "ValidationException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ Object.setPrototypeOf(this, ValidationException.prototype);
230
+ this.Message = opts.Message;
231
+ this.Reason = opts.Reason;
232
+ }
233
+ }
234
+ class ConcurrentLimitExceededException extends EBSServiceException {
235
+ name = "ConcurrentLimitExceededException";
236
+ $fault = "client";
237
+ Message;
238
+ constructor(opts) {
239
+ super({
240
+ name: "ConcurrentLimitExceededException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ }
248
+ class ConflictException extends EBSServiceException {
249
+ name = "ConflictException";
250
+ $fault = "client";
251
+ Message;
252
+ constructor(opts) {
253
+ super({
254
+ name: "ConflictException",
255
+ $fault: "client",
256
+ ...opts,
257
+ });
258
+ Object.setPrototypeOf(this, ConflictException.prototype);
259
+ this.Message = opts.Message;
260
+ }
261
+ }
262
+
263
+ const _ADE = "AccessDeniedException";
264
+ const _B = "Block";
265
+ const _BD = "BlockData";
266
+ const _BI = "BlockIndex";
267
+ const _BS = "BlockSize";
268
+ const _BT = "BlockToken";
269
+ const _Bl = "Blocks";
270
+ const _C = "Checksum";
271
+ const _CA = "ChecksumAlgorithm";
272
+ const _CAM = "ChecksumAggregationMethod";
273
+ const _CB = "ChangedBlock";
274
+ const _CBC = "ChangedBlocksCount";
275
+ const _CBh = "ChangedBlocks";
276
+ const _CE = "ConflictException";
277
+ const _CLEE = "ConcurrentLimitExceededException";
278
+ const _CS = "CompleteSnapshot";
279
+ const _CSR = "CompleteSnapshotRequest";
280
+ const _CSRo = "CompleteSnapshotResponse";
281
+ const _CT = "ClientToken";
282
+ const _D = "Description";
283
+ const _DL = "DataLength";
284
+ const _E = "Encrypted";
285
+ const _ET = "ExpiryTime";
286
+ const _FBT = "FirstBlockToken";
287
+ const _FSI = "FirstSnapshotId";
288
+ const _GSB = "GetSnapshotBlock";
289
+ const _GSBR = "GetSnapshotBlockRequest";
290
+ const _GSBRe = "GetSnapshotBlockResponse";
291
+ const _ISE = "InternalServerException";
292
+ const _K = "Key";
293
+ const _KKA = "KmsKeyArn";
294
+ const _LCB = "ListChangedBlocks";
295
+ const _LCBR = "ListChangedBlocksRequest";
296
+ const _LCBRi = "ListChangedBlocksResponse";
297
+ const _LSB = "ListSnapshotBlocks";
298
+ const _LSBR = "ListSnapshotBlocksRequest";
299
+ const _LSBRi = "ListSnapshotBlocksResponse";
300
+ const _M = "Message";
301
+ const _MR = "MaxResults";
302
+ const _NT = "NextToken";
303
+ const _OI = "OwnerId";
304
+ const _P = "Progress";
305
+ const _PSB = "PutSnapshotBlock";
306
+ const _PSBR = "PutSnapshotBlockRequest";
307
+ const _PSBRu = "PutSnapshotBlockResponse";
308
+ const _PSI = "ParentSnapshotId";
309
+ const _R = "Reason";
310
+ const _RNFE = "ResourceNotFoundException";
311
+ const _RTE = "RequestThrottledException";
312
+ const _S = "Status";
313
+ const _SBI = "StartingBlockIndex";
314
+ const _SBT = "SecondBlockToken";
315
+ const _SI = "SnapshotId";
316
+ const _SQEE = "ServiceQuotaExceededException";
317
+ const _SS = "StartSnapshot";
318
+ const _SSI = "SecondSnapshotId";
319
+ const _SSR = "StartSnapshotRequest";
320
+ const _SSRt = "StartSnapshotResponse";
321
+ const _ST = "StartTime";
322
+ const _STs = "SseType";
323
+ const _T = "Tags";
324
+ const _Ta = "Tag";
325
+ const _Ti = "Timeout";
326
+ const _V = "Value";
327
+ const _VE = "ValidationException";
328
+ const _VS = "VolumeSize";
329
+ const _bT = "blockToken";
330
+ const _c = "client";
331
+ const _e = "error";
332
+ const _fSI = "firstSnapshotId";
333
+ const _h = "http";
334
+ const _hE = "httpError";
335
+ const _hH = "httpHeader";
336
+ const _hQ = "httpQuery";
337
+ const _mR = "maxResults";
338
+ const _pT = "pageToken";
339
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ebs";
340
+ const _sBI = "startingBlockIndex";
341
+ const _se = "server";
342
+ const _sen = "sensitive";
343
+ const _st = "streaming";
344
+ const _xaC = "x-amz-ChangedBlocksCount";
345
+ const _xaCA = "x-amz-Checksum-Algorithm";
346
+ const _xaCAM = "x-amz-Checksum-Aggregation-Method";
347
+ const _xaC_ = "x-amz-Checksum";
348
+ const _xaDL = "x-amz-Data-Length";
349
+ const _xaP = "x-amz-Progress";
350
+ const n0 = "com.amazonaws.ebs";
351
+ const _s_registry = TypeRegistry.for(_s);
352
+ var EBSServiceException$ = [-3, _s, "EBSServiceException", 0, [], []];
353
+ _s_registry.registerError(EBSServiceException$, EBSServiceException);
354
+ const n0_registry = TypeRegistry.for(n0);
355
+ var AccessDeniedException$ = [-3, n0, _ADE,
356
+ { [_e]: _c, [_hE]: 403 },
357
+ [_R, _M],
358
+ [0, 0], 1
359
+ ];
360
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
361
+ var ConcurrentLimitExceededException$ = [-3, n0, _CLEE,
362
+ { [_e]: _c, [_hE]: 400 },
363
+ [_M],
364
+ [0]
365
+ ];
366
+ n0_registry.registerError(ConcurrentLimitExceededException$, ConcurrentLimitExceededException);
367
+ var ConflictException$ = [-3, n0, _CE,
368
+ { [_e]: _c, [_hE]: 409 },
369
+ [_M],
370
+ [0]
371
+ ];
372
+ n0_registry.registerError(ConflictException$, ConflictException);
373
+ var InternalServerException$ = [-3, n0, _ISE,
374
+ { [_e]: _se, [_hE]: 500 },
375
+ [_M],
376
+ [0]
377
+ ];
378
+ n0_registry.registerError(InternalServerException$, InternalServerException);
379
+ var RequestThrottledException$ = [-3, n0, _RTE,
380
+ { [_e]: _c, [_hE]: 400 },
381
+ [_M, _R],
382
+ [0, 0]
383
+ ];
384
+ n0_registry.registerError(RequestThrottledException$, RequestThrottledException);
385
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
386
+ { [_e]: _c, [_hE]: 404 },
387
+ [_M, _R],
388
+ [0, 0]
389
+ ];
390
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
391
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
392
+ { [_e]: _c, [_hE]: 402 },
393
+ [_M, _R],
394
+ [0, 0]
395
+ ];
396
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
397
+ var ValidationException$ = [-3, n0, _VE,
398
+ { [_e]: _c, [_hE]: 400 },
399
+ [_M, _R],
400
+ [0, 0]
401
+ ];
402
+ n0_registry.registerError(ValidationException$, ValidationException);
403
+ const errorTypeRegistries = [
404
+ _s_registry,
405
+ n0_registry,
406
+ ];
407
+ var BlockData = [0, n0, _BD, { [_sen]: 1, [_st]: 1 }, 42];
408
+ var KmsKeyArn = [0, n0, _KKA, 8, 0];
409
+ var Block$ = [3, n0, _B,
410
+ 0,
411
+ [_BI, _BT],
412
+ [1, 0]
413
+ ];
414
+ var ChangedBlock$ = [3, n0, _CB,
415
+ 8,
416
+ [_BI, _FBT, _SBT],
417
+ [1, 0, 0]
418
+ ];
419
+ var CompleteSnapshotRequest$ = [3, n0, _CSR,
420
+ 0,
421
+ [_SI, _CBC, _C, _CA, _CAM],
422
+ [[0, 1], [1, { [_hH]: _xaC }], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }], [0, { [_hH]: _xaCAM }]], 2
423
+ ];
424
+ var CompleteSnapshotResponse$ = [3, n0, _CSRo,
425
+ 0,
426
+ [_S],
427
+ [0]
428
+ ];
429
+ var GetSnapshotBlockRequest$ = [3, n0, _GSBR,
430
+ 0,
431
+ [_SI, _BI, _BT],
432
+ [[0, 1], [1, 1], [0, { [_hQ]: _bT }]], 3
433
+ ];
434
+ var GetSnapshotBlockResponse$ = [3, n0, _GSBRe,
435
+ 0,
436
+ [_DL, _BD, _C, _CA],
437
+ [[1, { [_hH]: _xaDL }], [() => BlockData, 16], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }]]
438
+ ];
439
+ var ListChangedBlocksRequest$ = [3, n0, _LCBR,
440
+ 0,
441
+ [_SSI, _FSI, _NT, _MR, _SBI],
442
+ [[0, 1], [0, { [_hQ]: _fSI }], [0, { [_hQ]: _pT }], [1, { [_hQ]: _mR }], [1, { [_hQ]: _sBI }]], 1
443
+ ];
444
+ var ListChangedBlocksResponse$ = [3, n0, _LCBRi,
445
+ 0,
446
+ [_CBh, _ET, _VS, _BS, _NT],
447
+ [[() => ChangedBlocks, 0], 4, 1, 1, 0]
448
+ ];
449
+ var ListSnapshotBlocksRequest$ = [3, n0, _LSBR,
450
+ 0,
451
+ [_SI, _NT, _MR, _SBI],
452
+ [[0, 1], [0, { [_hQ]: _pT }], [1, { [_hQ]: _mR }], [1, { [_hQ]: _sBI }]], 1
453
+ ];
454
+ var ListSnapshotBlocksResponse$ = [3, n0, _LSBRi,
455
+ 0,
456
+ [_Bl, _ET, _VS, _BS, _NT],
457
+ [[() => Blocks, 0], 4, 1, 1, 0]
458
+ ];
459
+ var PutSnapshotBlockRequest$ = [3, n0, _PSBR,
460
+ 0,
461
+ [_SI, _BI, _BD, _DL, _C, _CA, _P],
462
+ [[0, 1], [1, 1], [() => BlockData, 16], [1, { [_hH]: _xaDL }], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }], [1, { [_hH]: _xaP }]], 6
463
+ ];
464
+ var PutSnapshotBlockResponse$ = [3, n0, _PSBRu,
465
+ 0,
466
+ [_C, _CA],
467
+ [[0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }]]
468
+ ];
469
+ var StartSnapshotRequest$ = [3, n0, _SSR,
470
+ 0,
471
+ [_VS, _PSI, _T, _D, _CT, _E, _KKA, _Ti],
472
+ [1, 0, () => Tags, 0, [0, 4], 2, [() => KmsKeyArn, 0], 1], 1
473
+ ];
474
+ var StartSnapshotResponse$ = [3, n0, _SSRt,
475
+ 0,
476
+ [_D, _SI, _OI, _S, _ST, _VS, _BS, _T, _PSI, _KKA, _STs],
477
+ [0, 0, 0, 0, 4, 1, 1, () => Tags, 0, [() => KmsKeyArn, 0], 0]
478
+ ];
479
+ var Tag$ = [3, n0, _Ta,
480
+ 0,
481
+ [_K, _V],
482
+ [0, 0]
483
+ ];
484
+ var Blocks = [1, n0, _Bl,
485
+ 8, () => Block$
486
+ ];
487
+ var ChangedBlocks = [1, n0, _CBh,
488
+ 0, [() => ChangedBlock$,
489
+ 0]
490
+ ];
491
+ var Tags = [1, n0, _T,
492
+ 0, () => Tag$
493
+ ];
494
+ var CompleteSnapshot$ = [9, n0, _CS,
495
+ { [_h]: ["POST", "/snapshots/completion/{SnapshotId}", 202] }, () => CompleteSnapshotRequest$, () => CompleteSnapshotResponse$
496
+ ];
497
+ var GetSnapshotBlock$ = [9, n0, _GSB,
498
+ { [_h]: ["GET", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 200] }, () => GetSnapshotBlockRequest$, () => GetSnapshotBlockResponse$
499
+ ];
500
+ var ListChangedBlocks$ = [9, n0, _LCB,
501
+ { [_h]: ["GET", "/snapshots/{SecondSnapshotId}/changedblocks", 200] }, () => ListChangedBlocksRequest$, () => ListChangedBlocksResponse$
502
+ ];
503
+ var ListSnapshotBlocks$ = [9, n0, _LSB,
504
+ { [_h]: ["GET", "/snapshots/{SnapshotId}/blocks", 200] }, () => ListSnapshotBlocksRequest$, () => ListSnapshotBlocksResponse$
505
+ ];
506
+ var PutSnapshotBlock$ = [9, n0, _PSB,
507
+ { [_h]: ["PUT", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 201] }, () => PutSnapshotBlockRequest$, () => PutSnapshotBlockResponse$
508
+ ];
509
+ var StartSnapshot$ = [9, n0, _SS,
510
+ { [_h]: ["POST", "/snapshots", 201] }, () => StartSnapshotRequest$, () => StartSnapshotResponse$
511
+ ];
512
+
513
+ const getRuntimeConfig$1 = (config) => {
514
+ return {
515
+ apiVersion: "2019-11-02",
516
+ base64Decoder: config?.base64Decoder ?? fromBase64,
517
+ base64Encoder: config?.base64Encoder ?? toBase64,
518
+ disableHostPrefix: config?.disableHostPrefix ?? false,
519
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
520
+ extensions: config?.extensions ?? [],
521
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEBSHttpAuthSchemeProvider,
522
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
523
+ {
524
+ schemeId: "aws.auth#sigv4",
525
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
526
+ signer: new AwsSdkSigV4Signer(),
527
+ },
528
+ ],
529
+ logger: config?.logger ?? new NoOpLogger(),
530
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
531
+ protocolSettings: config?.protocolSettings ?? {
532
+ defaultNamespace: "com.amazonaws.ebs",
533
+ errorTypeRegistries,
534
+ version: "2019-11-02",
535
+ serviceTarget: "Ebs",
536
+ },
537
+ sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
538
+ serviceId: config?.serviceId ?? "EBS",
539
+ sha256: config?.sha256 ?? Sha256,
540
+ urlParser: config?.urlParser ?? parseUrl,
541
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
542
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
543
+ };
544
+ };
545
+
546
+ const getRuntimeConfig = (config) => {
547
+ emitWarningIfUnsupportedVersion(process.version);
548
+ const defaultsMode = resolveDefaultsModeConfig(config);
549
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
550
+ const clientSharedValues = getRuntimeConfig$1(config);
551
+ emitWarningIfUnsupportedVersion$1(process.version);
552
+ const loaderConfig = {
553
+ profile: config?.profile,
554
+ logger: clientSharedValues.logger,
555
+ };
556
+ return {
557
+ ...clientSharedValues,
558
+ ...config,
559
+ runtime: "node",
560
+ defaultsMode,
561
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
562
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
563
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
564
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
565
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
566
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
567
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
568
+ retryMode: config?.retryMode ??
569
+ loadConfig({
570
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
571
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
572
+ }, config),
573
+ streamCollector: config?.streamCollector ?? streamCollector,
574
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
575
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
576
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
577
+ };
578
+ };
579
+
34
580
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
581
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
582
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -255,22 +801,62 @@ const SSEType = {
255
801
  SSE_KMS: "sse-kms",
256
802
  };
257
803
 
804
+ exports.AccessDeniedException = AccessDeniedException;
805
+ exports.AccessDeniedException$ = AccessDeniedException$;
258
806
  exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
807
+ exports.Block$ = Block$;
808
+ exports.ChangedBlock$ = ChangedBlock$;
259
809
  exports.ChecksumAggregationMethod = ChecksumAggregationMethod;
260
810
  exports.ChecksumAlgorithm = ChecksumAlgorithm;
811
+ exports.CompleteSnapshot$ = CompleteSnapshot$;
261
812
  exports.CompleteSnapshotCommand = CompleteSnapshotCommand;
813
+ exports.CompleteSnapshotRequest$ = CompleteSnapshotRequest$;
814
+ exports.CompleteSnapshotResponse$ = CompleteSnapshotResponse$;
815
+ exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException;
816
+ exports.ConcurrentLimitExceededException$ = ConcurrentLimitExceededException$;
817
+ exports.ConflictException = ConflictException;
818
+ exports.ConflictException$ = ConflictException$;
262
819
  exports.EBS = EBS;
263
820
  exports.EBSClient = EBSClient;
821
+ exports.EBSServiceException = EBSServiceException;
822
+ exports.EBSServiceException$ = EBSServiceException$;
823
+ exports.GetSnapshotBlock$ = GetSnapshotBlock$;
264
824
  exports.GetSnapshotBlockCommand = GetSnapshotBlockCommand;
825
+ exports.GetSnapshotBlockRequest$ = GetSnapshotBlockRequest$;
826
+ exports.GetSnapshotBlockResponse$ = GetSnapshotBlockResponse$;
827
+ exports.InternalServerException = InternalServerException;
828
+ exports.InternalServerException$ = InternalServerException$;
829
+ exports.ListChangedBlocks$ = ListChangedBlocks$;
265
830
  exports.ListChangedBlocksCommand = ListChangedBlocksCommand;
831
+ exports.ListChangedBlocksRequest$ = ListChangedBlocksRequest$;
832
+ exports.ListChangedBlocksResponse$ = ListChangedBlocksResponse$;
833
+ exports.ListSnapshotBlocks$ = ListSnapshotBlocks$;
266
834
  exports.ListSnapshotBlocksCommand = ListSnapshotBlocksCommand;
835
+ exports.ListSnapshotBlocksRequest$ = ListSnapshotBlocksRequest$;
836
+ exports.ListSnapshotBlocksResponse$ = ListSnapshotBlocksResponse$;
837
+ exports.PutSnapshotBlock$ = PutSnapshotBlock$;
267
838
  exports.PutSnapshotBlockCommand = PutSnapshotBlockCommand;
839
+ exports.PutSnapshotBlockRequest$ = PutSnapshotBlockRequest$;
840
+ exports.PutSnapshotBlockResponse$ = PutSnapshotBlockResponse$;
841
+ exports.RequestThrottledException = RequestThrottledException;
842
+ exports.RequestThrottledException$ = RequestThrottledException$;
268
843
  exports.RequestThrottledExceptionReason = RequestThrottledExceptionReason;
844
+ exports.ResourceNotFoundException = ResourceNotFoundException;
845
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
269
846
  exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
270
847
  exports.SSEType = SSEType;
848
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
849
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
271
850
  exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
851
+ exports.StartSnapshot$ = StartSnapshot$;
272
852
  exports.StartSnapshotCommand = StartSnapshotCommand;
853
+ exports.StartSnapshotRequest$ = StartSnapshotRequest$;
854
+ exports.StartSnapshotResponse$ = StartSnapshotResponse$;
273
855
  exports.Status = Status;
856
+ exports.Tag$ = Tag$;
857
+ exports.ValidationException = ValidationException;
858
+ exports.ValidationException$ = ValidationException$;
274
859
  exports.ValidationExceptionReason = ValidationExceptionReason;
860
+ exports.errorTypeRegistries = errorTypeRegistries;
275
861
  exports.paginateListChangedBlocks = paginateListChangedBlocks;
276
862
  exports.paginateListSnapshotBlocks = paginateListSnapshotBlocks;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),