@aws-sdk/client-sts 3.54.1 → 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,14 @@
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-sts
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-sts
@@ -12,20 +12,20 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class STSClient 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_sdk_sts_1.resolveStsAuthConfig(_config_4, { stsClientCtor: STSClient });
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_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient });
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_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_user_agent_1.getUserAgentPlugin)(this.config));
29
29
  }
30
30
  destroy() {
31
31
  super.destroy();
@@ -12,8 +12,8 @@ class AssumeRoleCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class AssumeRoleCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryAssumeRoleCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryAssumeRoleCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.AssumeRoleCommand = AssumeRoleCommand;
@@ -11,7 +11,7 @@ class AssumeRoleWithSAMLCommand 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 = "STSClient";
@@ -27,10 +27,10 @@ class AssumeRoleWithSAMLCommand 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_query_1.serializeAws_queryAssumeRoleWithSAMLCommand(input, context);
30
+ return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand(output, context);
33
+ return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand;
@@ -11,7 +11,7 @@ class AssumeRoleWithWebIdentityCommand 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 = "STSClient";
@@ -27,10 +27,10 @@ class AssumeRoleWithWebIdentityCommand 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_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand(input, context);
30
+ return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand(output, context);
33
+ return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
@@ -12,8 +12,8 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
@@ -12,8 +12,8 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
@@ -12,8 +12,8 @@ class GetCallerIdentityCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class GetCallerIdentityCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryGetCallerIdentityCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryGetCallerIdentityCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
@@ -12,8 +12,8 @@ class GetFederationTokenCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class GetFederationTokenCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryGetFederationTokenCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryGetFederationTokenCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.GetFederationTokenCommand = GetFederationTokenCommand;
@@ -12,8 +12,8 @@ class GetSessionTokenCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "STSClient";
@@ -29,10 +29,10 @@ class GetSessionTokenCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context);
32
+ return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context);
35
+ return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.GetSessionTokenCommand = GetSessionTokenCommand;
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0;
4
4
  const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
5
5
  const STSClient_1 = require("./STSClient");
6
- const getDefaultRoleAssumer = (stsOptions = {}) => defaultStsRoleAssumers_1.getDefaultRoleAssumer(stsOptions, STSClient_1.STSClient);
6
+ const getDefaultRoleAssumer = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, STSClient_1.STSClient);
7
7
  exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
8
- const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity(stsOptions, STSClient_1.STSClient);
8
+ const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, STSClient_1.STSClient);
9
9
  exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
10
10
  const decorateDefaultCredentialProvider = (provider) => (input) => provider({
11
- roleAssumer: exports.getDefaultRoleAssumer(input),
12
- roleAssumerWithWebIdentity: exports.getDefaultRoleAssumerWithWebIdentity(input),
11
+ roleAssumer: (0, exports.getDefaultRoleAssumer)(input),
12
+ roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input),
13
13
  ...input,
14
14
  });
15
15
  exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
@@ -69,8 +69,8 @@ const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => {
69
69
  };
70
70
  exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
71
71
  const decorateDefaultCredentialProvider = (provider) => (input) => provider({
72
- roleAssumer: exports.getDefaultRoleAssumer(input, input.stsClientCtor),
73
- roleAssumerWithWebIdentity: exports.getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor),
72
+ roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor),
73
+ roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor),
74
74
  ...input,
75
75
  });
76
76
  exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
@@ -185,7 +185,7 @@ const partitionHash = {
185
185
  ],
186
186
  },
187
187
  };
188
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
188
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
189
189
  ...options,
190
190
  signingService: "sts",
191
191
  regionHash,
@@ -153,7 +153,7 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
153
153
  $fault: "client",
154
154
  $metadata: deserializeMetadata(output),
155
155
  });
156
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
156
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
157
157
  }
158
158
  };
159
159
  const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => {
@@ -204,7 +204,7 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
204
204
  $fault: "client",
205
205
  $metadata: deserializeMetadata(output),
206
206
  });
207
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
207
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
208
208
  }
209
209
  };
210
210
  const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => {
@@ -258,7 +258,7 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
258
258
  $fault: "client",
259
259
  $metadata: deserializeMetadata(output),
260
260
  });
261
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
261
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
262
262
  }
263
263
  };
264
264
  const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => {
@@ -294,7 +294,7 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
294
294
  $fault: "client",
295
295
  $metadata: deserializeMetadata(output),
296
296
  });
297
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
297
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
298
298
  }
299
299
  };
300
300
  const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => {
@@ -327,7 +327,7 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
327
327
  $fault: "client",
328
328
  $metadata: deserializeMetadata(output),
329
329
  });
330
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
330
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
331
331
  }
332
332
  };
333
333
  const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => {
@@ -360,7 +360,7 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
360
360
  $fault: "client",
361
361
  $metadata: deserializeMetadata(output),
362
362
  });
363
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
363
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
364
364
  }
365
365
  };
366
366
  const deserializeAws_queryGetFederationTokenCommand = async (output, context) => {
@@ -402,7 +402,7 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
402
402
  $fault: "client",
403
403
  $metadata: deserializeMetadata(output),
404
404
  });
405
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
405
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
406
406
  }
407
407
  };
408
408
  const deserializeAws_queryGetSessionTokenCommand = async (output, context) => {
@@ -438,7 +438,7 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
438
438
  $fault: "client",
439
439
  $metadata: deserializeMetadata(output),
440
440
  });
441
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
441
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
442
442
  }
443
443
  };
444
444
  const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => {
@@ -448,7 +448,7 @@ const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, c
448
448
  $metadata: deserializeMetadata(parsedOutput),
449
449
  ...deserialized,
450
450
  });
451
- return smithy_client_1.decorateServiceException(exception, body);
451
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
452
452
  };
453
453
  const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => {
454
454
  const body = parsedOutput.body;
@@ -457,7 +457,7 @@ const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsed
457
457
  $metadata: deserializeMetadata(parsedOutput),
458
458
  ...deserialized,
459
459
  });
460
- return smithy_client_1.decorateServiceException(exception, body);
460
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
461
461
  };
462
462
  const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => {
463
463
  const body = parsedOutput.body;
@@ -466,7 +466,7 @@ const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutpu
466
466
  $metadata: deserializeMetadata(parsedOutput),
467
467
  ...deserialized,
468
468
  });
469
- return smithy_client_1.decorateServiceException(exception, body);
469
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
470
470
  };
471
471
  const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => {
472
472
  const body = parsedOutput.body;
@@ -475,7 +475,7 @@ const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (
475
475
  $metadata: deserializeMetadata(parsedOutput),
476
476
  ...deserialized,
477
477
  });
478
- return smithy_client_1.decorateServiceException(exception, body);
478
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
479
479
  };
480
480
  const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => {
481
481
  const body = parsedOutput.body;
@@ -484,7 +484,7 @@ const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedO
484
484
  $metadata: deserializeMetadata(parsedOutput),
485
485
  ...deserialized,
486
486
  });
487
- return smithy_client_1.decorateServiceException(exception, body);
487
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
488
488
  };
489
489
  const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => {
490
490
  const body = parsedOutput.body;
@@ -493,7 +493,7 @@ const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (pars
493
493
  $metadata: deserializeMetadata(parsedOutput),
494
494
  ...deserialized,
495
495
  });
496
- return smithy_client_1.decorateServiceException(exception, body);
496
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
497
497
  };
498
498
  const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => {
499
499
  const body = parsedOutput.body;
@@ -502,7 +502,7 @@ const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedO
502
502
  $metadata: deserializeMetadata(parsedOutput),
503
503
  ...deserialized,
504
504
  });
505
- return smithy_client_1.decorateServiceException(exception, body);
505
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
506
506
  };
507
507
  const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => {
508
508
  const body = parsedOutput.body;
@@ -511,7 +511,7 @@ const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput,
511
511
  $metadata: deserializeMetadata(parsedOutput),
512
512
  ...deserialized,
513
513
  });
514
- return smithy_client_1.decorateServiceException(exception, body);
514
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
515
515
  };
516
516
  const serializeAws_queryAssumeRoleRequest = (input, context) => {
517
517
  const entries = {};
@@ -740,10 +740,10 @@ const deserializeAws_queryAssumedRoleUser = (output, context) => {
740
740
  Arn: undefined,
741
741
  };
742
742
  if (output["AssumedRoleId"] !== undefined) {
743
- contents.AssumedRoleId = smithy_client_1.expectString(output["AssumedRoleId"]);
743
+ contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]);
744
744
  }
745
745
  if (output["Arn"] !== undefined) {
746
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
746
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
747
747
  }
748
748
  return contents;
749
749
  };
@@ -761,10 +761,10 @@ const deserializeAws_queryAssumeRoleResponse = (output, context) => {
761
761
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
762
762
  }
763
763
  if (output["PackedPolicySize"] !== undefined) {
764
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
764
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
765
765
  }
766
766
  if (output["SourceIdentity"] !== undefined) {
767
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
767
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
768
768
  }
769
769
  return contents;
770
770
  };
@@ -787,25 +787,25 @@ const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => {
787
787
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
788
788
  }
789
789
  if (output["PackedPolicySize"] !== undefined) {
790
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
790
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
791
791
  }
792
792
  if (output["Subject"] !== undefined) {
793
- contents.Subject = smithy_client_1.expectString(output["Subject"]);
793
+ contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]);
794
794
  }
795
795
  if (output["SubjectType"] !== undefined) {
796
- contents.SubjectType = smithy_client_1.expectString(output["SubjectType"]);
796
+ contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]);
797
797
  }
798
798
  if (output["Issuer"] !== undefined) {
799
- contents.Issuer = smithy_client_1.expectString(output["Issuer"]);
799
+ contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]);
800
800
  }
801
801
  if (output["Audience"] !== undefined) {
802
- contents.Audience = smithy_client_1.expectString(output["Audience"]);
802
+ contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]);
803
803
  }
804
804
  if (output["NameQualifier"] !== undefined) {
805
- contents.NameQualifier = smithy_client_1.expectString(output["NameQualifier"]);
805
+ contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]);
806
806
  }
807
807
  if (output["SourceIdentity"] !== undefined) {
808
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
808
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
809
809
  }
810
810
  return contents;
811
811
  };
@@ -823,22 +823,22 @@ const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context)
823
823
  contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context);
824
824
  }
825
825
  if (output["SubjectFromWebIdentityToken"] !== undefined) {
826
- contents.SubjectFromWebIdentityToken = smithy_client_1.expectString(output["SubjectFromWebIdentityToken"]);
826
+ contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]);
827
827
  }
828
828
  if (output["AssumedRoleUser"] !== undefined) {
829
829
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
830
830
  }
831
831
  if (output["PackedPolicySize"] !== undefined) {
832
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
832
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
833
833
  }
834
834
  if (output["Provider"] !== undefined) {
835
- contents.Provider = smithy_client_1.expectString(output["Provider"]);
835
+ contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]);
836
836
  }
837
837
  if (output["Audience"] !== undefined) {
838
- contents.Audience = smithy_client_1.expectString(output["Audience"]);
838
+ contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]);
839
839
  }
840
840
  if (output["SourceIdentity"] !== undefined) {
841
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
841
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
842
842
  }
843
843
  return contents;
844
844
  };
@@ -850,16 +850,16 @@ const deserializeAws_queryCredentials = (output, context) => {
850
850
  Expiration: undefined,
851
851
  };
852
852
  if (output["AccessKeyId"] !== undefined) {
853
- contents.AccessKeyId = smithy_client_1.expectString(output["AccessKeyId"]);
853
+ contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]);
854
854
  }
855
855
  if (output["SecretAccessKey"] !== undefined) {
856
- contents.SecretAccessKey = smithy_client_1.expectString(output["SecretAccessKey"]);
856
+ contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]);
857
857
  }
858
858
  if (output["SessionToken"] !== undefined) {
859
- contents.SessionToken = smithy_client_1.expectString(output["SessionToken"]);
859
+ contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]);
860
860
  }
861
861
  if (output["Expiration"] !== undefined) {
862
- contents.Expiration = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Expiration"]));
862
+ contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"]));
863
863
  }
864
864
  return contents;
865
865
  };
@@ -868,7 +868,7 @@ const deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context)
868
868
  DecodedMessage: undefined,
869
869
  };
870
870
  if (output["DecodedMessage"] !== undefined) {
871
- contents.DecodedMessage = smithy_client_1.expectString(output["DecodedMessage"]);
871
+ contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]);
872
872
  }
873
873
  return contents;
874
874
  };
@@ -877,7 +877,7 @@ const deserializeAws_queryExpiredTokenException = (output, context) => {
877
877
  message: undefined,
878
878
  };
879
879
  if (output["message"] !== undefined) {
880
- contents.message = smithy_client_1.expectString(output["message"]);
880
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
881
881
  }
882
882
  return contents;
883
883
  };
@@ -887,10 +887,10 @@ const deserializeAws_queryFederatedUser = (output, context) => {
887
887
  Arn: undefined,
888
888
  };
889
889
  if (output["FederatedUserId"] !== undefined) {
890
- contents.FederatedUserId = smithy_client_1.expectString(output["FederatedUserId"]);
890
+ contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]);
891
891
  }
892
892
  if (output["Arn"] !== undefined) {
893
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
893
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
894
894
  }
895
895
  return contents;
896
896
  };
@@ -899,7 +899,7 @@ const deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => {
899
899
  Account: undefined,
900
900
  };
901
901
  if (output["Account"] !== undefined) {
902
- contents.Account = smithy_client_1.expectString(output["Account"]);
902
+ contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
903
903
  }
904
904
  return contents;
905
905
  };
@@ -910,13 +910,13 @@ const deserializeAws_queryGetCallerIdentityResponse = (output, context) => {
910
910
  Arn: undefined,
911
911
  };
912
912
  if (output["UserId"] !== undefined) {
913
- contents.UserId = smithy_client_1.expectString(output["UserId"]);
913
+ contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]);
914
914
  }
915
915
  if (output["Account"] !== undefined) {
916
- contents.Account = smithy_client_1.expectString(output["Account"]);
916
+ contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
917
917
  }
918
918
  if (output["Arn"] !== undefined) {
919
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
919
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
920
920
  }
921
921
  return contents;
922
922
  };
@@ -933,7 +933,7 @@ const deserializeAws_queryGetFederationTokenResponse = (output, context) => {
933
933
  contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context);
934
934
  }
935
935
  if (output["PackedPolicySize"] !== undefined) {
936
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
936
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
937
937
  }
938
938
  return contents;
939
939
  };
@@ -951,7 +951,7 @@ const deserializeAws_queryIDPCommunicationErrorException = (output, context) =>
951
951
  message: undefined,
952
952
  };
953
953
  if (output["message"] !== undefined) {
954
- contents.message = smithy_client_1.expectString(output["message"]);
954
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
955
955
  }
956
956
  return contents;
957
957
  };
@@ -960,7 +960,7 @@ const deserializeAws_queryIDPRejectedClaimException = (output, context) => {
960
960
  message: undefined,
961
961
  };
962
962
  if (output["message"] !== undefined) {
963
- contents.message = smithy_client_1.expectString(output["message"]);
963
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
964
964
  }
965
965
  return contents;
966
966
  };
@@ -969,7 +969,7 @@ const deserializeAws_queryInvalidAuthorizationMessageException = (output, contex
969
969
  message: undefined,
970
970
  };
971
971
  if (output["message"] !== undefined) {
972
- contents.message = smithy_client_1.expectString(output["message"]);
972
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
973
973
  }
974
974
  return contents;
975
975
  };
@@ -978,7 +978,7 @@ const deserializeAws_queryInvalidIdentityTokenException = (output, context) => {
978
978
  message: undefined,
979
979
  };
980
980
  if (output["message"] !== undefined) {
981
- contents.message = smithy_client_1.expectString(output["message"]);
981
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
982
982
  }
983
983
  return contents;
984
984
  };
@@ -987,7 +987,7 @@ const deserializeAws_queryMalformedPolicyDocumentException = (output, context) =
987
987
  message: undefined,
988
988
  };
989
989
  if (output["message"] !== undefined) {
990
- contents.message = smithy_client_1.expectString(output["message"]);
990
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
991
991
  }
992
992
  return contents;
993
993
  };
@@ -996,7 +996,7 @@ const deserializeAws_queryPackedPolicyTooLargeException = (output, context) => {
996
996
  message: undefined,
997
997
  };
998
998
  if (output["message"] !== undefined) {
999
- contents.message = smithy_client_1.expectString(output["message"]);
999
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
1000
1000
  }
1001
1001
  return contents;
1002
1002
  };
@@ -1005,7 +1005,7 @@ const deserializeAws_queryRegionDisabledException = (output, context) => {
1005
1005
  message: undefined,
1006
1006
  };
1007
1007
  if (output["message"] !== undefined) {
1008
- contents.message = smithy_client_1.expectString(output["message"]);
1008
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
1009
1009
  }
1010
1010
  return contents;
1011
1011
  };
@@ -1045,12 +1045,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1045
1045
  };
1046
1046
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1047
1047
  if (encoded.length) {
1048
- const parsedObj = fast_xml_parser_1.parse(encoded, {
1048
+ const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
1049
1049
  attributeNamePrefix: "",
1050
1050
  ignoreAttributes: false,
1051
1051
  parseNodeValue: false,
1052
1052
  trimValues: false,
1053
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
1053
+ tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
1054
1054
  });
1055
1055
  const textNodeName = "#text";
1056
1056
  const key = Object.keys(parsedObj)[0];
@@ -1059,12 +1059,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1059
1059
  parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1060
1060
  delete parsedObjToReturn[textNodeName];
1061
1061
  }
1062
- return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
1062
+ return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
1063
1063
  }
1064
1064
  return {};
1065
1065
  });
1066
1066
  const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
1067
- .map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value))
1067
+ .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
1068
1068
  .join("&");
1069
1069
  const loadQueryErrorCode = (output, data) => {
1070
1070
  if (data.Error.Code !== undefined) {
@@ -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 : defaultStsRoleAssumers_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, defaultStsRoleAssumers_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/STS.js CHANGED
@@ -20,7 +20,7 @@ var STS = (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 STS = (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 STS = (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 STS = (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 STS = (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 STS = (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 STS = (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 STS = (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 {
@@ -41,7 +41,7 @@ export var getDefaultRoleAssumer = function (stsOptions, stsClientCtor) {
41
41
  case 1:
42
42
  Credentials = (_a.sent()).Credentials;
43
43
  if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
44
- throw new Error("Invalid response from STS.assumeRole call with role " + params.RoleArn);
44
+ throw new Error("Invalid response from STS.assumeRole call with role ".concat(params.RoleArn));
45
45
  }
46
46
  return [2, {
47
47
  accessKeyId: Credentials.AccessKeyId,
@@ -68,7 +68,7 @@ export var getDefaultRoleAssumerWithWebIdentity = function (stsOptions, stsClien
68
68
  case 1:
69
69
  Credentials = (_a.sent()).Credentials;
70
70
  if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
71
- throw new Error("Invalid response from STS.assumeRoleWithWebIdentity call with role " + params.RoleArn);
71
+ throw new Error("Invalid response from STS.assumeRoleWithWebIdentity call with role ".concat(params.RoleArn));
72
72
  }
73
73
  return [2, {
74
74
  accessKeyId: Credentials.AccessKeyId,
@@ -623,7 +623,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
623
623
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
624
624
  Object.entries(memberEntries).forEach(function (_a) {
625
625
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
626
- var loc = "PolicyArns." + key;
626
+ var loc = "PolicyArns.".concat(key);
627
627
  entries[loc] = value;
628
628
  });
629
629
  }
@@ -637,7 +637,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
637
637
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
638
638
  Object.entries(memberEntries).forEach(function (_a) {
639
639
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
640
- var loc = "Tags." + key;
640
+ var loc = "Tags.".concat(key);
641
641
  entries[loc] = value;
642
642
  });
643
643
  }
@@ -645,7 +645,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
645
645
  var memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
646
646
  Object.entries(memberEntries).forEach(function (_a) {
647
647
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
648
- var loc = "TransitiveTagKeys." + key;
648
+ var loc = "TransitiveTagKeys.".concat(key);
649
649
  entries[loc] = value;
650
650
  });
651
651
  }
@@ -678,7 +678,7 @@ var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
678
678
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
679
679
  Object.entries(memberEntries).forEach(function (_a) {
680
680
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
681
- var loc = "PolicyArns." + key;
681
+ var loc = "PolicyArns.".concat(key);
682
682
  entries[loc] = value;
683
683
  });
684
684
  }
@@ -708,7 +708,7 @@ var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, contex
708
708
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
709
709
  Object.entries(memberEntries).forEach(function (_a) {
710
710
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
711
- var loc = "PolicyArns." + key;
711
+ var loc = "PolicyArns.".concat(key);
712
712
  entries[loc] = value;
713
713
  });
714
714
  }
@@ -750,7 +750,7 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
750
750
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
751
751
  Object.entries(memberEntries).forEach(function (_a) {
752
752
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
753
- var loc = "PolicyArns." + key;
753
+ var loc = "PolicyArns.".concat(key);
754
754
  entries[loc] = value;
755
755
  });
756
756
  }
@@ -761,7 +761,7 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
761
761
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
762
762
  Object.entries(memberEntries).forEach(function (_a) {
763
763
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
764
- var loc = "Tags." + key;
764
+ var loc = "Tags.".concat(key);
765
765
  entries[loc] = value;
766
766
  });
767
767
  }
@@ -793,7 +793,7 @@ var serializeAws_querypolicyDescriptorListType = function (input, context) {
793
793
  var memberEntries = serializeAws_queryPolicyDescriptorType(entry, context);
794
794
  Object.entries(memberEntries).forEach(function (_a) {
795
795
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
796
- entries["member." + counter + "." + key] = value;
796
+ entries["member.".concat(counter, ".").concat(key)] = value;
797
797
  });
798
798
  counter++;
799
799
  }
@@ -834,7 +834,7 @@ var serializeAws_querytagKeyListType = function (input, context) {
834
834
  if (entry === null) {
835
835
  continue;
836
836
  }
837
- entries["member." + counter] = entry;
837
+ entries["member.".concat(counter)] = entry;
838
838
  counter++;
839
839
  }
840
840
  }
@@ -860,7 +860,7 @@ var serializeAws_querytagListType = function (input, context) {
860
860
  var memberEntries = serializeAws_queryTag(entry, context);
861
861
  Object.entries(memberEntries).forEach(function (_a) {
862
862
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
863
- entries["member." + counter + "." + key] = value;
863
+ entries["member.".concat(counter, ".").concat(key)] = value;
864
864
  });
865
865
  counter++;
866
866
  }
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
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: STSClientConfig) => {
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-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.54.1",
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,49 +18,49 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/config-resolver": "3.54.1",
22
- "@aws-sdk/credential-provider-node": "3.54.1",
23
- "@aws-sdk/fetch-http-handler": "3.54.1",
24
- "@aws-sdk/hash-node": "3.54.1",
25
- "@aws-sdk/invalid-dependency": "3.54.1",
26
- "@aws-sdk/middleware-content-length": "3.54.1",
27
- "@aws-sdk/middleware-host-header": "3.54.1",
28
- "@aws-sdk/middleware-logger": "3.54.1",
29
- "@aws-sdk/middleware-retry": "3.54.1",
30
- "@aws-sdk/middleware-sdk-sts": "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",
21
+ "@aws-sdk/config-resolver": "3.55.0",
22
+ "@aws-sdk/credential-provider-node": "3.55.0",
23
+ "@aws-sdk/fetch-http-handler": "3.55.0",
24
+ "@aws-sdk/hash-node": "3.55.0",
25
+ "@aws-sdk/invalid-dependency": "3.55.0",
26
+ "@aws-sdk/middleware-content-length": "3.55.0",
27
+ "@aws-sdk/middleware-host-header": "3.55.0",
28
+ "@aws-sdk/middleware-logger": "3.55.0",
29
+ "@aws-sdk/middleware-retry": "3.55.0",
30
+ "@aws-sdk/middleware-sdk-sts": "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
51
  "entities": "2.2.0",
52
52
  "fast-xml-parser": "3.19.0",
53
- "tslib": "^2.3.0"
53
+ "tslib": "^2.3.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
57
57
  "@tsconfig/recommended": "1.0.1",
58
58
  "@types/node": "^12.7.5",
59
59
  "concurrently": "7.0.0",
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"