@aws-sdk/client-ec2-instance-connect 3.186.0 → 3.190.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,22 @@
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.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
9
+
10
+
11
+
12
+
13
+
14
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
@@ -1,40 +1,33 @@
1
- import { __extends } from "tslib";
2
1
  import { SendSerialConsoleSSHPublicKeyCommand, } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
3
2
  import { SendSSHPublicKeyCommand, } from "./commands/SendSSHPublicKeyCommand";
4
3
  import { EC2InstanceConnectClient } from "./EC2InstanceConnectClient";
5
- var EC2InstanceConnect = (function (_super) {
6
- __extends(EC2InstanceConnect, _super);
7
- function EC2InstanceConnect() {
8
- return _super !== null && _super.apply(this, arguments) || this;
9
- }
10
- EC2InstanceConnect.prototype.sendSerialConsoleSSHPublicKey = function (args, optionsOrCb, cb) {
11
- var command = new SendSerialConsoleSSHPublicKeyCommand(args);
4
+ export class EC2InstanceConnect extends EC2InstanceConnectClient {
5
+ sendSerialConsoleSSHPublicKey(args, optionsOrCb, cb) {
6
+ const command = new SendSerialConsoleSSHPublicKeyCommand(args);
12
7
  if (typeof optionsOrCb === "function") {
13
8
  this.send(command, optionsOrCb);
14
9
  }
15
10
  else if (typeof cb === "function") {
16
11
  if (typeof optionsOrCb !== "object")
17
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
12
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
13
  this.send(command, optionsOrCb || {}, cb);
19
14
  }
20
15
  else {
21
16
  return this.send(command, optionsOrCb);
22
17
  }
23
- };
24
- EC2InstanceConnect.prototype.sendSSHPublicKey = function (args, optionsOrCb, cb) {
25
- var command = new SendSSHPublicKeyCommand(args);
18
+ }
19
+ sendSSHPublicKey(args, optionsOrCb, cb) {
20
+ const command = new SendSSHPublicKeyCommand(args);
26
21
  if (typeof optionsOrCb === "function") {
27
22
  this.send(command, optionsOrCb);
28
23
  }
29
24
  else if (typeof cb === "function") {
30
25
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
27
  this.send(command, optionsOrCb || {}, cb);
33
28
  }
34
29
  else {
35
30
  return this.send(command, optionsOrCb);
36
31
  }
37
- };
38
- return EC2InstanceConnect;
39
- }(EC2InstanceConnectClient));
40
- export { EC2InstanceConnect };
32
+ }
33
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var EC2InstanceConnectClient = (function (_super) {
13
- __extends(EC2InstanceConnectClient, _super);
14
- function EC2InstanceConnectClient(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;
11
+ export class EC2InstanceConnectClient 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));
33
29
  }
34
- EC2InstanceConnectClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return EC2InstanceConnectClient;
38
- }(__Client));
39
- export { EC2InstanceConnectClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SendSSHPublicKeyRequestFilterSensitiveLog, SendSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SendSSHPublicKeyCommand, serializeAws_json1_1SendSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
6
- var SendSSHPublicKeyCommand = (function (_super) {
7
- __extends(SendSSHPublicKeyCommand, _super);
8
- function SendSSHPublicKeyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendSSHPublicKeyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendSSHPublicKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "EC2InstanceConnectClient";
18
- var commandName = "SendSSHPublicKeyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "EC2InstanceConnectClient";
15
+ const commandName = "SendSSHPublicKeyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendSSHPublicKeyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendSSHPublicKeyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendSSHPublicKeyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1SendSSHPublicKeyCommand(input, context);
33
- };
34
- SendSSHPublicKeyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SendSSHPublicKeyCommand(output, context);
36
- };
37
- return SendSSHPublicKeyCommand;
38
- }($Command));
39
- export { SendSSHPublicKeyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog, SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
6
- var SendSerialConsoleSSHPublicKeyCommand = (function (_super) {
7
- __extends(SendSerialConsoleSSHPublicKeyCommand, _super);
8
- function SendSerialConsoleSSHPublicKeyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendSerialConsoleSSHPublicKeyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendSerialConsoleSSHPublicKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "EC2InstanceConnectClient";
18
- var commandName = "SendSerialConsoleSSHPublicKeyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "EC2InstanceConnectClient";
15
+ const commandName = "SendSerialConsoleSSHPublicKeyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendSerialConsoleSSHPublicKeyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand(input, context);
33
- };
34
- SendSerialConsoleSSHPublicKeyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand(output, context);
36
- };
37
- return SendSerialConsoleSSHPublicKeyCommand;
38
- }($Command));
39
- export { SendSerialConsoleSSHPublicKeyCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "ec2-instance-connect", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "ec2-instance-connect",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var EC2InstanceConnectServiceException = (function (_super) {
4
- __extends(EC2InstanceConnectServiceException, _super);
5
- function EC2InstanceConnectServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, EC2InstanceConnectServiceException.prototype);
8
- return _this;
2
+ export class EC2InstanceConnectServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
9
6
  }
10
- return EC2InstanceConnectServiceException;
11
- }(__ServiceException));
12
- export { EC2InstanceConnectServiceException };
7
+ }
@@ -1,149 +1,156 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
- var AuthException = (function (_super) {
4
- __extends(AuthException, _super);
5
- function AuthException(opts) {
6
- var _this = _super.call(this, __assign({ name: "AuthException", $fault: "client" }, opts)) || this;
7
- _this.name = "AuthException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, AuthException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class AuthException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AuthException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AuthException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AuthException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return AuthException;
14
- }(__BaseException));
15
- export { AuthException };
16
- var EC2InstanceNotFoundException = (function (_super) {
17
- __extends(EC2InstanceNotFoundException, _super);
18
- function EC2InstanceNotFoundException(opts) {
19
- var _this = _super.call(this, __assign({ name: "EC2InstanceNotFoundException", $fault: "client" }, opts)) || this;
20
- _this.name = "EC2InstanceNotFoundException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, EC2InstanceNotFoundException.prototype);
23
- _this.Message = opts.Message;
24
- return _this;
14
+ }
15
+ export class EC2InstanceNotFoundException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "EC2InstanceNotFoundException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "EC2InstanceNotFoundException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
25
+ this.Message = opts.Message;
25
26
  }
26
- return EC2InstanceNotFoundException;
27
- }(__BaseException));
28
- export { EC2InstanceNotFoundException };
29
- var EC2InstanceStateInvalidException = (function (_super) {
30
- __extends(EC2InstanceStateInvalidException, _super);
31
- function EC2InstanceStateInvalidException(opts) {
32
- var _this = _super.call(this, __assign({ name: "EC2InstanceStateInvalidException", $fault: "client" }, opts)) || this;
33
- _this.name = "EC2InstanceStateInvalidException";
34
- _this.$fault = "client";
35
- Object.setPrototypeOf(_this, EC2InstanceStateInvalidException.prototype);
36
- _this.Message = opts.Message;
37
- return _this;
27
+ }
28
+ export class EC2InstanceStateInvalidException extends __BaseException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "EC2InstanceStateInvalidException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ this.name = "EC2InstanceStateInvalidException";
36
+ this.$fault = "client";
37
+ Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
38
+ this.Message = opts.Message;
38
39
  }
39
- return EC2InstanceStateInvalidException;
40
- }(__BaseException));
41
- export { EC2InstanceStateInvalidException };
42
- var EC2InstanceTypeInvalidException = (function (_super) {
43
- __extends(EC2InstanceTypeInvalidException, _super);
44
- function EC2InstanceTypeInvalidException(opts) {
45
- var _this = _super.call(this, __assign({ name: "EC2InstanceTypeInvalidException", $fault: "client" }, opts)) || this;
46
- _this.name = "EC2InstanceTypeInvalidException";
47
- _this.$fault = "client";
48
- Object.setPrototypeOf(_this, EC2InstanceTypeInvalidException.prototype);
49
- _this.Message = opts.Message;
50
- return _this;
40
+ }
41
+ export class EC2InstanceTypeInvalidException extends __BaseException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "EC2InstanceTypeInvalidException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "EC2InstanceTypeInvalidException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
51
+ this.Message = opts.Message;
51
52
  }
52
- return EC2InstanceTypeInvalidException;
53
- }(__BaseException));
54
- export { EC2InstanceTypeInvalidException };
55
- var EC2InstanceUnavailableException = (function (_super) {
56
- __extends(EC2InstanceUnavailableException, _super);
57
- function EC2InstanceUnavailableException(opts) {
58
- var _this = _super.call(this, __assign({ name: "EC2InstanceUnavailableException", $fault: "server" }, opts)) || this;
59
- _this.name = "EC2InstanceUnavailableException";
60
- _this.$fault = "server";
61
- Object.setPrototypeOf(_this, EC2InstanceUnavailableException.prototype);
62
- _this.Message = opts.Message;
63
- return _this;
53
+ }
54
+ export class EC2InstanceUnavailableException extends __BaseException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "EC2InstanceUnavailableException",
58
+ $fault: "server",
59
+ ...opts,
60
+ });
61
+ this.name = "EC2InstanceUnavailableException";
62
+ this.$fault = "server";
63
+ Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
64
+ this.Message = opts.Message;
64
65
  }
65
- return EC2InstanceUnavailableException;
66
- }(__BaseException));
67
- export { EC2InstanceUnavailableException };
68
- var InvalidArgsException = (function (_super) {
69
- __extends(InvalidArgsException, _super);
70
- function InvalidArgsException(opts) {
71
- var _this = _super.call(this, __assign({ name: "InvalidArgsException", $fault: "client" }, opts)) || this;
72
- _this.name = "InvalidArgsException";
73
- _this.$fault = "client";
74
- Object.setPrototypeOf(_this, InvalidArgsException.prototype);
75
- _this.Message = opts.Message;
76
- return _this;
66
+ }
67
+ export class InvalidArgsException extends __BaseException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "InvalidArgsException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "InvalidArgsException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, InvalidArgsException.prototype);
77
+ this.Message = opts.Message;
77
78
  }
78
- return InvalidArgsException;
79
- }(__BaseException));
80
- export { InvalidArgsException };
81
- var SerialConsoleAccessDisabledException = (function (_super) {
82
- __extends(SerialConsoleAccessDisabledException, _super);
83
- function SerialConsoleAccessDisabledException(opts) {
84
- var _this = _super.call(this, __assign({ name: "SerialConsoleAccessDisabledException", $fault: "client" }, opts)) || this;
85
- _this.name = "SerialConsoleAccessDisabledException";
86
- _this.$fault = "client";
87
- Object.setPrototypeOf(_this, SerialConsoleAccessDisabledException.prototype);
88
- _this.Message = opts.Message;
89
- return _this;
79
+ }
80
+ export class SerialConsoleAccessDisabledException extends __BaseException {
81
+ constructor(opts) {
82
+ super({
83
+ name: "SerialConsoleAccessDisabledException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ this.name = "SerialConsoleAccessDisabledException";
88
+ this.$fault = "client";
89
+ Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
90
+ this.Message = opts.Message;
90
91
  }
91
- return SerialConsoleAccessDisabledException;
92
- }(__BaseException));
93
- export { SerialConsoleAccessDisabledException };
94
- var SerialConsoleSessionLimitExceededException = (function (_super) {
95
- __extends(SerialConsoleSessionLimitExceededException, _super);
96
- function SerialConsoleSessionLimitExceededException(opts) {
97
- var _this = _super.call(this, __assign({ name: "SerialConsoleSessionLimitExceededException", $fault: "client" }, opts)) || this;
98
- _this.name = "SerialConsoleSessionLimitExceededException";
99
- _this.$fault = "client";
100
- Object.setPrototypeOf(_this, SerialConsoleSessionLimitExceededException.prototype);
101
- _this.Message = opts.Message;
102
- return _this;
92
+ }
93
+ export class SerialConsoleSessionLimitExceededException extends __BaseException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "SerialConsoleSessionLimitExceededException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ this.name = "SerialConsoleSessionLimitExceededException";
101
+ this.$fault = "client";
102
+ Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
103
+ this.Message = opts.Message;
103
104
  }
104
- return SerialConsoleSessionLimitExceededException;
105
- }(__BaseException));
106
- export { SerialConsoleSessionLimitExceededException };
107
- var SerialConsoleSessionUnavailableException = (function (_super) {
108
- __extends(SerialConsoleSessionUnavailableException, _super);
109
- function SerialConsoleSessionUnavailableException(opts) {
110
- var _this = _super.call(this, __assign({ name: "SerialConsoleSessionUnavailableException", $fault: "server" }, opts)) || this;
111
- _this.name = "SerialConsoleSessionUnavailableException";
112
- _this.$fault = "server";
113
- Object.setPrototypeOf(_this, SerialConsoleSessionUnavailableException.prototype);
114
- _this.Message = opts.Message;
115
- return _this;
105
+ }
106
+ export class SerialConsoleSessionUnavailableException extends __BaseException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "SerialConsoleSessionUnavailableException",
110
+ $fault: "server",
111
+ ...opts,
112
+ });
113
+ this.name = "SerialConsoleSessionUnavailableException";
114
+ this.$fault = "server";
115
+ Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
116
+ this.Message = opts.Message;
116
117
  }
117
- return SerialConsoleSessionUnavailableException;
118
- }(__BaseException));
119
- export { SerialConsoleSessionUnavailableException };
120
- var ServiceException = (function (_super) {
121
- __extends(ServiceException, _super);
122
- function ServiceException(opts) {
123
- var _this = _super.call(this, __assign({ name: "ServiceException", $fault: "server" }, opts)) || this;
124
- _this.name = "ServiceException";
125
- _this.$fault = "server";
126
- Object.setPrototypeOf(_this, ServiceException.prototype);
127
- _this.Message = opts.Message;
128
- return _this;
118
+ }
119
+ export class ServiceException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ServiceException",
123
+ $fault: "server",
124
+ ...opts,
125
+ });
126
+ this.name = "ServiceException";
127
+ this.$fault = "server";
128
+ Object.setPrototypeOf(this, ServiceException.prototype);
129
+ this.Message = opts.Message;
129
130
  }
130
- return ServiceException;
131
- }(__BaseException));
132
- export { ServiceException };
133
- var ThrottlingException = (function (_super) {
134
- __extends(ThrottlingException, _super);
135
- function ThrottlingException(opts) {
136
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
137
- _this.name = "ThrottlingException";
138
- _this.$fault = "client";
139
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
140
- _this.Message = opts.Message;
141
- return _this;
131
+ }
132
+ export class ThrottlingException extends __BaseException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "ThrottlingException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ this.name = "ThrottlingException";
140
+ this.$fault = "client";
141
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
142
+ this.Message = opts.Message;
142
143
  }
143
- return ThrottlingException;
144
- }(__BaseException));
145
- export { ThrottlingException };
146
- export var SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- export var SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- export var SendSSHPublicKeyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- export var SendSSHPublicKeyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ }
145
+ export const SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
148
+ export const SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ });
151
+ export const SendSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ export const SendSSHPublicKeyResponseFilterSensitiveLog = (obj) => ({
155
+ ...obj,
156
+ });