@aws-sdk/client-ebs 3.53.0 → 3.55.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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ebs
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-ebs
17
+
18
+
19
+
20
+
21
+
22
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-ebs
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
31
 
8
32
 
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class EBSClient extends smithy_client_1.Client {
14
14
  constructor(configuration) {
15
- const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
- const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
- const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
- const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
- const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
- const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
- const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
16
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
17
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
18
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
19
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
20
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
21
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
22
22
  super(_config_6);
23
23
  this.config = _config_6;
24
- this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
- this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
- this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
- this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
- this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
24
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
30
  }
31
31
  destroy() {
32
32
  super.destroy();
@@ -11,7 +11,7 @@ class CompleteSnapshotCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class CompleteSnapshotCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1CompleteSnapshotCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CompleteSnapshotCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1CompleteSnapshotCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CompleteSnapshotCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.CompleteSnapshotCommand = CompleteSnapshotCommand;
@@ -11,7 +11,7 @@ class GetSnapshotBlockCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class GetSnapshotBlockCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1GetSnapshotBlockCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetSnapshotBlockCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1GetSnapshotBlockCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetSnapshotBlockCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetSnapshotBlockCommand = GetSnapshotBlockCommand;
@@ -11,7 +11,7 @@ class ListChangedBlocksCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class ListChangedBlocksCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1ListChangedBlocksCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListChangedBlocksCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListChangedBlocksCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListChangedBlocksCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListChangedBlocksCommand = ListChangedBlocksCommand;
@@ -11,7 +11,7 @@ class ListSnapshotBlocksCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class ListSnapshotBlocksCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1ListSnapshotBlocksCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListSnapshotBlocksCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListSnapshotBlocksCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListSnapshotBlocksCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListSnapshotBlocksCommand = ListSnapshotBlocksCommand;
@@ -11,7 +11,7 @@ class PutSnapshotBlockCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class PutSnapshotBlockCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1PutSnapshotBlockCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1PutSnapshotBlockCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1PutSnapshotBlockCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1PutSnapshotBlockCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.PutSnapshotBlockCommand = PutSnapshotBlockCommand;
@@ -11,7 +11,7 @@ class StartSnapshotCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "EBSClient";
@@ -27,10 +27,10 @@ class StartSnapshotCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1StartSnapshotCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartSnapshotCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1StartSnapshotCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartSnapshotCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.StartSnapshotCommand = StartSnapshotCommand;
@@ -168,7 +168,7 @@ const partitionHash = {
168
168
  ],
169
169
  },
170
170
  };
171
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
171
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
172
172
  ...options,
173
173
  signingService: "ebs",
174
174
  regionHash,
@@ -24,7 +24,7 @@ const serializeAws_restJson1CompleteSnapshotCommand = async (input, context) =>
24
24
  if (labelValue.length <= 0) {
25
25
  throw new Error("Empty value provided for input HTTP label: SnapshotId.");
26
26
  }
27
- resolvedPath = resolvedPath.replace("{SnapshotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
27
+ resolvedPath = resolvedPath.replace("{SnapshotId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
28
28
  }
29
29
  else {
30
30
  throw new Error("No value provided for input HTTP label: SnapshotId.");
@@ -51,7 +51,7 @@ const serializeAws_restJson1GetSnapshotBlockCommand = async (input, context) =>
51
51
  if (labelValue.length <= 0) {
52
52
  throw new Error("Empty value provided for input HTTP label: SnapshotId.");
53
53
  }
54
- resolvedPath = resolvedPath.replace("{SnapshotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
54
+ resolvedPath = resolvedPath.replace("{SnapshotId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
55
55
  }
56
56
  else {
57
57
  throw new Error("No value provided for input HTTP label: SnapshotId.");
@@ -61,7 +61,7 @@ const serializeAws_restJson1GetSnapshotBlockCommand = async (input, context) =>
61
61
  if (labelValue.length <= 0) {
62
62
  throw new Error("Empty value provided for input HTTP label: BlockIndex.");
63
63
  }
64
- resolvedPath = resolvedPath.replace("{BlockIndex}", smithy_client_1.extendedEncodeURIComponent(labelValue));
64
+ resolvedPath = resolvedPath.replace("{BlockIndex}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
65
65
  }
66
66
  else {
67
67
  throw new Error("No value provided for input HTTP label: BlockIndex.");
@@ -92,7 +92,7 @@ const serializeAws_restJson1ListChangedBlocksCommand = async (input, context) =>
92
92
  if (labelValue.length <= 0) {
93
93
  throw new Error("Empty value provided for input HTTP label: SecondSnapshotId.");
94
94
  }
95
- resolvedPath = resolvedPath.replace("{SecondSnapshotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
95
+ resolvedPath = resolvedPath.replace("{SecondSnapshotId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
96
96
  }
97
97
  else {
98
98
  throw new Error("No value provided for input HTTP label: SecondSnapshotId.");
@@ -125,7 +125,7 @@ const serializeAws_restJson1ListSnapshotBlocksCommand = async (input, context) =
125
125
  if (labelValue.length <= 0) {
126
126
  throw new Error("Empty value provided for input HTTP label: SnapshotId.");
127
127
  }
128
- resolvedPath = resolvedPath.replace("{SnapshotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
128
+ resolvedPath = resolvedPath.replace("{SnapshotId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
129
129
  }
130
130
  else {
131
131
  throw new Error("No value provided for input HTTP label: SnapshotId.");
@@ -165,7 +165,7 @@ const serializeAws_restJson1PutSnapshotBlockCommand = async (input, context) =>
165
165
  if (labelValue.length <= 0) {
166
166
  throw new Error("Empty value provided for input HTTP label: SnapshotId.");
167
167
  }
168
- resolvedPath = resolvedPath.replace("{SnapshotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
168
+ resolvedPath = resolvedPath.replace("{SnapshotId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
169
169
  }
170
170
  else {
171
171
  throw new Error("No value provided for input HTTP label: SnapshotId.");
@@ -175,7 +175,7 @@ const serializeAws_restJson1PutSnapshotBlockCommand = async (input, context) =>
175
175
  if (labelValue.length <= 0) {
176
176
  throw new Error("Empty value provided for input HTTP label: BlockIndex.");
177
177
  }
178
- resolvedPath = resolvedPath.replace("{BlockIndex}", smithy_client_1.extendedEncodeURIComponent(labelValue));
178
+ resolvedPath = resolvedPath.replace("{BlockIndex}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
179
179
  }
180
180
  else {
181
181
  throw new Error("No value provided for input HTTP label: BlockIndex.");
@@ -204,7 +204,7 @@ const serializeAws_restJson1StartSnapshotCommand = async (input, context) => {
204
204
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots";
205
205
  let body;
206
206
  body = JSON.stringify({
207
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
207
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
208
208
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
209
209
  ...(input.Encrypted !== undefined && input.Encrypted !== null && { Encrypted: input.Encrypted }),
210
210
  ...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
@@ -233,9 +233,9 @@ const deserializeAws_restJson1CompleteSnapshotCommand = async (output, context)
233
233
  $metadata: deserializeMetadata(output),
234
234
  Status: undefined,
235
235
  };
236
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
236
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
237
237
  if (data.Status !== undefined && data.Status !== null) {
238
- contents.Status = smithy_client_1.expectString(data.Status);
238
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
239
239
  }
240
240
  return Promise.resolve(contents);
241
241
  };
@@ -274,7 +274,7 @@ const deserializeAws_restJson1CompleteSnapshotCommandError = async (output, cont
274
274
  $fault: "client",
275
275
  $metadata: deserializeMetadata(output),
276
276
  });
277
- throw smithy_client_1.decorateServiceException(response, parsedBody);
277
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
278
278
  }
279
279
  };
280
280
  const deserializeAws_restJson1GetSnapshotBlockCommand = async (output, context) => {
@@ -289,7 +289,7 @@ const deserializeAws_restJson1GetSnapshotBlockCommand = async (output, context)
289
289
  DataLength: undefined,
290
290
  };
291
291
  if (output.headers["x-amz-data-length"] !== undefined) {
292
- contents.DataLength = smithy_client_1.strictParseInt32(output.headers["x-amz-data-length"]);
292
+ contents.DataLength = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-data-length"]);
293
293
  }
294
294
  if (output.headers["x-amz-checksum"] !== undefined) {
295
295
  contents.Checksum = output.headers["x-amz-checksum"];
@@ -336,7 +336,7 @@ const deserializeAws_restJson1GetSnapshotBlockCommandError = async (output, cont
336
336
  $fault: "client",
337
337
  $metadata: deserializeMetadata(output),
338
338
  });
339
- throw smithy_client_1.decorateServiceException(response, parsedBody);
339
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
340
340
  }
341
341
  };
342
342
  const deserializeAws_restJson1ListChangedBlocksCommand = async (output, context) => {
@@ -351,21 +351,21 @@ const deserializeAws_restJson1ListChangedBlocksCommand = async (output, context)
351
351
  NextToken: undefined,
352
352
  VolumeSize: undefined,
353
353
  };
354
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
354
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
355
355
  if (data.BlockSize !== undefined && data.BlockSize !== null) {
356
- contents.BlockSize = smithy_client_1.expectInt32(data.BlockSize);
356
+ contents.BlockSize = (0, smithy_client_1.expectInt32)(data.BlockSize);
357
357
  }
358
358
  if (data.ChangedBlocks !== undefined && data.ChangedBlocks !== null) {
359
359
  contents.ChangedBlocks = deserializeAws_restJson1ChangedBlocks(data.ChangedBlocks, context);
360
360
  }
361
361
  if (data.ExpiryTime !== undefined && data.ExpiryTime !== null) {
362
- contents.ExpiryTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.ExpiryTime)));
362
+ contents.ExpiryTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.ExpiryTime)));
363
363
  }
364
364
  if (data.NextToken !== undefined && data.NextToken !== null) {
365
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
365
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
366
366
  }
367
367
  if (data.VolumeSize !== undefined && data.VolumeSize !== null) {
368
- contents.VolumeSize = smithy_client_1.expectLong(data.VolumeSize);
368
+ contents.VolumeSize = (0, smithy_client_1.expectLong)(data.VolumeSize);
369
369
  }
370
370
  return Promise.resolve(contents);
371
371
  };
@@ -404,7 +404,7 @@ const deserializeAws_restJson1ListChangedBlocksCommandError = async (output, con
404
404
  $fault: "client",
405
405
  $metadata: deserializeMetadata(output),
406
406
  });
407
- throw smithy_client_1.decorateServiceException(response, parsedBody);
407
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
408
408
  }
409
409
  };
410
410
  const deserializeAws_restJson1ListSnapshotBlocksCommand = async (output, context) => {
@@ -419,21 +419,21 @@ const deserializeAws_restJson1ListSnapshotBlocksCommand = async (output, context
419
419
  NextToken: undefined,
420
420
  VolumeSize: undefined,
421
421
  };
422
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
422
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
423
423
  if (data.BlockSize !== undefined && data.BlockSize !== null) {
424
- contents.BlockSize = smithy_client_1.expectInt32(data.BlockSize);
424
+ contents.BlockSize = (0, smithy_client_1.expectInt32)(data.BlockSize);
425
425
  }
426
426
  if (data.Blocks !== undefined && data.Blocks !== null) {
427
427
  contents.Blocks = deserializeAws_restJson1Blocks(data.Blocks, context);
428
428
  }
429
429
  if (data.ExpiryTime !== undefined && data.ExpiryTime !== null) {
430
- contents.ExpiryTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.ExpiryTime)));
430
+ contents.ExpiryTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.ExpiryTime)));
431
431
  }
432
432
  if (data.NextToken !== undefined && data.NextToken !== null) {
433
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
433
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
434
434
  }
435
435
  if (data.VolumeSize !== undefined && data.VolumeSize !== null) {
436
- contents.VolumeSize = smithy_client_1.expectLong(data.VolumeSize);
436
+ contents.VolumeSize = (0, smithy_client_1.expectLong)(data.VolumeSize);
437
437
  }
438
438
  return Promise.resolve(contents);
439
439
  };
@@ -472,7 +472,7 @@ const deserializeAws_restJson1ListSnapshotBlocksCommandError = async (output, co
472
472
  $fault: "client",
473
473
  $metadata: deserializeMetadata(output),
474
474
  });
475
- throw smithy_client_1.decorateServiceException(response, parsedBody);
475
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
476
476
  }
477
477
  };
478
478
  const deserializeAws_restJson1PutSnapshotBlockCommand = async (output, context) => {
@@ -528,7 +528,7 @@ const deserializeAws_restJson1PutSnapshotBlockCommandError = async (output, cont
528
528
  $fault: "client",
529
529
  $metadata: deserializeMetadata(output),
530
530
  });
531
- throw smithy_client_1.decorateServiceException(response, parsedBody);
531
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
532
532
  }
533
533
  };
534
534
  const deserializeAws_restJson1StartSnapshotCommand = async (output, context) => {
@@ -548,36 +548,36 @@ const deserializeAws_restJson1StartSnapshotCommand = async (output, context) =>
548
548
  Tags: undefined,
549
549
  VolumeSize: undefined,
550
550
  };
551
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
551
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
552
552
  if (data.BlockSize !== undefined && data.BlockSize !== null) {
553
- contents.BlockSize = smithy_client_1.expectInt32(data.BlockSize);
553
+ contents.BlockSize = (0, smithy_client_1.expectInt32)(data.BlockSize);
554
554
  }
555
555
  if (data.Description !== undefined && data.Description !== null) {
556
- contents.Description = smithy_client_1.expectString(data.Description);
556
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
557
557
  }
558
558
  if (data.KmsKeyArn !== undefined && data.KmsKeyArn !== null) {
559
- contents.KmsKeyArn = smithy_client_1.expectString(data.KmsKeyArn);
559
+ contents.KmsKeyArn = (0, smithy_client_1.expectString)(data.KmsKeyArn);
560
560
  }
561
561
  if (data.OwnerId !== undefined && data.OwnerId !== null) {
562
- contents.OwnerId = smithy_client_1.expectString(data.OwnerId);
562
+ contents.OwnerId = (0, smithy_client_1.expectString)(data.OwnerId);
563
563
  }
564
564
  if (data.ParentSnapshotId !== undefined && data.ParentSnapshotId !== null) {
565
- contents.ParentSnapshotId = smithy_client_1.expectString(data.ParentSnapshotId);
565
+ contents.ParentSnapshotId = (0, smithy_client_1.expectString)(data.ParentSnapshotId);
566
566
  }
567
567
  if (data.SnapshotId !== undefined && data.SnapshotId !== null) {
568
- contents.SnapshotId = smithy_client_1.expectString(data.SnapshotId);
568
+ contents.SnapshotId = (0, smithy_client_1.expectString)(data.SnapshotId);
569
569
  }
570
570
  if (data.StartTime !== undefined && data.StartTime !== null) {
571
- contents.StartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartTime)));
571
+ contents.StartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartTime)));
572
572
  }
573
573
  if (data.Status !== undefined && data.Status !== null) {
574
- contents.Status = smithy_client_1.expectString(data.Status);
574
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
575
575
  }
576
576
  if (data.Tags !== undefined && data.Tags !== null) {
577
577
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
578
578
  }
579
579
  if (data.VolumeSize !== undefined && data.VolumeSize !== null) {
580
- contents.VolumeSize = smithy_client_1.expectLong(data.VolumeSize);
580
+ contents.VolumeSize = (0, smithy_client_1.expectLong)(data.VolumeSize);
581
581
  }
582
582
  return Promise.resolve(contents);
583
583
  };
@@ -622,119 +622,119 @@ const deserializeAws_restJson1StartSnapshotCommandError = async (output, context
622
622
  $fault: "client",
623
623
  $metadata: deserializeMetadata(output),
624
624
  });
625
- throw smithy_client_1.decorateServiceException(response, parsedBody);
625
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
626
626
  }
627
627
  };
628
628
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
629
629
  const contents = {};
630
630
  const data = parsedOutput.body;
631
631
  if (data.Message !== undefined && data.Message !== null) {
632
- contents.Message = smithy_client_1.expectString(data.Message);
632
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
633
633
  }
634
634
  if (data.Reason !== undefined && data.Reason !== null) {
635
- contents.Reason = smithy_client_1.expectString(data.Reason);
635
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
636
636
  }
637
637
  const exception = new models_0_1.AccessDeniedException({
638
638
  $metadata: deserializeMetadata(parsedOutput),
639
639
  ...contents,
640
640
  });
641
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
641
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
642
642
  };
643
643
  const deserializeAws_restJson1ConcurrentLimitExceededExceptionResponse = async (parsedOutput, context) => {
644
644
  const contents = {};
645
645
  const data = parsedOutput.body;
646
646
  if (data.Message !== undefined && data.Message !== null) {
647
- contents.Message = smithy_client_1.expectString(data.Message);
647
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
648
648
  }
649
649
  const exception = new models_0_1.ConcurrentLimitExceededException({
650
650
  $metadata: deserializeMetadata(parsedOutput),
651
651
  ...contents,
652
652
  });
653
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
653
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
654
654
  };
655
655
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
656
656
  const contents = {};
657
657
  const data = parsedOutput.body;
658
658
  if (data.Message !== undefined && data.Message !== null) {
659
- contents.Message = smithy_client_1.expectString(data.Message);
659
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
660
660
  }
661
661
  const exception = new models_0_1.ConflictException({
662
662
  $metadata: deserializeMetadata(parsedOutput),
663
663
  ...contents,
664
664
  });
665
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
665
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
666
666
  };
667
667
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
668
668
  const contents = {};
669
669
  const data = parsedOutput.body;
670
670
  if (data.Message !== undefined && data.Message !== null) {
671
- contents.Message = smithy_client_1.expectString(data.Message);
671
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
672
672
  }
673
673
  const exception = new models_0_1.InternalServerException({
674
674
  $metadata: deserializeMetadata(parsedOutput),
675
675
  ...contents,
676
676
  });
677
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
677
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
678
678
  };
679
679
  const deserializeAws_restJson1RequestThrottledExceptionResponse = async (parsedOutput, context) => {
680
680
  const contents = {};
681
681
  const data = parsedOutput.body;
682
682
  if (data.Message !== undefined && data.Message !== null) {
683
- contents.Message = smithy_client_1.expectString(data.Message);
683
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
684
684
  }
685
685
  if (data.Reason !== undefined && data.Reason !== null) {
686
- contents.Reason = smithy_client_1.expectString(data.Reason);
686
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
687
687
  }
688
688
  const exception = new models_0_1.RequestThrottledException({
689
689
  $metadata: deserializeMetadata(parsedOutput),
690
690
  ...contents,
691
691
  });
692
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
692
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
693
693
  };
694
694
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
695
695
  const contents = {};
696
696
  const data = parsedOutput.body;
697
697
  if (data.Message !== undefined && data.Message !== null) {
698
- contents.Message = smithy_client_1.expectString(data.Message);
698
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
699
699
  }
700
700
  if (data.Reason !== undefined && data.Reason !== null) {
701
- contents.Reason = smithy_client_1.expectString(data.Reason);
701
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
702
702
  }
703
703
  const exception = new models_0_1.ResourceNotFoundException({
704
704
  $metadata: deserializeMetadata(parsedOutput),
705
705
  ...contents,
706
706
  });
707
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
707
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
708
708
  };
709
709
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
710
710
  const contents = {};
711
711
  const data = parsedOutput.body;
712
712
  if (data.Message !== undefined && data.Message !== null) {
713
- contents.Message = smithy_client_1.expectString(data.Message);
713
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
714
714
  }
715
715
  if (data.Reason !== undefined && data.Reason !== null) {
716
- contents.Reason = smithy_client_1.expectString(data.Reason);
716
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
717
717
  }
718
718
  const exception = new models_0_1.ServiceQuotaExceededException({
719
719
  $metadata: deserializeMetadata(parsedOutput),
720
720
  ...contents,
721
721
  });
722
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
722
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
723
723
  };
724
724
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
725
725
  const contents = {};
726
726
  const data = parsedOutput.body;
727
727
  if (data.Message !== undefined && data.Message !== null) {
728
- contents.Message = smithy_client_1.expectString(data.Message);
728
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
729
729
  }
730
730
  if (data.Reason !== undefined && data.Reason !== null) {
731
- contents.Reason = smithy_client_1.expectString(data.Reason);
731
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
732
732
  }
733
733
  const exception = new models_0_1.ValidationException({
734
734
  $metadata: deserializeMetadata(parsedOutput),
735
735
  ...contents,
736
736
  });
737
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
737
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
738
738
  };
739
739
  const serializeAws_restJson1Tag = (input, context) => {
740
740
  return {
@@ -754,8 +754,8 @@ const serializeAws_restJson1Tags = (input, context) => {
754
754
  };
755
755
  const deserializeAws_restJson1Block = (output, context) => {
756
756
  return {
757
- BlockIndex: smithy_client_1.expectInt32(output.BlockIndex),
758
- BlockToken: smithy_client_1.expectString(output.BlockToken),
757
+ BlockIndex: (0, smithy_client_1.expectInt32)(output.BlockIndex),
758
+ BlockToken: (0, smithy_client_1.expectString)(output.BlockToken),
759
759
  };
760
760
  };
761
761
  const deserializeAws_restJson1Blocks = (output, context) => {
@@ -771,9 +771,9 @@ const deserializeAws_restJson1Blocks = (output, context) => {
771
771
  };
772
772
  const deserializeAws_restJson1ChangedBlock = (output, context) => {
773
773
  return {
774
- BlockIndex: smithy_client_1.expectInt32(output.BlockIndex),
775
- FirstBlockToken: smithy_client_1.expectString(output.FirstBlockToken),
776
- SecondBlockToken: smithy_client_1.expectString(output.SecondBlockToken),
774
+ BlockIndex: (0, smithy_client_1.expectInt32)(output.BlockIndex),
775
+ FirstBlockToken: (0, smithy_client_1.expectString)(output.FirstBlockToken),
776
+ SecondBlockToken: (0, smithy_client_1.expectString)(output.SecondBlockToken),
777
777
  };
778
778
  };
779
779
  const deserializeAws_restJson1ChangedBlocks = (output, context) => {
@@ -789,8 +789,8 @@ const deserializeAws_restJson1ChangedBlocks = (output, context) => {
789
789
  };
790
790
  const deserializeAws_restJson1Tag = (output, context) => {
791
791
  return {
792
- Key: smithy_client_1.expectString(output.Key),
793
- Value: smithy_client_1.expectString(output.Value),
792
+ Key: (0, smithy_client_1.expectString)(output.Key),
793
+ Value: (0, smithy_client_1.expectString)(output.Value),
794
794
  };
795
795
  };
796
796
  const deserializeAws_restJson1Tags = (output, context) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
package/dist-es/EBS.js CHANGED
@@ -18,7 +18,7 @@ var EBS = (function (_super) {
18
18
  }
19
19
  else if (typeof cb === "function") {
20
20
  if (typeof optionsOrCb !== "object")
21
- throw new Error("Expect http options but get " + typeof optionsOrCb);
21
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
22
22
  this.send(command, optionsOrCb || {}, cb);
23
23
  }
24
24
  else {
@@ -32,7 +32,7 @@ var EBS = (function (_super) {
32
32
  }
33
33
  else if (typeof cb === "function") {
34
34
  if (typeof optionsOrCb !== "object")
35
- throw new Error("Expect http options but get " + typeof optionsOrCb);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
36
  this.send(command, optionsOrCb || {}, cb);
37
37
  }
38
38
  else {
@@ -46,7 +46,7 @@ var EBS = (function (_super) {
46
46
  }
47
47
  else if (typeof cb === "function") {
48
48
  if (typeof optionsOrCb !== "object")
49
- throw new Error("Expect http options but get " + typeof optionsOrCb);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
50
  this.send(command, optionsOrCb || {}, cb);
51
51
  }
52
52
  else {
@@ -60,7 +60,7 @@ var EBS = (function (_super) {
60
60
  }
61
61
  else if (typeof cb === "function") {
62
62
  if (typeof optionsOrCb !== "object")
63
- throw new Error("Expect http options but get " + typeof optionsOrCb);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
64
  this.send(command, optionsOrCb || {}, cb);
65
65
  }
66
66
  else {
@@ -74,7 +74,7 @@ var EBS = (function (_super) {
74
74
  }
75
75
  else if (typeof cb === "function") {
76
76
  if (typeof optionsOrCb !== "object")
77
- throw new Error("Expect http options but get " + typeof optionsOrCb);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
78
  this.send(command, optionsOrCb || {}, cb);
79
79
  }
80
80
  else {
@@ -88,7 +88,7 @@ var EBS = (function (_super) {
88
88
  }
89
89
  else if (typeof cb === "function") {
90
90
  if (typeof optionsOrCb !== "object")
91
- throw new Error("Expect http options but get " + typeof optionsOrCb);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
92
  this.send(command, optionsOrCb || {}, cb);
93
93
  }
94
94
  else {
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListChangedBlocksCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListChangedBlocksCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listChangedBlocks.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listChangedBlocks.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListChangedBlocks(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof EBS)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof EBSClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListSnapshotBlocksCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListSnapshotBlocksCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listSnapshotBlocks.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listSnapshotBlocks.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListSnapshotBlocks(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof EBS)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof EBSClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -16,7 +16,7 @@ export var serializeAws_restJson1CompleteSnapshotCommand = function (input, cont
16
16
  })), (isSerializableHeaderValue(input.Checksum) && { "x-amz-checksum": input.Checksum })), (isSerializableHeaderValue(input.ChecksumAlgorithm) && { "x-amz-checksum-algorithm": input.ChecksumAlgorithm })), (isSerializableHeaderValue(input.ChecksumAggregationMethod) && {
17
17
  "x-amz-checksum-aggregation-method": input.ChecksumAggregationMethod,
18
18
  }));
19
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots/completion/{SnapshotId}";
19
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots/completion/{SnapshotId}";
20
20
  if (input.SnapshotId !== undefined) {
21
21
  labelValue = input.SnapshotId;
22
22
  if (labelValue.length <= 0) {
@@ -47,7 +47,7 @@ export var serializeAws_restJson1GetSnapshotBlockCommand = function (input, cont
47
47
  case 1:
48
48
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
49
49
  headers = {};
50
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
50
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
51
51
  "/snapshots/{SnapshotId}/blocks/{BlockIndex}";
52
52
  if (input.SnapshotId !== undefined) {
53
53
  labelValue = input.SnapshotId;
@@ -91,7 +91,7 @@ export var serializeAws_restJson1ListChangedBlocksCommand = function (input, con
91
91
  case 1:
92
92
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
93
93
  headers = {};
94
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
94
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
95
95
  "/snapshots/{SecondSnapshotId}/changedblocks";
96
96
  if (input.SecondSnapshotId !== undefined) {
97
97
  labelValue = input.SecondSnapshotId;
@@ -125,7 +125,7 @@ export var serializeAws_restJson1ListSnapshotBlocksCommand = function (input, co
125
125
  case 1:
126
126
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
127
127
  headers = {};
128
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots/{SnapshotId}/blocks";
128
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots/{SnapshotId}/blocks";
129
129
  if (input.SnapshotId !== undefined) {
130
130
  labelValue = input.SnapshotId;
131
131
  if (labelValue.length <= 0) {
@@ -158,7 +158,7 @@ export var serializeAws_restJson1PutSnapshotBlockCommand = function (input, cont
158
158
  case 1:
159
159
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
160
160
  headers = __assign(__assign(__assign(__assign({ "content-type": "application/octet-stream", "x-amz-content-sha256": "UNSIGNED-PAYLOAD" }, (isSerializableHeaderValue(input.DataLength) && { "x-amz-data-length": input.DataLength.toString() })), (isSerializableHeaderValue(input.Progress) && { "x-amz-progress": input.Progress.toString() })), (isSerializableHeaderValue(input.Checksum) && { "x-amz-checksum": input.Checksum })), (isSerializableHeaderValue(input.ChecksumAlgorithm) && { "x-amz-checksum-algorithm": input.ChecksumAlgorithm }));
161
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
161
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
162
162
  "/snapshots/{SnapshotId}/blocks/{BlockIndex}";
163
163
  if (input.SnapshotId !== undefined) {
164
164
  labelValue = input.SnapshotId;
@@ -206,7 +206,7 @@ export var serializeAws_restJson1StartSnapshotCommand = function (input, context
206
206
  headers = {
207
207
  "content-type": "application/json",
208
208
  };
209
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots";
209
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/snapshots";
210
210
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Encrypted !== undefined && input.Encrypted !== null && { Encrypted: input.Encrypted })), (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn })), (input.ParentSnapshotId !== undefined &&
211
211
  input.ParentSnapshotId !== null && { ParentSnapshotId: input.ParentSnapshotId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })), (input.VolumeSize !== undefined && input.VolumeSize !== null && { VolumeSize: input.VolumeSize })));
212
212
  return [2, new __HttpRequest({
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
10
10
  import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
11
11
  import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
@@ -34,7 +34,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
34
34
  * A function that can calculate the length of a request body.
35
35
  * @internal
36
36
  */
37
- bodyLengthChecker?: (body: any) => number | undefined;
37
+ bodyLengthChecker?: __BodyLengthCalculator;
38
38
  /**
39
39
  * A function that converts a stream into an array of bytes.
40
40
  * @internal
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
10
10
  import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
11
11
  import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
@@ -22,7 +22,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
22
22
 
23
23
  urlParser?: __UrlParser;
24
24
 
25
- bodyLengthChecker?: (body: any) => number | undefined;
25
+ bodyLengthChecker?: __BodyLengthCalculator;
26
26
 
27
27
  streamCollector?: __StreamCollector;
28
28
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
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.53.0",
4
+ "version": "3.55.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,41 +18,41 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0",
21
+ "@aws-sdk/client-sts": "3.55.0",
22
+ "@aws-sdk/config-resolver": "3.55.0",
23
+ "@aws-sdk/credential-provider-node": "3.55.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.55.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.55.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.55.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.55.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.55.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
56
56
  "@tsconfig/recommended": "1.0.1",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0",
@@ -60,7 +60,7 @@
60
60
  "downlevel-dts": "0.7.0",
61
61
  "rimraf": "3.0.2",
62
62
  "typedoc": "0.19.2",
63
- "typescript": "~4.3.5"
63
+ "typescript": "~4.6.2"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">=12.0.0"