@aws-sdk/client-ebs 3.928.0 → 3.930.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.
Files changed (30) hide show
  1. package/dist-cjs/index.js +519 -465
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/EBSClient.js +2 -0
  4. package/dist-es/commands/CompleteSnapshotCommand.js +3 -9
  5. package/dist-es/commands/GetSnapshotBlockCommand.js +3 -10
  6. package/dist-es/commands/ListChangedBlocksCommand.js +3 -10
  7. package/dist-es/commands/ListSnapshotBlocksCommand.js +3 -10
  8. package/dist-es/commands/PutSnapshotBlockCommand.js +3 -10
  9. package/dist-es/commands/StartSnapshotCommand.js +3 -10
  10. package/dist-es/models/models_0.js +0 -28
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +498 -0
  13. package/dist-types/EBSClient.d.ts +10 -1
  14. package/dist-types/models/models_0.d.ts +0 -28
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +37 -0
  20. package/dist-types/ts3.4/EBSClient.d.ts +4 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +0 -19
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +43 -0
  27. package/package.json +34 -35
  28. package/dist-es/protocols/Aws_restJson1.js +0 -382
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -80
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class EBSClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,18 +110,18 @@ class EBSClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class EBSServiceException extends smithyClient.ServiceException {
113
+ let EBSServiceException$1 = class EBSServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, EBSServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
120
  const AccessDeniedExceptionReason = {
122
121
  DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
123
122
  UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",
124
123
  };
125
- class AccessDeniedException extends EBSServiceException {
124
+ let AccessDeniedException$1 = class AccessDeniedException extends EBSServiceException$1 {
126
125
  name = "AccessDeniedException";
127
126
  $fault = "client";
128
127
  Message;
@@ -137,7 +136,7 @@ class AccessDeniedException extends EBSServiceException {
137
136
  this.Message = opts.Message;
138
137
  this.Reason = opts.Reason;
139
138
  }
140
- }
139
+ };
141
140
  const ChecksumAggregationMethod = {
142
141
  CHECKSUM_AGGREGATION_LINEAR: "LINEAR",
143
142
  };
@@ -149,7 +148,7 @@ const Status = {
149
148
  ERROR: "error",
150
149
  PENDING: "pending",
151
150
  };
152
- class InternalServerException extends EBSServiceException {
151
+ let InternalServerException$1 = class InternalServerException extends EBSServiceException$1 {
153
152
  name = "InternalServerException";
154
153
  $fault = "server";
155
154
  Message;
@@ -162,13 +161,13 @@ class InternalServerException extends EBSServiceException {
162
161
  Object.setPrototypeOf(this, InternalServerException.prototype);
163
162
  this.Message = opts.Message;
164
163
  }
165
- }
164
+ };
166
165
  const RequestThrottledExceptionReason = {
167
166
  ACCOUNT_THROTTLED: "ACCOUNT_THROTTLED",
168
167
  DEPENDENCY_REQUEST_THROTTLED: "DEPENDENCY_REQUEST_THROTTLED",
169
168
  RESOURCE_LEVEL_THROTTLE: "RESOURCE_LEVEL_THROTTLE",
170
169
  };
171
- class RequestThrottledException extends EBSServiceException {
170
+ let RequestThrottledException$1 = class RequestThrottledException extends EBSServiceException$1 {
172
171
  name = "RequestThrottledException";
173
172
  $fault = "client";
174
173
  Message;
@@ -183,14 +182,14 @@ class RequestThrottledException extends EBSServiceException {
183
182
  this.Message = opts.Message;
184
183
  this.Reason = opts.Reason;
185
184
  }
186
- }
185
+ };
187
186
  const ResourceNotFoundExceptionReason = {
188
187
  DEPENDENCY_RESOURCE_NOT_FOUND: "DEPENDENCY_RESOURCE_NOT_FOUND",
189
188
  GRANT_NOT_FOUND: "GRANT_NOT_FOUND",
190
189
  IMAGE_NOT_FOUND: "IMAGE_NOT_FOUND",
191
190
  SNAPSHOT_NOT_FOUND: "SNAPSHOT_NOT_FOUND",
192
191
  };
193
- class ResourceNotFoundException extends EBSServiceException {
192
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends EBSServiceException$1 {
194
193
  name = "ResourceNotFoundException";
195
194
  $fault = "client";
196
195
  Message;
@@ -205,11 +204,11 @@ class ResourceNotFoundException extends EBSServiceException {
205
204
  this.Message = opts.Message;
206
205
  this.Reason = opts.Reason;
207
206
  }
208
- }
207
+ };
209
208
  const ServiceQuotaExceededExceptionReason = {
210
209
  DEPENDENCY_SERVICE_QUOTA_EXCEEDED: "DEPENDENCY_SERVICE_QUOTA_EXCEEDED",
211
210
  };
212
- class ServiceQuotaExceededException extends EBSServiceException {
211
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends EBSServiceException$1 {
213
212
  name = "ServiceQuotaExceededException";
214
213
  $fault = "client";
215
214
  Message;
@@ -224,7 +223,7 @@ class ServiceQuotaExceededException extends EBSServiceException {
224
223
  this.Message = opts.Message;
225
224
  this.Reason = opts.Reason;
226
225
  }
227
- }
226
+ };
228
227
  const ValidationExceptionReason = {
229
228
  CONFLICTING_BLOCK_UPDATE: "CONFLICTING_BLOCK_UPDATE",
230
229
  INVALID_BLOCK: "INVALID_BLOCK",
@@ -242,7 +241,7 @@ const ValidationExceptionReason = {
242
241
  UNRELATED_SNAPSHOTS: "UNRELATED_SNAPSHOTS",
243
242
  WRITE_REQUEST_TIMEOUT: "WRITE_REQUEST_TIMEOUT",
244
243
  };
245
- class ValidationException extends EBSServiceException {
244
+ let ValidationException$1 = class ValidationException extends EBSServiceException$1 {
246
245
  name = "ValidationException";
247
246
  $fault = "client";
248
247
  Message;
@@ -257,8 +256,8 @@ class ValidationException extends EBSServiceException {
257
256
  this.Message = opts.Message;
258
257
  this.Reason = opts.Reason;
259
258
  }
260
- }
261
- class ConcurrentLimitExceededException extends EBSServiceException {
259
+ };
260
+ let ConcurrentLimitExceededException$1 = class ConcurrentLimitExceededException extends EBSServiceException$1 {
262
261
  name = "ConcurrentLimitExceededException";
263
262
  $fault = "client";
264
263
  Message;
@@ -271,8 +270,8 @@ class ConcurrentLimitExceededException extends EBSServiceException {
271
270
  Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
272
271
  this.Message = opts.Message;
273
272
  }
274
- }
275
- class ConflictException extends EBSServiceException {
273
+ };
274
+ let ConflictException$1 = class ConflictException extends EBSServiceException$1 {
276
275
  name = "ConflictException";
277
276
  $fault = "client";
278
277
  Message;
@@ -285,430 +284,517 @@ class ConflictException extends EBSServiceException {
285
284
  Object.setPrototypeOf(this, ConflictException.prototype);
286
285
  this.Message = opts.Message;
287
286
  }
288
- }
287
+ };
289
288
  const SSEType = {
290
289
  NONE: "none",
291
290
  SSE_EBS: "sse-ebs",
292
291
  SSE_KMS: "sse-kms",
293
292
  };
294
- const ChangedBlockFilterSensitiveLog = (obj) => ({
295
- ...obj,
296
- });
297
- const GetSnapshotBlockResponseFilterSensitiveLog = (obj) => ({
298
- ...obj,
299
- ...(obj.BlockData && { BlockData: smithyClient.SENSITIVE_STRING }),
300
- });
301
- const ListChangedBlocksResponseFilterSensitiveLog = (obj) => ({
302
- ...obj,
303
- ...(obj.ChangedBlocks && { ChangedBlocks: smithyClient.SENSITIVE_STRING }),
304
- });
305
- const ListSnapshotBlocksResponseFilterSensitiveLog = (obj) => ({
306
- ...obj,
307
- ...(obj.Blocks && { Blocks: smithyClient.SENSITIVE_STRING }),
308
- });
309
- const PutSnapshotBlockRequestFilterSensitiveLog = (obj) => ({
310
- ...obj,
311
- ...(obj.BlockData && { BlockData: smithyClient.SENSITIVE_STRING }),
312
- });
313
- const StartSnapshotRequestFilterSensitiveLog = (obj) => ({
314
- ...obj,
315
- ...(obj.KmsKeyArn && { KmsKeyArn: smithyClient.SENSITIVE_STRING }),
316
- });
317
- const StartSnapshotResponseFilterSensitiveLog = (obj) => ({
318
- ...obj,
319
- ...(obj.KmsKeyArn && { KmsKeyArn: smithyClient.SENSITIVE_STRING }),
320
- });
321
293
 
322
- const se_CompleteSnapshotCommand = async (input, context) => {
323
- const b = core.requestBuilder(input, context);
324
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
325
- [_xac]: [() => smithyClient.isSerializableHeaderValue(input[_CBC]), () => input[_CBC].toString()],
326
- [_xac_]: input[_C],
327
- [_xaca]: input[_CA],
328
- [_xacam]: input[_CAM],
329
- });
330
- b.bp("/snapshots/completion/{SnapshotId}");
331
- b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
332
- let body;
333
- b.m("POST").h(headers).b(body);
334
- return b.build();
335
- };
336
- const se_GetSnapshotBlockCommand = async (input, context) => {
337
- const b = core.requestBuilder(input, context);
338
- const headers = {};
339
- b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
340
- b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
341
- b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
342
- const query = smithyClient.map({
343
- [_bT]: [, smithyClient.expectNonNull(input[_BT], `BlockToken`)],
344
- });
345
- let body;
346
- b.m("GET").h(headers).q(query).b(body);
347
- return b.build();
348
- };
349
- const se_ListChangedBlocksCommand = async (input, context) => {
350
- const b = core.requestBuilder(input, context);
351
- const headers = {};
352
- b.bp("/snapshots/{SecondSnapshotId}/changedblocks");
353
- b.p("SecondSnapshotId", () => input.SecondSnapshotId, "{SecondSnapshotId}", false);
354
- const query = smithyClient.map({
355
- [_fSI]: [, input[_FSI]],
356
- [_pT]: [, input[_NT]],
357
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
358
- [_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()],
359
- });
360
- let body;
361
- b.m("GET").h(headers).q(query).b(body);
362
- return b.build();
363
- };
364
- const se_ListSnapshotBlocksCommand = async (input, context) => {
365
- const b = core.requestBuilder(input, context);
366
- const headers = {};
367
- b.bp("/snapshots/{SnapshotId}/blocks");
368
- b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
369
- const query = smithyClient.map({
370
- [_pT]: [, input[_NT]],
371
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
372
- [_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI].toString()],
373
- });
374
- let body;
375
- b.m("GET").h(headers).q(query).b(body);
376
- return b.build();
377
- };
378
- const se_PutSnapshotBlockCommand = async (input, context) => {
379
- const b = core.requestBuilder(input, context);
380
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
381
- "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
382
- "content-type": "application/octet-stream",
383
- [_xadl]: [() => smithyClient.isSerializableHeaderValue(input[_DL]), () => input[_DL].toString()],
384
- [_xap]: [() => smithyClient.isSerializableHeaderValue(input[_P]), () => input[_P].toString()],
385
- [_xac_]: input[_C],
386
- [_xaca]: input[_CA],
387
- });
388
- b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}");
389
- b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
390
- b.p("BlockIndex", () => input.BlockIndex.toString(), "{BlockIndex}", false);
391
- let body;
392
- if (input.BlockData !== undefined) {
393
- body = input.BlockData;
394
- }
395
- b.m("PUT").h(headers).b(body);
396
- return b.build();
397
- };
398
- const se_StartSnapshotCommand = async (input, context) => {
399
- const b = core.requestBuilder(input, context);
400
- const headers = {
401
- "content-type": "application/json",
402
- };
403
- b.bp("/snapshots");
404
- let body;
405
- body = JSON.stringify(smithyClient.take(input, {
406
- ClientToken: [true, (_) => _ ?? uuid.v4()],
407
- Description: [],
408
- Encrypted: [],
409
- KmsKeyArn: [],
410
- ParentSnapshotId: [],
411
- Tags: (_) => smithyClient._json(_),
412
- Timeout: [],
413
- VolumeSize: [],
414
- }));
415
- b.m("POST").h(headers).b(body);
416
- return b.build();
417
- };
418
- const de_CompleteSnapshotCommand = async (output, context) => {
419
- if (output.statusCode !== 202 && output.statusCode >= 300) {
420
- return de_CommandError(output, context);
421
- }
422
- const contents = smithyClient.map({
423
- $metadata: deserializeMetadata(output),
424
- });
425
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
426
- const doc = smithyClient.take(data, {
427
- Status: smithyClient.expectString,
428
- });
429
- Object.assign(contents, doc);
430
- return contents;
431
- };
432
- const de_GetSnapshotBlockCommand = async (output, context) => {
433
- if (output.statusCode !== 200 && output.statusCode >= 300) {
434
- return de_CommandError(output, context);
435
- }
436
- const contents = smithyClient.map({
437
- $metadata: deserializeMetadata(output),
438
- [_DL]: [() => void 0 !== output.headers[_xadl], () => smithyClient.strictParseInt32(output.headers[_xadl])],
439
- [_C]: [, output.headers[_xac_]],
440
- [_CA]: [, output.headers[_xaca]],
441
- });
442
- const data = output.body;
443
- context.sdkStreamMixin(data);
444
- contents.BlockData = data;
445
- return contents;
446
- };
447
- const de_ListChangedBlocksCommand = async (output, context) => {
448
- if (output.statusCode !== 200 && output.statusCode >= 300) {
449
- return de_CommandError(output, context);
450
- }
451
- const contents = smithyClient.map({
452
- $metadata: deserializeMetadata(output),
453
- });
454
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
455
- const doc = smithyClient.take(data, {
456
- BlockSize: smithyClient.expectInt32,
457
- ChangedBlocks: smithyClient._json,
458
- ExpiryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
459
- NextToken: smithyClient.expectString,
460
- VolumeSize: smithyClient.expectLong,
461
- });
462
- Object.assign(contents, doc);
463
- return contents;
464
- };
465
- const de_ListSnapshotBlocksCommand = async (output, context) => {
466
- if (output.statusCode !== 200 && output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const contents = smithyClient.map({
470
- $metadata: deserializeMetadata(output),
471
- });
472
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
473
- const doc = smithyClient.take(data, {
474
- BlockSize: smithyClient.expectInt32,
475
- Blocks: smithyClient._json,
476
- ExpiryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
477
- NextToken: smithyClient.expectString,
478
- VolumeSize: smithyClient.expectLong,
479
- });
480
- Object.assign(contents, doc);
481
- return contents;
482
- };
483
- const de_PutSnapshotBlockCommand = async (output, context) => {
484
- if (output.statusCode !== 201 && output.statusCode >= 300) {
485
- return de_CommandError(output, context);
486
- }
487
- const contents = smithyClient.map({
488
- $metadata: deserializeMetadata(output),
489
- [_C]: [, output.headers[_xac_]],
490
- [_CA]: [, output.headers[_xaca]],
491
- });
492
- await smithyClient.collectBody(output.body, context);
493
- return contents;
494
- };
495
- const de_StartSnapshotCommand = async (output, context) => {
496
- if (output.statusCode !== 201 && output.statusCode >= 300) {
497
- return de_CommandError(output, context);
498
- }
499
- const contents = smithyClient.map({
500
- $metadata: deserializeMetadata(output),
501
- });
502
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
503
- const doc = smithyClient.take(data, {
504
- BlockSize: smithyClient.expectInt32,
505
- Description: smithyClient.expectString,
506
- KmsKeyArn: smithyClient.expectString,
507
- OwnerId: smithyClient.expectString,
508
- ParentSnapshotId: smithyClient.expectString,
509
- SnapshotId: smithyClient.expectString,
510
- SseType: smithyClient.expectString,
511
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
512
- Status: smithyClient.expectString,
513
- Tags: smithyClient._json,
514
- VolumeSize: smithyClient.expectLong,
515
- });
516
- Object.assign(contents, doc);
517
- return contents;
518
- };
519
- const de_CommandError = async (output, context) => {
520
- const parsedOutput = {
521
- ...output,
522
- body: await core$1.parseJsonErrorBody(output.body, context),
523
- };
524
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
525
- switch (errorCode) {
526
- case "AccessDeniedException":
527
- case "com.amazonaws.ebs#AccessDeniedException":
528
- throw await de_AccessDeniedExceptionRes(parsedOutput);
529
- case "InternalServerException":
530
- case "com.amazonaws.ebs#InternalServerException":
531
- throw await de_InternalServerExceptionRes(parsedOutput);
532
- case "RequestThrottledException":
533
- case "com.amazonaws.ebs#RequestThrottledException":
534
- throw await de_RequestThrottledExceptionRes(parsedOutput);
535
- case "ResourceNotFoundException":
536
- case "com.amazonaws.ebs#ResourceNotFoundException":
537
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
538
- case "ServiceQuotaExceededException":
539
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
540
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
541
- case "ValidationException":
542
- case "com.amazonaws.ebs#ValidationException":
543
- throw await de_ValidationExceptionRes(parsedOutput);
544
- case "ConcurrentLimitExceededException":
545
- case "com.amazonaws.ebs#ConcurrentLimitExceededException":
546
- throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput);
547
- case "ConflictException":
548
- case "com.amazonaws.ebs#ConflictException":
549
- throw await de_ConflictExceptionRes(parsedOutput);
550
- default:
551
- const parsedBody = parsedOutput.body;
552
- return throwDefaultError({
553
- output,
554
- parsedBody,
555
- errorCode,
556
- });
557
- }
558
- };
559
- const throwDefaultError = smithyClient.withBaseException(EBSServiceException);
560
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
561
- const contents = smithyClient.map({});
562
- const data = parsedOutput.body;
563
- const doc = smithyClient.take(data, {
564
- Message: smithyClient.expectString,
565
- Reason: smithyClient.expectString,
566
- });
567
- Object.assign(contents, doc);
568
- const exception = new AccessDeniedException({
569
- $metadata: deserializeMetadata(parsedOutput),
570
- ...contents,
571
- });
572
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
573
- };
574
- const de_ConcurrentLimitExceededExceptionRes = async (parsedOutput, context) => {
575
- const contents = smithyClient.map({});
576
- const data = parsedOutput.body;
577
- const doc = smithyClient.take(data, {
578
- Message: smithyClient.expectString,
579
- });
580
- Object.assign(contents, doc);
581
- const exception = new ConcurrentLimitExceededException({
582
- $metadata: deserializeMetadata(parsedOutput),
583
- ...contents,
584
- });
585
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
586
- };
587
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
588
- const contents = smithyClient.map({});
589
- const data = parsedOutput.body;
590
- const doc = smithyClient.take(data, {
591
- Message: smithyClient.expectString,
592
- });
593
- Object.assign(contents, doc);
594
- const exception = new ConflictException({
595
- $metadata: deserializeMetadata(parsedOutput),
596
- ...contents,
597
- });
598
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
599
- };
600
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
601
- const contents = smithyClient.map({});
602
- const data = parsedOutput.body;
603
- const doc = smithyClient.take(data, {
604
- Message: smithyClient.expectString,
605
- });
606
- Object.assign(contents, doc);
607
- const exception = new InternalServerException({
608
- $metadata: deserializeMetadata(parsedOutput),
609
- ...contents,
610
- });
611
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
612
- };
613
- const de_RequestThrottledExceptionRes = async (parsedOutput, context) => {
614
- const contents = smithyClient.map({});
615
- const data = parsedOutput.body;
616
- const doc = smithyClient.take(data, {
617
- Message: smithyClient.expectString,
618
- Reason: smithyClient.expectString,
619
- });
620
- Object.assign(contents, doc);
621
- const exception = new RequestThrottledException({
622
- $metadata: deserializeMetadata(parsedOutput),
623
- ...contents,
624
- });
625
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
626
- };
627
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
628
- const contents = smithyClient.map({});
629
- const data = parsedOutput.body;
630
- const doc = smithyClient.take(data, {
631
- Message: smithyClient.expectString,
632
- Reason: smithyClient.expectString,
633
- });
634
- Object.assign(contents, doc);
635
- const exception = new ResourceNotFoundException({
636
- $metadata: deserializeMetadata(parsedOutput),
637
- ...contents,
638
- });
639
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
640
- };
641
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
642
- const contents = smithyClient.map({});
643
- const data = parsedOutput.body;
644
- const doc = smithyClient.take(data, {
645
- Message: smithyClient.expectString,
646
- Reason: smithyClient.expectString,
647
- });
648
- Object.assign(contents, doc);
649
- const exception = new ServiceQuotaExceededException({
650
- $metadata: deserializeMetadata(parsedOutput),
651
- ...contents,
652
- });
653
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
654
- };
655
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
656
- const contents = smithyClient.map({});
657
- const data = parsedOutput.body;
658
- const doc = smithyClient.take(data, {
659
- Message: smithyClient.expectString,
660
- Reason: smithyClient.expectString,
661
- });
662
- Object.assign(contents, doc);
663
- const exception = new ValidationException({
664
- $metadata: deserializeMetadata(parsedOutput),
665
- ...contents,
666
- });
667
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
668
- };
669
- const deserializeMetadata = (output) => ({
670
- httpStatusCode: output.statusCode,
671
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
672
- extendedRequestId: output.headers["x-amz-id-2"],
673
- cfId: output.headers["x-amz-cf-id"],
674
- });
294
+ const _ADE = "AccessDeniedException";
295
+ const _B = "Block";
296
+ const _BD = "BlockData";
297
+ const _BI = "BlockIndex";
298
+ const _BS = "BlockSize";
675
299
  const _BT = "BlockToken";
300
+ const _Bl = "Blocks";
676
301
  const _C = "Checksum";
677
302
  const _CA = "ChecksumAlgorithm";
678
303
  const _CAM = "ChecksumAggregationMethod";
304
+ const _CB = "ChangedBlock";
679
305
  const _CBC = "ChangedBlocksCount";
306
+ const _CBh = "ChangedBlocks";
307
+ const _CE = "ConflictException";
308
+ const _CLEE = "ConcurrentLimitExceededException";
309
+ const _CS = "CompleteSnapshot";
310
+ const _CSR = "CompleteSnapshotRequest";
311
+ const _CSRo = "CompleteSnapshotResponse";
312
+ const _CT = "ClientToken";
313
+ const _D = "Description";
680
314
  const _DL = "DataLength";
315
+ const _E = "Encrypted";
316
+ const _ET = "ExpiryTime";
317
+ const _FBT = "FirstBlockToken";
681
318
  const _FSI = "FirstSnapshotId";
319
+ const _GSB = "GetSnapshotBlock";
320
+ const _GSBR = "GetSnapshotBlockRequest";
321
+ const _GSBRe = "GetSnapshotBlockResponse";
322
+ const _ISE = "InternalServerException";
323
+ const _K = "Key";
324
+ const _KKA = "KmsKeyArn";
325
+ const _LCB = "ListChangedBlocks";
326
+ const _LCBR = "ListChangedBlocksRequest";
327
+ const _LCBRi = "ListChangedBlocksResponse";
328
+ const _LSB = "ListSnapshotBlocks";
329
+ const _LSBR = "ListSnapshotBlocksRequest";
330
+ const _LSBRi = "ListSnapshotBlocksResponse";
331
+ const _M = "Message";
682
332
  const _MR = "MaxResults";
683
333
  const _NT = "NextToken";
334
+ const _OI = "OwnerId";
684
335
  const _P = "Progress";
336
+ const _PSB = "PutSnapshotBlock";
337
+ const _PSBR = "PutSnapshotBlockRequest";
338
+ const _PSBRu = "PutSnapshotBlockResponse";
339
+ const _PSI = "ParentSnapshotId";
340
+ const _R = "Reason";
341
+ const _RNFE = "ResourceNotFoundException";
342
+ const _RTE = "RequestThrottledException";
343
+ const _S = "Status";
685
344
  const _SBI = "StartingBlockIndex";
345
+ const _SBT = "SecondBlockToken";
346
+ const _SI = "SnapshotId";
347
+ const _SQEE = "ServiceQuotaExceededException";
348
+ const _SS = "StartSnapshot";
349
+ const _SSI = "SecondSnapshotId";
350
+ const _SSR = "StartSnapshotRequest";
351
+ const _SSRt = "StartSnapshotResponse";
352
+ const _ST = "StartTime";
353
+ const _STs = "SseType";
354
+ const _T = "Tags";
355
+ const _Ta = "Tag";
356
+ const _Ti = "Timeout";
357
+ const _V = "Value";
358
+ const _VE = "ValidationException";
359
+ const _VS = "VolumeSize";
686
360
  const _bT = "blockToken";
361
+ const _c = "client";
362
+ const _e = "error";
687
363
  const _fSI = "firstSnapshotId";
364
+ const _h = "http";
365
+ const _hE = "httpError";
366
+ const _hH = "httpHeader";
367
+ const _hQ = "httpQuery";
688
368
  const _mR = "maxResults";
689
369
  const _pT = "pageToken";
370
+ const _s = "streaming";
690
371
  const _sBI = "startingBlockIndex";
691
- const _xac = "x-amz-changedblockscount";
692
- const _xac_ = "x-amz-checksum";
693
- const _xaca = "x-amz-checksum-algorithm";
694
- const _xacam = "x-amz-checksum-aggregation-method";
695
- const _xadl = "x-amz-data-length";
696
- const _xap = "x-amz-progress";
372
+ const _se = "sensitive";
373
+ const _ser = "server";
374
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ebs";
375
+ const _xaC = "x-amz-ChangedBlocksCount";
376
+ const _xaCA = "x-amz-Checksum-Algorithm";
377
+ const _xaCAM = "x-amz-Checksum-Aggregation-Method";
378
+ const _xaC_ = "x-amz-Checksum";
379
+ const _xaDL = "x-amz-Data-Length";
380
+ const _xaP = "x-amz-Progress";
381
+ const n0 = "com.amazonaws.ebs";
382
+ var BlockData = [
383
+ 0,
384
+ n0,
385
+ _BD,
386
+ {
387
+ [_s]: 1,
388
+ [_se]: 1,
389
+ },
390
+ 42,
391
+ ];
392
+ var KmsKeyArn = [0, n0, _KKA, 8, 0];
393
+ var AccessDeniedException = [
394
+ -3,
395
+ n0,
396
+ _ADE,
397
+ {
398
+ [_e]: _c,
399
+ [_hE]: 403,
400
+ },
401
+ [_M, _R],
402
+ [0, 0],
403
+ ];
404
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
405
+ var Block = [3, n0, _B, 0, [_BI, _BT], [1, 0]];
406
+ var ChangedBlock = [3, n0, _CB, 8, [_BI, _FBT, _SBT], [1, 0, 0]];
407
+ var CompleteSnapshotRequest = [
408
+ 3,
409
+ n0,
410
+ _CSR,
411
+ 0,
412
+ [_SI, _CBC, _C, _CA, _CAM],
413
+ [
414
+ [0, 1],
415
+ [
416
+ 1,
417
+ {
418
+ [_hH]: _xaC,
419
+ },
420
+ ],
421
+ [
422
+ 0,
423
+ {
424
+ [_hH]: _xaC_,
425
+ },
426
+ ],
427
+ [
428
+ 0,
429
+ {
430
+ [_hH]: _xaCA,
431
+ },
432
+ ],
433
+ [
434
+ 0,
435
+ {
436
+ [_hH]: _xaCAM,
437
+ },
438
+ ],
439
+ ],
440
+ ];
441
+ var CompleteSnapshotResponse = [3, n0, _CSRo, 0, [_S], [0]];
442
+ var ConcurrentLimitExceededException = [
443
+ -3,
444
+ n0,
445
+ _CLEE,
446
+ {
447
+ [_e]: _c,
448
+ [_hE]: 400,
449
+ },
450
+ [_M],
451
+ [0],
452
+ ];
453
+ schema.TypeRegistry.for(n0).registerError(ConcurrentLimitExceededException, ConcurrentLimitExceededException$1);
454
+ var ConflictException = [
455
+ -3,
456
+ n0,
457
+ _CE,
458
+ {
459
+ [_e]: _c,
460
+ [_hE]: 409,
461
+ },
462
+ [_M],
463
+ [0],
464
+ ];
465
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
466
+ var GetSnapshotBlockRequest = [
467
+ 3,
468
+ n0,
469
+ _GSBR,
470
+ 0,
471
+ [_SI, _BI, _BT],
472
+ [
473
+ [0, 1],
474
+ [1, 1],
475
+ [
476
+ 0,
477
+ {
478
+ [_hQ]: _bT,
479
+ },
480
+ ],
481
+ ],
482
+ ];
483
+ var GetSnapshotBlockResponse = [
484
+ 3,
485
+ n0,
486
+ _GSBRe,
487
+ 0,
488
+ [_DL, _BD, _C, _CA],
489
+ [
490
+ [
491
+ 1,
492
+ {
493
+ [_hH]: _xaDL,
494
+ },
495
+ ],
496
+ [() => BlockData, 16],
497
+ [
498
+ 0,
499
+ {
500
+ [_hH]: _xaC_,
501
+ },
502
+ ],
503
+ [
504
+ 0,
505
+ {
506
+ [_hH]: _xaCA,
507
+ },
508
+ ],
509
+ ],
510
+ ];
511
+ var InternalServerException = [
512
+ -3,
513
+ n0,
514
+ _ISE,
515
+ {
516
+ [_e]: _ser,
517
+ [_hE]: 500,
518
+ },
519
+ [_M],
520
+ [0],
521
+ ];
522
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
523
+ var ListChangedBlocksRequest = [
524
+ 3,
525
+ n0,
526
+ _LCBR,
527
+ 0,
528
+ [_FSI, _SSI, _NT, _MR, _SBI],
529
+ [
530
+ [
531
+ 0,
532
+ {
533
+ [_hQ]: _fSI,
534
+ },
535
+ ],
536
+ [0, 1],
537
+ [
538
+ 0,
539
+ {
540
+ [_hQ]: _pT,
541
+ },
542
+ ],
543
+ [
544
+ 1,
545
+ {
546
+ [_hQ]: _mR,
547
+ },
548
+ ],
549
+ [
550
+ 1,
551
+ {
552
+ [_hQ]: _sBI,
553
+ },
554
+ ],
555
+ ],
556
+ ];
557
+ var ListChangedBlocksResponse = [
558
+ 3,
559
+ n0,
560
+ _LCBRi,
561
+ 0,
562
+ [_CBh, _ET, _VS, _BS, _NT],
563
+ [[() => ChangedBlocks, 0], 4, 1, 1, 0],
564
+ ];
565
+ var ListSnapshotBlocksRequest = [
566
+ 3,
567
+ n0,
568
+ _LSBR,
569
+ 0,
570
+ [_SI, _NT, _MR, _SBI],
571
+ [
572
+ [0, 1],
573
+ [
574
+ 0,
575
+ {
576
+ [_hQ]: _pT,
577
+ },
578
+ ],
579
+ [
580
+ 1,
581
+ {
582
+ [_hQ]: _mR,
583
+ },
584
+ ],
585
+ [
586
+ 1,
587
+ {
588
+ [_hQ]: _sBI,
589
+ },
590
+ ],
591
+ ],
592
+ ];
593
+ var ListSnapshotBlocksResponse = [
594
+ 3,
595
+ n0,
596
+ _LSBRi,
597
+ 0,
598
+ [_Bl, _ET, _VS, _BS, _NT],
599
+ [[() => Blocks, 0], 4, 1, 1, 0],
600
+ ];
601
+ var PutSnapshotBlockRequest = [
602
+ 3,
603
+ n0,
604
+ _PSBR,
605
+ 0,
606
+ [_SI, _BI, _BD, _DL, _P, _C, _CA],
607
+ [
608
+ [0, 1],
609
+ [1, 1],
610
+ [() => BlockData, 16],
611
+ [
612
+ 1,
613
+ {
614
+ [_hH]: _xaDL,
615
+ },
616
+ ],
617
+ [
618
+ 1,
619
+ {
620
+ [_hH]: _xaP,
621
+ },
622
+ ],
623
+ [
624
+ 0,
625
+ {
626
+ [_hH]: _xaC_,
627
+ },
628
+ ],
629
+ [
630
+ 0,
631
+ {
632
+ [_hH]: _xaCA,
633
+ },
634
+ ],
635
+ ],
636
+ ];
637
+ var PutSnapshotBlockResponse = [
638
+ 3,
639
+ n0,
640
+ _PSBRu,
641
+ 0,
642
+ [_C, _CA],
643
+ [
644
+ [
645
+ 0,
646
+ {
647
+ [_hH]: _xaC_,
648
+ },
649
+ ],
650
+ [
651
+ 0,
652
+ {
653
+ [_hH]: _xaCA,
654
+ },
655
+ ],
656
+ ],
657
+ ];
658
+ var RequestThrottledException = [
659
+ -3,
660
+ n0,
661
+ _RTE,
662
+ {
663
+ [_e]: _c,
664
+ [_hE]: 400,
665
+ },
666
+ [_M, _R],
667
+ [0, 0],
668
+ ];
669
+ schema.TypeRegistry.for(n0).registerError(RequestThrottledException, RequestThrottledException$1);
670
+ var ResourceNotFoundException = [
671
+ -3,
672
+ n0,
673
+ _RNFE,
674
+ {
675
+ [_e]: _c,
676
+ [_hE]: 404,
677
+ },
678
+ [_M, _R],
679
+ [0, 0],
680
+ ];
681
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
682
+ var ServiceQuotaExceededException = [
683
+ -3,
684
+ n0,
685
+ _SQEE,
686
+ {
687
+ [_e]: _c,
688
+ [_hE]: 402,
689
+ },
690
+ [_M, _R],
691
+ [0, 0],
692
+ ];
693
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
694
+ var StartSnapshotRequest = [
695
+ 3,
696
+ n0,
697
+ _SSR,
698
+ 0,
699
+ [_VS, _PSI, _T, _D, _CT, _E, _KKA, _Ti],
700
+ [1, 0, () => Tags, 0, [0, 4], 2, [() => KmsKeyArn, 0], 1],
701
+ ];
702
+ var StartSnapshotResponse = [
703
+ 3,
704
+ n0,
705
+ _SSRt,
706
+ 0,
707
+ [_D, _SI, _OI, _S, _ST, _VS, _BS, _T, _PSI, _KKA, _STs],
708
+ [0, 0, 0, 0, 4, 1, 1, () => Tags, 0, [() => KmsKeyArn, 0], 0],
709
+ ];
710
+ var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]];
711
+ var ValidationException = [
712
+ -3,
713
+ n0,
714
+ _VE,
715
+ {
716
+ [_e]: _c,
717
+ [_hE]: 400,
718
+ },
719
+ [_M, _R],
720
+ [0, 0],
721
+ ];
722
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
723
+ var EBSServiceException = [-3, _sm, "EBSServiceException", 0, [], []];
724
+ schema.TypeRegistry.for(_sm).registerError(EBSServiceException, EBSServiceException$1);
725
+ var Blocks = [1, n0, _Bl, 8, () => Block];
726
+ var ChangedBlocks = [1, n0, _CBh, 0, [() => ChangedBlock, 0]];
727
+ var Tags = [1, n0, _T, 0, () => Tag];
728
+ var CompleteSnapshot = [
729
+ 9,
730
+ n0,
731
+ _CS,
732
+ {
733
+ [_h]: ["POST", "/snapshots/completion/{SnapshotId}", 202],
734
+ },
735
+ () => CompleteSnapshotRequest,
736
+ () => CompleteSnapshotResponse,
737
+ ];
738
+ var GetSnapshotBlock = [
739
+ 9,
740
+ n0,
741
+ _GSB,
742
+ {
743
+ [_h]: ["GET", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 200],
744
+ },
745
+ () => GetSnapshotBlockRequest,
746
+ () => GetSnapshotBlockResponse,
747
+ ];
748
+ var ListChangedBlocks = [
749
+ 9,
750
+ n0,
751
+ _LCB,
752
+ {
753
+ [_h]: ["GET", "/snapshots/{SecondSnapshotId}/changedblocks", 200],
754
+ },
755
+ () => ListChangedBlocksRequest,
756
+ () => ListChangedBlocksResponse,
757
+ ];
758
+ var ListSnapshotBlocks = [
759
+ 9,
760
+ n0,
761
+ _LSB,
762
+ {
763
+ [_h]: ["GET", "/snapshots/{SnapshotId}/blocks", 200],
764
+ },
765
+ () => ListSnapshotBlocksRequest,
766
+ () => ListSnapshotBlocksResponse,
767
+ ];
768
+ var PutSnapshotBlock = [
769
+ 9,
770
+ n0,
771
+ _PSB,
772
+ {
773
+ [_h]: ["PUT", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 201],
774
+ },
775
+ () => PutSnapshotBlockRequest,
776
+ () => PutSnapshotBlockResponse,
777
+ ];
778
+ var StartSnapshot = [
779
+ 9,
780
+ n0,
781
+ _SS,
782
+ {
783
+ [_h]: ["POST", "/snapshots", 201],
784
+ },
785
+ () => StartSnapshotRequest,
786
+ () => StartSnapshotResponse,
787
+ ];
697
788
 
698
789
  class CompleteSnapshotCommand extends smithyClient.Command
699
790
  .classBuilder()
700
791
  .ep(commonParams)
701
792
  .m(function (Command, cs, config, o) {
702
- return [
703
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
704
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
705
- ];
793
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
706
794
  })
707
795
  .s("Ebs", "CompleteSnapshot", {})
708
796
  .n("EBSClient", "CompleteSnapshotCommand")
709
- .f(void 0, void 0)
710
- .ser(se_CompleteSnapshotCommand)
711
- .de(de_CompleteSnapshotCommand)
797
+ .sc(CompleteSnapshot)
712
798
  .build() {
713
799
  }
714
800
 
@@ -716,16 +802,11 @@ class GetSnapshotBlockCommand extends smithyClient.Command
716
802
  .classBuilder()
717
803
  .ep(commonParams)
718
804
  .m(function (Command, cs, config, o) {
719
- return [
720
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
721
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
722
- ];
805
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
723
806
  })
724
807
  .s("Ebs", "GetSnapshotBlock", {})
725
808
  .n("EBSClient", "GetSnapshotBlockCommand")
726
- .f(void 0, GetSnapshotBlockResponseFilterSensitiveLog)
727
- .ser(se_GetSnapshotBlockCommand)
728
- .de(de_GetSnapshotBlockCommand)
809
+ .sc(GetSnapshotBlock)
729
810
  .build() {
730
811
  }
731
812
 
@@ -733,16 +814,11 @@ class ListChangedBlocksCommand extends smithyClient.Command
733
814
  .classBuilder()
734
815
  .ep(commonParams)
735
816
  .m(function (Command, cs, config, o) {
736
- return [
737
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
738
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
739
- ];
817
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
740
818
  })
741
819
  .s("Ebs", "ListChangedBlocks", {})
742
820
  .n("EBSClient", "ListChangedBlocksCommand")
743
- .f(void 0, ListChangedBlocksResponseFilterSensitiveLog)
744
- .ser(se_ListChangedBlocksCommand)
745
- .de(de_ListChangedBlocksCommand)
821
+ .sc(ListChangedBlocks)
746
822
  .build() {
747
823
  }
748
824
 
@@ -750,16 +826,11 @@ class ListSnapshotBlocksCommand extends smithyClient.Command
750
826
  .classBuilder()
751
827
  .ep(commonParams)
752
828
  .m(function (Command, cs, config, o) {
753
- return [
754
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
755
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
756
- ];
829
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
757
830
  })
758
831
  .s("Ebs", "ListSnapshotBlocks", {})
759
832
  .n("EBSClient", "ListSnapshotBlocksCommand")
760
- .f(void 0, ListSnapshotBlocksResponseFilterSensitiveLog)
761
- .ser(se_ListSnapshotBlocksCommand)
762
- .de(de_ListSnapshotBlocksCommand)
833
+ .sc(ListSnapshotBlocks)
763
834
  .build() {
764
835
  }
765
836
 
@@ -767,16 +838,11 @@ class PutSnapshotBlockCommand extends smithyClient.Command
767
838
  .classBuilder()
768
839
  .ep(commonParams)
769
840
  .m(function (Command, cs, config, o) {
770
- return [
771
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
772
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
773
- ];
841
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
774
842
  })
775
843
  .s("Ebs", "PutSnapshotBlock", {})
776
844
  .n("EBSClient", "PutSnapshotBlockCommand")
777
- .f(PutSnapshotBlockRequestFilterSensitiveLog, void 0)
778
- .ser(se_PutSnapshotBlockCommand)
779
- .de(de_PutSnapshotBlockCommand)
845
+ .sc(PutSnapshotBlock)
780
846
  .build() {
781
847
  }
782
848
 
@@ -784,16 +850,11 @@ class StartSnapshotCommand extends smithyClient.Command
784
850
  .classBuilder()
785
851
  .ep(commonParams)
786
852
  .m(function (Command, cs, config, o) {
787
- return [
788
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
789
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
790
- ];
853
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
791
854
  })
792
855
  .s("Ebs", "StartSnapshot", {})
793
856
  .n("EBSClient", "StartSnapshotCommand")
794
- .f(StartSnapshotRequestFilterSensitiveLog, StartSnapshotResponseFilterSensitiveLog)
795
- .ser(se_StartSnapshotCommand)
796
- .de(de_StartSnapshotCommand)
857
+ .sc(StartSnapshot)
797
858
  .build() {
798
859
  }
799
860
 
@@ -821,38 +882,31 @@ Object.defineProperty(exports, "__Client", {
821
882
  enumerable: true,
822
883
  get: function () { return smithyClient.Client; }
823
884
  });
824
- exports.AccessDeniedException = AccessDeniedException;
885
+ exports.AccessDeniedException = AccessDeniedException$1;
825
886
  exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
826
- exports.ChangedBlockFilterSensitiveLog = ChangedBlockFilterSensitiveLog;
827
887
  exports.ChecksumAggregationMethod = ChecksumAggregationMethod;
828
888
  exports.ChecksumAlgorithm = ChecksumAlgorithm;
829
889
  exports.CompleteSnapshotCommand = CompleteSnapshotCommand;
830
- exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException;
831
- exports.ConflictException = ConflictException;
890
+ exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException$1;
891
+ exports.ConflictException = ConflictException$1;
832
892
  exports.EBS = EBS;
833
893
  exports.EBSClient = EBSClient;
834
- exports.EBSServiceException = EBSServiceException;
894
+ exports.EBSServiceException = EBSServiceException$1;
835
895
  exports.GetSnapshotBlockCommand = GetSnapshotBlockCommand;
836
- exports.GetSnapshotBlockResponseFilterSensitiveLog = GetSnapshotBlockResponseFilterSensitiveLog;
837
- exports.InternalServerException = InternalServerException;
896
+ exports.InternalServerException = InternalServerException$1;
838
897
  exports.ListChangedBlocksCommand = ListChangedBlocksCommand;
839
- exports.ListChangedBlocksResponseFilterSensitiveLog = ListChangedBlocksResponseFilterSensitiveLog;
840
898
  exports.ListSnapshotBlocksCommand = ListSnapshotBlocksCommand;
841
- exports.ListSnapshotBlocksResponseFilterSensitiveLog = ListSnapshotBlocksResponseFilterSensitiveLog;
842
899
  exports.PutSnapshotBlockCommand = PutSnapshotBlockCommand;
843
- exports.PutSnapshotBlockRequestFilterSensitiveLog = PutSnapshotBlockRequestFilterSensitiveLog;
844
- exports.RequestThrottledException = RequestThrottledException;
900
+ exports.RequestThrottledException = RequestThrottledException$1;
845
901
  exports.RequestThrottledExceptionReason = RequestThrottledExceptionReason;
846
- exports.ResourceNotFoundException = ResourceNotFoundException;
902
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
847
903
  exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
848
904
  exports.SSEType = SSEType;
849
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
905
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
850
906
  exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
851
907
  exports.StartSnapshotCommand = StartSnapshotCommand;
852
- exports.StartSnapshotRequestFilterSensitiveLog = StartSnapshotRequestFilterSensitiveLog;
853
- exports.StartSnapshotResponseFilterSensitiveLog = StartSnapshotResponseFilterSensitiveLog;
854
908
  exports.Status = Status;
855
- exports.ValidationException = ValidationException;
909
+ exports.ValidationException = ValidationException$1;
856
910
  exports.ValidationExceptionReason = ValidationExceptionReason;
857
911
  exports.paginateListChangedBlocks = paginateListChangedBlocks;
858
912
  exports.paginateListSnapshotBlocks = paginateListSnapshotBlocks;