@aws-sdk/client-finspace 3.54.1 → 3.58.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.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-finspace
9
+
10
+
11
+
12
+
13
+
14
+ # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-finspace
17
+
18
+
19
+
20
+
21
+
22
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-finspace
25
+
26
+
27
+
28
+
29
+
6
30
  ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/client-finspace
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class FinspaceClient 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 CreateEnvironmentCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class CreateEnvironmentCommand 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_restJson1CreateEnvironmentCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateEnvironmentCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1CreateEnvironmentCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateEnvironmentCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
@@ -11,7 +11,7 @@ class DeleteEnvironmentCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class DeleteEnvironmentCommand 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_restJson1DeleteEnvironmentCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteEnvironmentCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1DeleteEnvironmentCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteEnvironmentCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
@@ -11,7 +11,7 @@ class GetEnvironmentCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class GetEnvironmentCommand 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_restJson1GetEnvironmentCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetEnvironmentCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1GetEnvironmentCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetEnvironmentCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetEnvironmentCommand = GetEnvironmentCommand;
@@ -11,7 +11,7 @@ class ListEnvironmentsCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class ListEnvironmentsCommand 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_restJson1ListEnvironmentsCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListEnvironmentsCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListEnvironmentsCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListEnvironmentsCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
@@ -11,7 +11,7 @@ class ListTagsForResourceCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class ListTagsForResourceCommand 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_restJson1ListTagsForResourceCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListTagsForResourceCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -11,7 +11,7 @@ class TagResourceCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class TagResourceCommand 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_restJson1TagResourceCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1TagResourceCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.TagResourceCommand = TagResourceCommand;
@@ -11,7 +11,7 @@ class UntagResourceCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class UntagResourceCommand 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_restJson1UntagResourceCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UntagResourceCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1UntagResourceCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UntagResourceCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UntagResourceCommand = UntagResourceCommand;
@@ -11,7 +11,7 @@ class UpdateEnvironmentCommand 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 = "FinspaceClient";
@@ -27,10 +27,10 @@ class UpdateEnvironmentCommand 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_restJson1UpdateEnvironmentCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateEnvironmentCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1UpdateEnvironmentCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateEnvironmentCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
@@ -122,7 +122,7 @@ const partitionHash = {
122
122
  ],
123
123
  },
124
124
  };
125
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
125
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
126
126
  ...options,
127
127
  signingService: "finspace",
128
128
  regionHash,
@@ -50,7 +50,7 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
50
50
  if (labelValue.length <= 0) {
51
51
  throw new Error("Empty value provided for input HTTP label: environmentId.");
52
52
  }
53
- resolvedPath = resolvedPath.replace("{environmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
53
+ resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
54
54
  }
55
55
  else {
56
56
  throw new Error("No value provided for input HTTP label: environmentId.");
@@ -76,7 +76,7 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
76
76
  if (labelValue.length <= 0) {
77
77
  throw new Error("Empty value provided for input HTTP label: environmentId.");
78
78
  }
79
- resolvedPath = resolvedPath.replace("{environmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
79
+ resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
80
80
  }
81
81
  else {
82
82
  throw new Error("No value provided for input HTTP label: environmentId.");
@@ -123,7 +123,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
123
123
  if (labelValue.length <= 0) {
124
124
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
125
125
  }
126
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
126
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
127
127
  }
128
128
  else {
129
129
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -151,7 +151,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
151
151
  if (labelValue.length <= 0) {
152
152
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
153
153
  }
154
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
154
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
155
155
  }
156
156
  else {
157
157
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -180,7 +180,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
180
180
  if (labelValue.length <= 0) {
181
181
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
182
182
  }
183
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
183
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
184
184
  }
185
185
  else {
186
186
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -212,7 +212,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
212
212
  if (labelValue.length <= 0) {
213
213
  throw new Error("Empty value provided for input HTTP label: environmentId.");
214
214
  }
215
- resolvedPath = resolvedPath.replace("{environmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
215
+ resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
216
216
  }
217
217
  else {
218
218
  throw new Error("No value provided for input HTTP label: environmentId.");
@@ -249,15 +249,15 @@ const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context)
249
249
  environmentId: undefined,
250
250
  environmentUrl: undefined,
251
251
  };
252
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
252
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
253
253
  if (data.environmentArn !== undefined && data.environmentArn !== null) {
254
- contents.environmentArn = smithy_client_1.expectString(data.environmentArn);
254
+ contents.environmentArn = (0, smithy_client_1.expectString)(data.environmentArn);
255
255
  }
256
256
  if (data.environmentId !== undefined && data.environmentId !== null) {
257
- contents.environmentId = smithy_client_1.expectString(data.environmentId);
257
+ contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
258
258
  }
259
259
  if (data.environmentUrl !== undefined && data.environmentUrl !== null) {
260
- contents.environmentUrl = smithy_client_1.expectString(data.environmentUrl);
260
+ contents.environmentUrl = (0, smithy_client_1.expectString)(data.environmentUrl);
261
261
  }
262
262
  return Promise.resolve(contents);
263
263
  };
@@ -296,7 +296,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
296
296
  $fault: "client",
297
297
  $metadata: deserializeMetadata(output),
298
298
  });
299
- throw smithy_client_1.decorateServiceException(response, parsedBody);
299
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
300
300
  }
301
301
  };
302
302
  const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
@@ -341,7 +341,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
341
341
  $fault: "client",
342
342
  $metadata: deserializeMetadata(output),
343
343
  });
344
- throw smithy_client_1.decorateServiceException(response, parsedBody);
344
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
345
345
  }
346
346
  };
347
347
  const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
@@ -352,7 +352,7 @@ const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) =>
352
352
  $metadata: deserializeMetadata(output),
353
353
  environment: undefined,
354
354
  };
355
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
355
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
356
356
  if (data.environment !== undefined && data.environment !== null) {
357
357
  contents.environment = deserializeAws_restJson1Environment(data.environment, context);
358
358
  }
@@ -387,7 +387,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
387
387
  $fault: "client",
388
388
  $metadata: deserializeMetadata(output),
389
389
  });
390
- throw smithy_client_1.decorateServiceException(response, parsedBody);
390
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
391
391
  }
392
392
  };
393
393
  const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
@@ -399,12 +399,12 @@ const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context)
399
399
  environments: undefined,
400
400
  nextToken: undefined,
401
401
  };
402
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
402
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
403
403
  if (data.environments !== undefined && data.environments !== null) {
404
404
  contents.environments = deserializeAws_restJson1EnvironmentList(data.environments, context);
405
405
  }
406
406
  if (data.nextToken !== undefined && data.nextToken !== null) {
407
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
407
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
408
408
  }
409
409
  return Promise.resolve(contents);
410
410
  };
@@ -431,7 +431,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
431
431
  $fault: "client",
432
432
  $metadata: deserializeMetadata(output),
433
433
  });
434
- throw smithy_client_1.decorateServiceException(response, parsedBody);
434
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
435
435
  }
436
436
  };
437
437
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -442,7 +442,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
442
442
  $metadata: deserializeMetadata(output),
443
443
  tags: undefined,
444
444
  };
445
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
445
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
446
446
  if (data.tags !== undefined && data.tags !== null) {
447
447
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
448
448
  }
@@ -474,7 +474,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
474
474
  $fault: "client",
475
475
  $metadata: deserializeMetadata(output),
476
476
  });
477
- throw smithy_client_1.decorateServiceException(response, parsedBody);
477
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
478
478
  }
479
479
  };
480
480
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -513,7 +513,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
513
513
  $fault: "client",
514
514
  $metadata: deserializeMetadata(output),
515
515
  });
516
- throw smithy_client_1.decorateServiceException(response, parsedBody);
516
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
517
517
  }
518
518
  };
519
519
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -552,7 +552,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
552
552
  $fault: "client",
553
553
  $metadata: deserializeMetadata(output),
554
554
  });
555
- throw smithy_client_1.decorateServiceException(response, parsedBody);
555
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
556
556
  }
557
557
  };
558
558
  const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
@@ -563,7 +563,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context)
563
563
  $metadata: deserializeMetadata(output),
564
564
  environment: undefined,
565
565
  };
566
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
566
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
567
567
  if (data.environment !== undefined && data.environment !== null) {
568
568
  contents.environment = deserializeAws_restJson1Environment(data.environment, context);
569
569
  }
@@ -601,7 +601,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
601
601
  $fault: "client",
602
602
  $metadata: deserializeMetadata(output),
603
603
  });
604
- throw smithy_client_1.decorateServiceException(response, parsedBody);
604
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
605
605
  }
606
606
  };
607
607
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -611,67 +611,67 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
611
611
  $metadata: deserializeMetadata(parsedOutput),
612
612
  ...contents,
613
613
  });
614
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
614
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
615
615
  };
616
616
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
617
617
  const contents = {};
618
618
  const data = parsedOutput.body;
619
619
  if (data.message !== undefined && data.message !== null) {
620
- contents.message = smithy_client_1.expectString(data.message);
620
+ contents.message = (0, smithy_client_1.expectString)(data.message);
621
621
  }
622
622
  const exception = new models_0_1.InternalServerException({
623
623
  $metadata: deserializeMetadata(parsedOutput),
624
624
  ...contents,
625
625
  });
626
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
626
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
627
627
  };
628
628
  const deserializeAws_restJson1InvalidRequestExceptionResponse = 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
  const exception = new models_0_1.InvalidRequestException({
635
635
  $metadata: deserializeMetadata(parsedOutput),
636
636
  ...contents,
637
637
  });
638
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
638
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
639
639
  };
640
640
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
641
641
  const contents = {};
642
642
  const data = parsedOutput.body;
643
643
  if (data.message !== undefined && data.message !== null) {
644
- contents.message = smithy_client_1.expectString(data.message);
644
+ contents.message = (0, smithy_client_1.expectString)(data.message);
645
645
  }
646
646
  const exception = new models_0_1.LimitExceededException({
647
647
  $metadata: deserializeMetadata(parsedOutput),
648
648
  ...contents,
649
649
  });
650
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
650
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
651
651
  };
652
652
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
653
653
  const contents = {};
654
654
  const data = parsedOutput.body;
655
655
  if (data.message !== undefined && data.message !== null) {
656
- contents.message = smithy_client_1.expectString(data.message);
656
+ contents.message = (0, smithy_client_1.expectString)(data.message);
657
657
  }
658
658
  const exception = new models_0_1.ResourceNotFoundException({
659
659
  $metadata: deserializeMetadata(parsedOutput),
660
660
  ...contents,
661
661
  });
662
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
662
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
663
663
  };
664
664
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
665
665
  const contents = {};
666
666
  const data = parsedOutput.body;
667
667
  if (data.message !== undefined && data.message !== null) {
668
- contents.message = smithy_client_1.expectString(data.message);
668
+ contents.message = (0, smithy_client_1.expectString)(data.message);
669
669
  }
670
670
  const exception = new models_0_1.ServiceQuotaExceededException({
671
671
  $metadata: deserializeMetadata(parsedOutput),
672
672
  ...contents,
673
673
  });
674
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
674
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
675
675
  };
676
676
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
677
677
  const contents = {};
@@ -680,19 +680,19 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
680
680
  $metadata: deserializeMetadata(parsedOutput),
681
681
  ...contents,
682
682
  });
683
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
683
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
684
684
  };
685
685
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
686
686
  const contents = {};
687
687
  const data = parsedOutput.body;
688
688
  if (data.message !== undefined && data.message !== null) {
689
- contents.message = smithy_client_1.expectString(data.message);
689
+ contents.message = (0, smithy_client_1.expectString)(data.message);
690
690
  }
691
691
  const exception = new models_0_1.ValidationException({
692
692
  $metadata: deserializeMetadata(parsedOutput),
693
693
  ...contents,
694
694
  });
695
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
695
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
696
696
  };
697
697
  const serializeAws_restJson1AttributeMap = (input, context) => {
698
698
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -755,26 +755,26 @@ const deserializeAws_restJson1AttributeMap = (output, context) => {
755
755
  }
756
756
  return {
757
757
  ...acc,
758
- [key]: smithy_client_1.expectString(value),
758
+ [key]: (0, smithy_client_1.expectString)(value),
759
759
  };
760
760
  }, {});
761
761
  };
762
762
  const deserializeAws_restJson1Environment = (output, context) => {
763
763
  return {
764
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
765
- dedicatedServiceAccountId: smithy_client_1.expectString(output.dedicatedServiceAccountId),
766
- description: smithy_client_1.expectString(output.description),
767
- environmentArn: smithy_client_1.expectString(output.environmentArn),
768
- environmentId: smithy_client_1.expectString(output.environmentId),
769
- environmentUrl: smithy_client_1.expectString(output.environmentUrl),
770
- federationMode: smithy_client_1.expectString(output.federationMode),
764
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
765
+ dedicatedServiceAccountId: (0, smithy_client_1.expectString)(output.dedicatedServiceAccountId),
766
+ description: (0, smithy_client_1.expectString)(output.description),
767
+ environmentArn: (0, smithy_client_1.expectString)(output.environmentArn),
768
+ environmentId: (0, smithy_client_1.expectString)(output.environmentId),
769
+ environmentUrl: (0, smithy_client_1.expectString)(output.environmentUrl),
770
+ federationMode: (0, smithy_client_1.expectString)(output.federationMode),
771
771
  federationParameters: output.federationParameters !== undefined && output.federationParameters !== null
772
772
  ? deserializeAws_restJson1FederationParameters(output.federationParameters, context)
773
773
  : undefined,
774
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
775
- name: smithy_client_1.expectString(output.name),
776
- sageMakerStudioDomainUrl: smithy_client_1.expectString(output.sageMakerStudioDomainUrl),
777
- status: smithy_client_1.expectString(output.status),
774
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
775
+ name: (0, smithy_client_1.expectString)(output.name),
776
+ sageMakerStudioDomainUrl: (0, smithy_client_1.expectString)(output.sageMakerStudioDomainUrl),
777
+ status: (0, smithy_client_1.expectString)(output.status),
778
778
  };
779
779
  };
780
780
  const deserializeAws_restJson1EnvironmentList = (output, context) => {
@@ -790,14 +790,14 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
790
790
  };
791
791
  const deserializeAws_restJson1FederationParameters = (output, context) => {
792
792
  return {
793
- applicationCallBackURL: smithy_client_1.expectString(output.applicationCallBackURL),
793
+ applicationCallBackURL: (0, smithy_client_1.expectString)(output.applicationCallBackURL),
794
794
  attributeMap: output.attributeMap !== undefined && output.attributeMap !== null
795
795
  ? deserializeAws_restJson1AttributeMap(output.attributeMap, context)
796
796
  : undefined,
797
- federationProviderName: smithy_client_1.expectString(output.federationProviderName),
798
- federationURN: smithy_client_1.expectString(output.federationURN),
799
- samlMetadataDocument: smithy_client_1.expectString(output.samlMetadataDocument),
800
- samlMetadataURL: smithy_client_1.expectString(output.samlMetadataURL),
797
+ federationProviderName: (0, smithy_client_1.expectString)(output.federationProviderName),
798
+ federationURN: (0, smithy_client_1.expectString)(output.federationURN),
799
+ samlMetadataDocument: (0, smithy_client_1.expectString)(output.samlMetadataDocument),
800
+ samlMetadataURL: (0, smithy_client_1.expectString)(output.samlMetadataURL),
801
801
  };
802
802
  };
803
803
  const deserializeAws_restJson1TagMap = (output, context) => {
@@ -807,7 +807,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
807
807
  }
808
808
  return {
809
809
  ...acc,
810
- [key]: smithy_client_1.expectString(value),
810
+ [key]: (0, smithy_client_1.expectString)(value),
811
811
  };
812
812
  }, {});
813
813
  };
@@ -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,
@@ -20,7 +20,7 @@ var Finspace = (function (_super) {
20
20
  }
21
21
  else if (typeof cb === "function") {
22
22
  if (typeof optionsOrCb !== "object")
23
- throw new Error("Expect http options but get " + typeof optionsOrCb);
23
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
24
24
  this.send(command, optionsOrCb || {}, cb);
25
25
  }
26
26
  else {
@@ -34,7 +34,7 @@ var Finspace = (function (_super) {
34
34
  }
35
35
  else if (typeof cb === "function") {
36
36
  if (typeof optionsOrCb !== "object")
37
- throw new Error("Expect http options but get " + typeof optionsOrCb);
37
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
38
38
  this.send(command, optionsOrCb || {}, cb);
39
39
  }
40
40
  else {
@@ -48,7 +48,7 @@ var Finspace = (function (_super) {
48
48
  }
49
49
  else if (typeof cb === "function") {
50
50
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get " + typeof optionsOrCb);
51
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
52
  this.send(command, optionsOrCb || {}, cb);
53
53
  }
54
54
  else {
@@ -62,7 +62,7 @@ var Finspace = (function (_super) {
62
62
  }
63
63
  else if (typeof cb === "function") {
64
64
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get " + typeof optionsOrCb);
65
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
66
  this.send(command, optionsOrCb || {}, cb);
67
67
  }
68
68
  else {
@@ -76,7 +76,7 @@ var Finspace = (function (_super) {
76
76
  }
77
77
  else if (typeof cb === "function") {
78
78
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get " + typeof optionsOrCb);
79
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
80
  this.send(command, optionsOrCb || {}, cb);
81
81
  }
82
82
  else {
@@ -90,7 +90,7 @@ var Finspace = (function (_super) {
90
90
  }
91
91
  else if (typeof cb === "function") {
92
92
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get " + typeof optionsOrCb);
93
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
94
  this.send(command, optionsOrCb || {}, cb);
95
95
  }
96
96
  else {
@@ -104,7 +104,7 @@ var Finspace = (function (_super) {
104
104
  }
105
105
  else if (typeof cb === "function") {
106
106
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get " + typeof optionsOrCb);
107
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
108
  this.send(command, optionsOrCb || {}, cb);
109
109
  }
110
110
  else {
@@ -118,7 +118,7 @@ var Finspace = (function (_super) {
118
118
  }
119
119
  else if (typeof cb === "function") {
120
120
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get " + typeof optionsOrCb);
121
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
122
  this.send(command, optionsOrCb || {}, cb);
123
123
  }
124
124
  else {
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataBundles !== undefined &&
18
18
  input.dataBundles !== null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.federationMode !== undefined &&
19
19
  input.federationMode !== null && { federationMode: input.federationMode })), (input.federationParameters !== undefined &&
@@ -43,7 +43,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
43
43
  case 1:
44
44
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
45
45
  headers = {};
46
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
46
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
47
47
  if (input.environmentId !== undefined) {
48
48
  labelValue = input.environmentId;
49
49
  if (labelValue.length <= 0) {
@@ -74,7 +74,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
74
74
  case 1:
75
75
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
76
76
  headers = {};
77
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
77
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
78
78
  if (input.environmentId !== undefined) {
79
79
  labelValue = input.environmentId;
80
80
  if (labelValue.length <= 0) {
@@ -105,7 +105,7 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
105
105
  case 1:
106
106
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
107
107
  headers = {};
108
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
108
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
109
109
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
110
110
  return [2, new __HttpRequest({
111
111
  protocol: protocol,
@@ -128,7 +128,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
128
128
  case 1:
129
129
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
130
130
  headers = {};
131
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
131
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
132
132
  if (input.resourceArn !== undefined) {
133
133
  labelValue = input.resourceArn;
134
134
  if (labelValue.length <= 0) {
@@ -161,7 +161,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
161
161
  headers = {
162
162
  "content-type": "application/json",
163
163
  };
164
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
164
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
165
165
  if (input.resourceArn !== undefined) {
166
166
  labelValue = input.resourceArn;
167
167
  if (labelValue.length <= 0) {
@@ -193,7 +193,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
193
193
  case 1:
194
194
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
195
195
  headers = {};
196
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
196
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
197
197
  if (input.resourceArn !== undefined) {
198
198
  labelValue = input.resourceArn;
199
199
  if (labelValue.length <= 0) {
@@ -228,7 +228,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
228
228
  headers = {
229
229
  "content-type": "application/json",
230
230
  };
231
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
231
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment/{environmentId}";
232
232
  if (input.environmentId !== undefined) {
233
233
  labelValue = input.environmentId;
234
234
  if (labelValue.length <= 0) {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: FinspaceClientConfig) => {
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;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: FinspaceClientConfig) => {
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-finspace",
3
3
  "description": "AWS SDK for JavaScript Finspace Client for Node.js, Browser and React Native",
4
- "version": "3.54.1",
4
+ "version": "3.58.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,47 +18,47 @@
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.54.1",
22
- "@aws-sdk/config-resolver": "3.54.1",
23
- "@aws-sdk/credential-provider-node": "3.54.1",
24
- "@aws-sdk/fetch-http-handler": "3.54.1",
25
- "@aws-sdk/hash-node": "3.54.1",
26
- "@aws-sdk/invalid-dependency": "3.54.1",
27
- "@aws-sdk/middleware-content-length": "3.54.1",
28
- "@aws-sdk/middleware-host-header": "3.54.1",
29
- "@aws-sdk/middleware-logger": "3.54.1",
30
- "@aws-sdk/middleware-retry": "3.54.1",
31
- "@aws-sdk/middleware-serde": "3.54.1",
32
- "@aws-sdk/middleware-signing": "3.54.1",
33
- "@aws-sdk/middleware-stack": "3.54.1",
34
- "@aws-sdk/middleware-user-agent": "3.54.1",
35
- "@aws-sdk/node-config-provider": "3.54.1",
36
- "@aws-sdk/node-http-handler": "3.54.1",
37
- "@aws-sdk/protocol-http": "3.54.1",
38
- "@aws-sdk/smithy-client": "3.54.1",
39
- "@aws-sdk/types": "3.54.1",
40
- "@aws-sdk/url-parser": "3.54.1",
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.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
- "@aws-sdk/util-user-agent-browser": "3.54.1",
48
- "@aws-sdk/util-user-agent-node": "3.54.1",
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.58.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.58.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.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.58.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.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.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
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.58.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"