@aws-sdk/client-account 3.183.0 → 3.185.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,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-account
@@ -438,10 +438,10 @@ const deserializeAws_restJson1ContactInformation = (output, context) => {
438
438
  };
439
439
  };
440
440
  const deserializeMetadata = (output) => {
441
- var _a;
441
+ var _a, _b;
442
442
  return ({
443
443
  httpStatusCode: output.statusCode,
444
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
444
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
445
445
  extendedRequestId: output.headers["x-amz-id-2"],
446
446
  cfId: output.headers["x-amz-cf-id"],
447
447
  });
@@ -1,78 +1,85 @@
1
+ import { __extends } from "tslib";
1
2
  import { AccountClient } from "./AccountClient";
2
3
  import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";
3
4
  import { GetAlternateContactCommand, } from "./commands/GetAlternateContactCommand";
4
5
  import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
5
6
  import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
6
7
  import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
7
- export class Account extends AccountClient {
8
- deleteAlternateContact(args, optionsOrCb, cb) {
9
- const command = new DeleteAlternateContactCommand(args);
8
+ var Account = (function (_super) {
9
+ __extends(Account, _super);
10
+ function Account() {
11
+ return _super !== null && _super.apply(this, arguments) || this;
12
+ }
13
+ Account.prototype.deleteAlternateContact = function (args, optionsOrCb, cb) {
14
+ var command = new DeleteAlternateContactCommand(args);
10
15
  if (typeof optionsOrCb === "function") {
11
16
  this.send(command, optionsOrCb);
12
17
  }
13
18
  else if (typeof cb === "function") {
14
19
  if (typeof optionsOrCb !== "object")
15
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
16
21
  this.send(command, optionsOrCb || {}, cb);
17
22
  }
18
23
  else {
19
24
  return this.send(command, optionsOrCb);
20
25
  }
21
- }
22
- getAlternateContact(args, optionsOrCb, cb) {
23
- const command = new GetAlternateContactCommand(args);
26
+ };
27
+ Account.prototype.getAlternateContact = function (args, optionsOrCb, cb) {
28
+ var command = new GetAlternateContactCommand(args);
24
29
  if (typeof optionsOrCb === "function") {
25
30
  this.send(command, optionsOrCb);
26
31
  }
27
32
  else if (typeof cb === "function") {
28
33
  if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
30
35
  this.send(command, optionsOrCb || {}, cb);
31
36
  }
32
37
  else {
33
38
  return this.send(command, optionsOrCb);
34
39
  }
35
- }
36
- getContactInformation(args, optionsOrCb, cb) {
37
- const command = new GetContactInformationCommand(args);
40
+ };
41
+ Account.prototype.getContactInformation = function (args, optionsOrCb, cb) {
42
+ var command = new GetContactInformationCommand(args);
38
43
  if (typeof optionsOrCb === "function") {
39
44
  this.send(command, optionsOrCb);
40
45
  }
41
46
  else if (typeof cb === "function") {
42
47
  if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
44
49
  this.send(command, optionsOrCb || {}, cb);
45
50
  }
46
51
  else {
47
52
  return this.send(command, optionsOrCb);
48
53
  }
49
- }
50
- putAlternateContact(args, optionsOrCb, cb) {
51
- const command = new PutAlternateContactCommand(args);
54
+ };
55
+ Account.prototype.putAlternateContact = function (args, optionsOrCb, cb) {
56
+ var command = new PutAlternateContactCommand(args);
52
57
  if (typeof optionsOrCb === "function") {
53
58
  this.send(command, optionsOrCb);
54
59
  }
55
60
  else if (typeof cb === "function") {
56
61
  if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
58
63
  this.send(command, optionsOrCb || {}, cb);
59
64
  }
60
65
  else {
61
66
  return this.send(command, optionsOrCb);
62
67
  }
63
- }
64
- putContactInformation(args, optionsOrCb, cb) {
65
- const command = new PutContactInformationCommand(args);
68
+ };
69
+ Account.prototype.putContactInformation = function (args, optionsOrCb, cb) {
70
+ var command = new PutContactInformationCommand(args);
66
71
  if (typeof optionsOrCb === "function") {
67
72
  this.send(command, optionsOrCb);
68
73
  }
69
74
  else if (typeof cb === "function") {
70
75
  if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
72
77
  this.send(command, optionsOrCb || {}, cb);
73
78
  }
74
79
  else {
75
80
  return this.send(command, optionsOrCb);
76
81
  }
77
- }
78
- }
82
+ };
83
+ return Account;
84
+ }(AccountClient));
85
+ export { Account };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class AccountClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var AccountClient = (function (_super) {
13
+ __extends(AccountClient, _super);
14
+ function AccountClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ AccountClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AccountClient;
38
+ }(__Client));
39
+ export { AccountClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteAlternateContactCommand, serializeAws_restJson1DeleteAlternateContactCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteAlternateContactCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteAlternateContactCommand = (function (_super) {
7
+ __extends(DeleteAlternateContactCommand, _super);
8
+ function DeleteAlternateContactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteAlternateContactCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AccountClient";
15
- const commandName = "DeleteAlternateContactCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AccountClient";
18
+ var commandName = "DeleteAlternateContactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteAlternateContactRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteAlternateContactCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteAlternateContactCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteAlternateContactCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteAlternateContactCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteAlternateContactCommand;
38
+ }($Command));
39
+ export { DeleteAlternateContactCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetAlternateContactRequestFilterSensitiveLog, GetAlternateContactResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetAlternateContactCommand, serializeAws_restJson1GetAlternateContactCommand, } from "../protocols/Aws_restJson1";
5
- export class GetAlternateContactCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetAlternateContactCommand = (function (_super) {
7
+ __extends(GetAlternateContactCommand, _super);
8
+ function GetAlternateContactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetAlternateContactCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AccountClient";
15
- const commandName = "GetAlternateContactCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AccountClient";
18
+ var commandName = "GetAlternateContactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetAlternateContactRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetAlternateContactResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetAlternateContactCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetAlternateContactCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetAlternateContactCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetAlternateContactCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetAlternateContactCommand;
38
+ }($Command));
39
+ export { GetAlternateContactCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetContactInformationRequestFilterSensitiveLog, GetContactInformationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetContactInformationCommand, serializeAws_restJson1GetContactInformationCommand, } from "../protocols/Aws_restJson1";
5
- export class GetContactInformationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetContactInformationCommand = (function (_super) {
7
+ __extends(GetContactInformationCommand, _super);
8
+ function GetContactInformationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetContactInformationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AccountClient";
15
- const commandName = "GetContactInformationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AccountClient";
18
+ var commandName = "GetContactInformationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetContactInformationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetContactInformationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetContactInformationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetContactInformationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetContactInformationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetContactInformationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetContactInformationCommand;
38
+ }($Command));
39
+ export { GetContactInformationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutAlternateContactCommand, serializeAws_restJson1PutAlternateContactCommand, } from "../protocols/Aws_restJson1";
5
- export class PutAlternateContactCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutAlternateContactCommand = (function (_super) {
7
+ __extends(PutAlternateContactCommand, _super);
8
+ function PutAlternateContactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutAlternateContactCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AccountClient";
15
- const commandName = "PutAlternateContactCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AccountClient";
18
+ var commandName = "PutAlternateContactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutAlternateContactRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutAlternateContactCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1PutAlternateContactCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutAlternateContactCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutAlternateContactCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutAlternateContactCommand;
38
+ }($Command));
39
+ export { PutAlternateContactCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutContactInformationRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutContactInformationCommand, serializeAws_restJson1PutContactInformationCommand, } from "../protocols/Aws_restJson1";
5
- export class PutContactInformationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutContactInformationCommand = (function (_super) {
7
+ __extends(PutContactInformationCommand, _super);
8
+ function PutContactInformationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutContactInformationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AccountClient";
15
- const commandName = "PutContactInformationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AccountClient";
18
+ var commandName = "PutContactInformationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutContactInformationRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutContactInformationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1PutContactInformationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutContactInformationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutContactInformationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutContactInformationCommand;
38
+ }($Command));
39
+ export { PutContactInformationCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "aws-cn-global": {
4
5
  variants: [
5
6
  {
@@ -19,7 +20,7 @@ const regionHash = {
19
20
  signingRegion: "us-east-1",
20
21
  },
21
22
  };
22
- const partitionHash = {
23
+ var partitionHash = {
23
24
  aws: {
24
25
  regions: [
25
26
  "af-south-1",
@@ -142,9 +143,8 @@ const partitionHash = {
142
143
  ],
143
144
  },
144
145
  };
145
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
146
- ...options,
147
- signingService: "account",
148
- regionHash,
149
- partitionHash,
150
- });
146
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
147
+ return __generator(this, function (_a) {
148
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "account", regionHash: regionHash, partitionHash: partitionHash }))];
149
+ });
150
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class AccountServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, AccountServiceException.prototype);
3
+ var AccountServiceException = (function (_super) {
4
+ __extends(AccountServiceException, _super);
5
+ function AccountServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, AccountServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return AccountServiceException;
11
+ }(__ServiceException));
12
+ export { AccountServiceException };