@aws-sdk/client-ec2-instance-connect 3.183.0 → 3.186.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,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
@@ -323,10 +323,10 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
323
323
  };
324
324
  };
325
325
  const deserializeMetadata = (output) => {
326
- var _a;
326
+ var _a, _b;
327
327
  return ({
328
328
  httpStatusCode: output.statusCode,
329
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
329
+ 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"],
330
330
  extendedRequestId: output.headers["x-amz-id-2"],
331
331
  cfId: output.headers["x-amz-cf-id"],
332
332
  });
@@ -1,33 +1,40 @@
1
+ import { __extends } from "tslib";
1
2
  import { SendSerialConsoleSSHPublicKeyCommand, } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
2
3
  import { SendSSHPublicKeyCommand, } from "./commands/SendSSHPublicKeyCommand";
3
4
  import { EC2InstanceConnectClient } from "./EC2InstanceConnectClient";
4
- export class EC2InstanceConnect extends EC2InstanceConnectClient {
5
- sendSerialConsoleSSHPublicKey(args, optionsOrCb, cb) {
6
- const command = new SendSerialConsoleSSHPublicKeyCommand(args);
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);
7
12
  if (typeof optionsOrCb === "function") {
8
13
  this.send(command, optionsOrCb);
9
14
  }
10
15
  else if (typeof cb === "function") {
11
16
  if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
13
18
  this.send(command, optionsOrCb || {}, cb);
14
19
  }
15
20
  else {
16
21
  return this.send(command, optionsOrCb);
17
22
  }
18
- }
19
- sendSSHPublicKey(args, optionsOrCb, cb) {
20
- const command = new SendSSHPublicKeyCommand(args);
23
+ };
24
+ EC2InstanceConnect.prototype.sendSSHPublicKey = function (args, optionsOrCb, cb) {
25
+ var command = new SendSSHPublicKeyCommand(args);
21
26
  if (typeof optionsOrCb === "function") {
22
27
  this.send(command, optionsOrCb);
23
28
  }
24
29
  else if (typeof cb === "function") {
25
30
  if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
32
  this.send(command, optionsOrCb || {}, cb);
28
33
  }
29
34
  else {
30
35
  return this.send(command, optionsOrCb);
31
36
  }
32
- }
33
- }
37
+ };
38
+ return EC2InstanceConnect;
39
+ }(EC2InstanceConnectClient));
40
+ export { EC2InstanceConnect };
@@ -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 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));
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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ EC2InstanceConnectClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return EC2InstanceConnectClient;
38
+ }(__Client));
39
+ export { EC2InstanceConnectClient };
@@ -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 { SendSSHPublicKeyRequestFilterSensitiveLog, SendSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SendSSHPublicKeyCommand, serializeAws_json1_1SendSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
5
- export class SendSSHPublicKeyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SendSSHPublicKeyCommand.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 = "EC2InstanceConnectClient";
15
- const commandName = "SendSSHPublicKeyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: SendSSHPublicKeyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SendSSHPublicKeyResponseFilterSensitiveLog,
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
+ SendSSHPublicKeyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1SendSSHPublicKeyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SendSSHPublicKeyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SendSSHPublicKeyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SendSSHPublicKeyCommand;
38
+ }($Command));
39
+ export { SendSSHPublicKeyCommand };
@@ -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 { SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog, SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
5
- export class SendSerialConsoleSSHPublicKeyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SendSerialConsoleSSHPublicKeyCommand.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 = "EC2InstanceConnectClient";
15
- const commandName = "SendSerialConsoleSSHPublicKeyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog,
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
+ SendSerialConsoleSSHPublicKeyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SendSerialConsoleSSHPublicKeyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SendSerialConsoleSSHPublicKeyCommand;
38
+ }($Command));
39
+ export { SendSerialConsoleSSHPublicKeyCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "ec2-instance-connect",
126
- regionHash,
127
- partitionHash,
128
- });
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
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class EC2InstanceConnectServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
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;
6
9
  }
7
- }
10
+ return EC2InstanceConnectServiceException;
11
+ }(__ServiceException));
12
+ export { EC2InstanceConnectServiceException };
@@ -1,156 +1,149 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
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;
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;
13
12
  }
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;
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;
26
25
  }
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;
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;
39
38
  }
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;
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;
52
51
  }
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;
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;
65
64
  }
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;
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;
78
77
  }
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;
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;
91
90
  }
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;
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;
104
103
  }
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;
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;
117
116
  }
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;
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;
130
129
  }
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;
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;
143
142
  }
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
- });
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)); };