@aws-sdk/client-ec2-instance-connect 3.131.0 → 3.141.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,39 @@
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.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
18
+
19
+
20
+ ### Features
21
+
22
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.135.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.134.0...v3.135.0) (2022-07-21)
29
+
30
+
31
+ ### Features
32
+
33
+ * **client-ec2-instance-connect:** This release includes a new exception type "EC2InstanceUnavailableException" for SendSSHPublicKey and SendSerialConsoleSSHPublicKey APIs. ([a2aef86](https://github.com/aws/aws-sdk-js-v3/commit/a2aef86781ea0833877ada3ed3dcdbaab5d700ec))
34
+
35
+
36
+
37
+
38
+
6
39
  # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
7
40
 
8
41
  **Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
package/README.md CHANGED
@@ -170,7 +170,7 @@ try {
170
170
  const data = await client.send(command);
171
171
  // process data.
172
172
  } catch (error) {
173
- const { requestId, cfId, extendedRequestId } = error.$metadata;
173
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
174
174
  console.log({ requestId, cfId, extendedRequestId });
175
175
  /**
176
176
  * The keys within exceptions are also parsed.
@@ -20,8 +20,8 @@ class SendSSHPublicKeyCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.SendSSHPublicKeyRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.SendSSHPublicKeyResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.SendSSHPublicKeyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.SendSSHPublicKeyResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,8 +20,8 @@ class SendSerialConsoleSSHPublicKeyCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.SendSerialConsoleSSHPublicKeyRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.SendSerialConsoleSSHPublicKeyResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SendSSHPublicKeyResponse = exports.SendSSHPublicKeyRequest = exports.ThrottlingException = exports.ServiceException = exports.SerialConsoleSessionUnavailableException = exports.SerialConsoleSessionLimitExceededException = exports.SerialConsoleAccessDisabledException = exports.SendSerialConsoleSSHPublicKeyResponse = exports.SendSerialConsoleSSHPublicKeyRequest = exports.InvalidArgsException = exports.EC2InstanceTypeInvalidException = exports.EC2InstanceStateInvalidException = exports.EC2InstanceNotFoundException = exports.AuthException = void 0;
3
+ exports.SendSSHPublicKeyResponseFilterSensitiveLog = exports.SendSSHPublicKeyRequestFilterSensitiveLog = exports.SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog = exports.SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog = exports.ThrottlingException = exports.ServiceException = exports.SerialConsoleSessionUnavailableException = exports.SerialConsoleSessionLimitExceededException = exports.SerialConsoleAccessDisabledException = exports.InvalidArgsException = exports.EC2InstanceUnavailableException = exports.EC2InstanceTypeInvalidException = exports.EC2InstanceStateInvalidException = exports.EC2InstanceNotFoundException = exports.AuthException = void 0;
4
4
  const EC2InstanceConnectServiceException_1 = require("./EC2InstanceConnectServiceException");
5
5
  class AuthException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
6
6
  constructor(opts) {
@@ -58,6 +58,20 @@ class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException
58
58
  }
59
59
  }
60
60
  exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException;
61
+ class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
62
+ constructor(opts) {
63
+ super({
64
+ name: "EC2InstanceUnavailableException",
65
+ $fault: "server",
66
+ ...opts,
67
+ });
68
+ this.name = "EC2InstanceUnavailableException";
69
+ this.$fault = "server";
70
+ Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
71
+ this.Message = opts.Message;
72
+ }
73
+ }
74
+ exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException;
61
75
  class InvalidArgsException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
62
76
  constructor(opts) {
63
77
  super({
@@ -72,18 +86,6 @@ class InvalidArgsException extends EC2InstanceConnectServiceException_1.EC2Insta
72
86
  }
73
87
  }
74
88
  exports.InvalidArgsException = InvalidArgsException;
75
- var SendSerialConsoleSSHPublicKeyRequest;
76
- (function (SendSerialConsoleSSHPublicKeyRequest) {
77
- SendSerialConsoleSSHPublicKeyRequest.filterSensitiveLog = (obj) => ({
78
- ...obj,
79
- });
80
- })(SendSerialConsoleSSHPublicKeyRequest = exports.SendSerialConsoleSSHPublicKeyRequest || (exports.SendSerialConsoleSSHPublicKeyRequest = {}));
81
- var SendSerialConsoleSSHPublicKeyResponse;
82
- (function (SendSerialConsoleSSHPublicKeyResponse) {
83
- SendSerialConsoleSSHPublicKeyResponse.filterSensitiveLog = (obj) => ({
84
- ...obj,
85
- });
86
- })(SendSerialConsoleSSHPublicKeyResponse = exports.SendSerialConsoleSSHPublicKeyResponse || (exports.SendSerialConsoleSSHPublicKeyResponse = {}));
87
89
  class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
88
90
  constructor(opts) {
89
91
  super({
@@ -154,15 +156,19 @@ class ThrottlingException extends EC2InstanceConnectServiceException_1.EC2Instan
154
156
  }
155
157
  }
156
158
  exports.ThrottlingException = ThrottlingException;
157
- var SendSSHPublicKeyRequest;
158
- (function (SendSSHPublicKeyRequest) {
159
- SendSSHPublicKeyRequest.filterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- })(SendSSHPublicKeyRequest = exports.SendSSHPublicKeyRequest || (exports.SendSSHPublicKeyRequest = {}));
163
- var SendSSHPublicKeyResponse;
164
- (function (SendSSHPublicKeyResponse) {
165
- SendSSHPublicKeyResponse.filterSensitiveLog = (obj) => ({
166
- ...obj,
167
- });
168
- })(SendSSHPublicKeyResponse = exports.SendSSHPublicKeyResponse || (exports.SendSSHPublicKeyResponse = {}));
159
+ const SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
160
+ ...obj,
161
+ });
162
+ exports.SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog = SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog;
163
+ const SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ });
166
+ exports.SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog = SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog;
167
+ const SendSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ exports.SendSSHPublicKeyRequestFilterSensitiveLog = SendSSHPublicKeyRequestFilterSensitiveLog;
171
+ const SendSSHPublicKeyResponseFilterSensitiveLog = (obj) => ({
172
+ ...obj,
173
+ });
174
+ exports.SendSSHPublicKeyResponseFilterSensitiveLog = SendSSHPublicKeyResponseFilterSensitiveLog;
@@ -59,6 +59,9 @@ const deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = async (o
59
59
  case "EC2InstanceTypeInvalidException":
60
60
  case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException":
61
61
  throw await deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse(parsedOutput, context);
62
+ case "EC2InstanceUnavailableException":
63
+ case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
64
+ throw await deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse(parsedOutput, context);
62
65
  case "InvalidArgsException":
63
66
  case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
64
67
  throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
@@ -120,6 +123,9 @@ const deserializeAws_json1_1SendSSHPublicKeyCommandError = async (output, contex
120
123
  case "EC2InstanceStateInvalidException":
121
124
  case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":
122
125
  throw await deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse(parsedOutput, context);
126
+ case "EC2InstanceUnavailableException":
127
+ case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
128
+ throw await deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse(parsedOutput, context);
123
129
  case "InvalidArgsException":
124
130
  case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
125
131
  throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
@@ -177,6 +183,15 @@ const deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse = async (par
177
183
  });
178
184
  return (0, smithy_client_1.decorateServiceException)(exception, body);
179
185
  };
186
+ const deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse = async (parsedOutput, context) => {
187
+ const body = parsedOutput.body;
188
+ const deserialized = deserializeAws_json1_1EC2InstanceUnavailableException(body, context);
189
+ const exception = new models_0_1.EC2InstanceUnavailableException({
190
+ $metadata: deserializeMetadata(parsedOutput),
191
+ ...deserialized,
192
+ });
193
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
194
+ };
180
195
  const deserializeAws_json1_1InvalidArgsExceptionResponse = async (parsedOutput, context) => {
181
196
  const body = parsedOutput.body;
182
197
  const deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
@@ -266,6 +281,11 @@ const deserializeAws_json1_1EC2InstanceTypeInvalidException = (output, context)
266
281
  Message: (0, smithy_client_1.expectString)(output.Message),
267
282
  };
268
283
  };
284
+ const deserializeAws_json1_1EC2InstanceUnavailableException = (output, context) => {
285
+ return {
286
+ Message: (0, smithy_client_1.expectString)(output.Message),
287
+ };
288
+ };
269
289
  const deserializeAws_json1_1InvalidArgsException = (output, context) => {
270
290
  return {
271
291
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { SendSSHPublicKeyRequest, SendSSHPublicKeyResponse } from "../models/models_0";
4
+ import { SendSSHPublicKeyRequestFilterSensitiveLog, SendSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1SendSSHPublicKeyCommand, serializeAws_json1_1SendSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
6
6
  var SendSSHPublicKeyCommand = (function (_super) {
7
7
  __extends(SendSSHPublicKeyCommand, _super);
@@ -20,8 +20,8 @@ var SendSSHPublicKeyCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: SendSSHPublicKeyRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: SendSSHPublicKeyResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: SendSSHPublicKeyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: SendSSHPublicKeyResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { SendSerialConsoleSSHPublicKeyRequest, SendSerialConsoleSSHPublicKeyResponse } from "../models/models_0";
4
+ import { SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog, SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
6
6
  var SendSerialConsoleSSHPublicKeyCommand = (function (_super) {
7
7
  __extends(SendSerialConsoleSSHPublicKeyCommand, _super);
@@ -20,8 +20,8 @@ var SendSerialConsoleSSHPublicKeyCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -52,6 +52,19 @@ var EC2InstanceTypeInvalidException = (function (_super) {
52
52
  return EC2InstanceTypeInvalidException;
53
53
  }(__BaseException));
54
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;
64
+ }
65
+ return EC2InstanceUnavailableException;
66
+ }(__BaseException));
67
+ export { EC2InstanceUnavailableException };
55
68
  var InvalidArgsException = (function (_super) {
56
69
  __extends(InvalidArgsException, _super);
57
70
  function InvalidArgsException(opts) {
@@ -65,14 +78,6 @@ var InvalidArgsException = (function (_super) {
65
78
  return InvalidArgsException;
66
79
  }(__BaseException));
67
80
  export { InvalidArgsException };
68
- export var SendSerialConsoleSSHPublicKeyRequest;
69
- (function (SendSerialConsoleSSHPublicKeyRequest) {
70
- SendSerialConsoleSSHPublicKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
- })(SendSerialConsoleSSHPublicKeyRequest || (SendSerialConsoleSSHPublicKeyRequest = {}));
72
- export var SendSerialConsoleSSHPublicKeyResponse;
73
- (function (SendSerialConsoleSSHPublicKeyResponse) {
74
- SendSerialConsoleSSHPublicKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- })(SendSerialConsoleSSHPublicKeyResponse || (SendSerialConsoleSSHPublicKeyResponse = {}));
76
81
  var SerialConsoleAccessDisabledException = (function (_super) {
77
82
  __extends(SerialConsoleAccessDisabledException, _super);
78
83
  function SerialConsoleAccessDisabledException(opts) {
@@ -138,11 +143,7 @@ var ThrottlingException = (function (_super) {
138
143
  return ThrottlingException;
139
144
  }(__BaseException));
140
145
  export { ThrottlingException };
141
- export var SendSSHPublicKeyRequest;
142
- (function (SendSSHPublicKeyRequest) {
143
- SendSSHPublicKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- })(SendSSHPublicKeyRequest || (SendSSHPublicKeyRequest = {}));
145
- export var SendSSHPublicKeyResponse;
146
- (function (SendSSHPublicKeyResponse) {
147
- SendSSHPublicKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- })(SendSSHPublicKeyResponse || (SendSSHPublicKeyResponse = {}));
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)); };
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, } from "@aws-sdk/smithy-client";
4
4
  import { EC2InstanceConnectServiceException as __BaseException } from "../models/EC2InstanceConnectServiceException";
5
- import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException, } from "../models/models_0";
5
+ import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException, } from "../models/models_0";
6
6
  export var serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
7
7
  var headers, body;
8
8
  return __generator(this, function (_a) {
@@ -65,20 +65,22 @@ var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (
65
65
  case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException": return [3, 6];
66
66
  case "EC2InstanceTypeInvalidException": return [3, 8];
67
67
  case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException": return [3, 8];
68
- case "InvalidArgsException": return [3, 10];
69
- case "com.amazonaws.ec2instanceconnect#InvalidArgsException": return [3, 10];
70
- case "SerialConsoleAccessDisabledException": return [3, 12];
71
- case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException": return [3, 12];
72
- case "SerialConsoleSessionLimitExceededException": return [3, 14];
73
- case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException": return [3, 14];
74
- case "SerialConsoleSessionUnavailableException": return [3, 16];
75
- case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException": return [3, 16];
76
- case "ServiceException": return [3, 18];
77
- case "com.amazonaws.ec2instanceconnect#ServiceException": return [3, 18];
78
- case "ThrottlingException": return [3, 20];
79
- case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 20];
68
+ case "EC2InstanceUnavailableException": return [3, 10];
69
+ case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException": return [3, 10];
70
+ case "InvalidArgsException": return [3, 12];
71
+ case "com.amazonaws.ec2instanceconnect#InvalidArgsException": return [3, 12];
72
+ case "SerialConsoleAccessDisabledException": return [3, 14];
73
+ case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException": return [3, 14];
74
+ case "SerialConsoleSessionLimitExceededException": return [3, 16];
75
+ case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException": return [3, 16];
76
+ case "SerialConsoleSessionUnavailableException": return [3, 18];
77
+ case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException": return [3, 18];
78
+ case "ServiceException": return [3, 20];
79
+ case "com.amazonaws.ec2instanceconnect#ServiceException": return [3, 20];
80
+ case "ThrottlingException": return [3, 22];
81
+ case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 22];
80
82
  }
81
- return [3, 22];
83
+ return [3, 24];
82
84
  case 2: return [4, deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)];
83
85
  case 3: throw _d.sent();
84
86
  case 4: return [4, deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)];
@@ -87,19 +89,21 @@ var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (
87
89
  case 7: throw _d.sent();
88
90
  case 8: return [4, deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse(parsedOutput, context)];
89
91
  case 9: throw _d.sent();
90
- case 10: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
92
+ case 10: return [4, deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse(parsedOutput, context)];
91
93
  case 11: throw _d.sent();
92
- case 12: return [4, deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse(parsedOutput, context)];
94
+ case 12: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
93
95
  case 13: throw _d.sent();
94
- case 14: return [4, deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse(parsedOutput, context)];
96
+ case 14: return [4, deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse(parsedOutput, context)];
95
97
  case 15: throw _d.sent();
96
- case 16: return [4, deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse(parsedOutput, context)];
98
+ case 16: return [4, deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse(parsedOutput, context)];
97
99
  case 17: throw _d.sent();
98
- case 18: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
100
+ case 18: return [4, deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse(parsedOutput, context)];
99
101
  case 19: throw _d.sent();
100
- case 20: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
102
+ case 20: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
101
103
  case 21: throw _d.sent();
102
- case 22:
104
+ case 22: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
105
+ case 23: throw _d.sent();
106
+ case 24:
103
107
  parsedBody = parsedOutput.body;
104
108
  $metadata = deserializeMetadata(output);
105
109
  statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
@@ -150,27 +154,31 @@ var deserializeAws_json1_1SendSSHPublicKeyCommandError = function (output, conte
150
154
  case "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException": return [3, 4];
151
155
  case "EC2InstanceStateInvalidException": return [3, 6];
152
156
  case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException": return [3, 6];
153
- case "InvalidArgsException": return [3, 8];
154
- case "com.amazonaws.ec2instanceconnect#InvalidArgsException": return [3, 8];
155
- case "ServiceException": return [3, 10];
156
- case "com.amazonaws.ec2instanceconnect#ServiceException": return [3, 10];
157
- case "ThrottlingException": return [3, 12];
158
- case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 12];
157
+ case "EC2InstanceUnavailableException": return [3, 8];
158
+ case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException": return [3, 8];
159
+ case "InvalidArgsException": return [3, 10];
160
+ case "com.amazonaws.ec2instanceconnect#InvalidArgsException": return [3, 10];
161
+ case "ServiceException": return [3, 12];
162
+ case "com.amazonaws.ec2instanceconnect#ServiceException": return [3, 12];
163
+ case "ThrottlingException": return [3, 14];
164
+ case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 14];
159
165
  }
160
- return [3, 14];
166
+ return [3, 16];
161
167
  case 2: return [4, deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)];
162
168
  case 3: throw _d.sent();
163
169
  case 4: return [4, deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)];
164
170
  case 5: throw _d.sent();
165
171
  case 6: return [4, deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse(parsedOutput, context)];
166
172
  case 7: throw _d.sent();
167
- case 8: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
173
+ case 8: return [4, deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse(parsedOutput, context)];
168
174
  case 9: throw _d.sent();
169
- case 10: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
175
+ case 10: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
170
176
  case 11: throw _d.sent();
171
- case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
177
+ case 12: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
172
178
  case 13: throw _d.sent();
173
- case 14:
179
+ case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
180
+ case 15: throw _d.sent();
181
+ case 16:
174
182
  parsedBody = parsedOutput.body;
175
183
  $metadata = deserializeMetadata(output);
176
184
  statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
@@ -219,6 +227,15 @@ var deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse = function (pa
219
227
  return [2, __decorateServiceException(exception, body)];
220
228
  });
221
229
  }); };
230
+ var deserializeAws_json1_1EC2InstanceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
231
+ var body, deserialized, exception;
232
+ return __generator(this, function (_a) {
233
+ body = parsedOutput.body;
234
+ deserialized = deserializeAws_json1_1EC2InstanceUnavailableException(body, context);
235
+ exception = new EC2InstanceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
236
+ return [2, __decorateServiceException(exception, body)];
237
+ });
238
+ }); };
222
239
  var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
223
240
  var body, deserialized, exception;
224
241
  return __generator(this, function (_a) {
@@ -299,6 +316,11 @@ var deserializeAws_json1_1EC2InstanceTypeInvalidException = function (output, co
299
316
  Message: __expectString(output.Message),
300
317
  };
301
318
  };
319
+ var deserializeAws_json1_1EC2InstanceUnavailableException = function (output, context) {
320
+ return {
321
+ Message: __expectString(output.Message),
322
+ };
323
+ };
302
324
  var deserializeAws_json1_1InvalidArgsException = function (output, context) {
303
325
  return {
304
326
  Message: __expectString(output.Message),
@@ -51,6 +51,18 @@ export declare class EC2InstanceTypeInvalidException extends __BaseException {
51
51
  */
52
52
  constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
53
53
  }
54
+ /**
55
+ * <p>The instance is currently unavailable. Wait a few minutes and try again.</p>
56
+ */
57
+ export declare class EC2InstanceUnavailableException extends __BaseException {
58
+ readonly name: "EC2InstanceUnavailableException";
59
+ readonly $fault: "server";
60
+ Message?: string;
61
+ /**
62
+ * @internal
63
+ */
64
+ constructor(opts: __ExceptionOptionType<EC2InstanceUnavailableException, __BaseException>);
65
+ }
54
66
  /**
55
67
  * <p>One of the parameters is not valid.</p>
56
68
  */
@@ -80,12 +92,6 @@ export interface SendSerialConsoleSSHPublicKeyRequest {
80
92
  */
81
93
  SSHPublicKey: string | undefined;
82
94
  }
83
- export declare namespace SendSerialConsoleSSHPublicKeyRequest {
84
- /**
85
- * @internal
86
- */
87
- const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyRequest) => any;
88
- }
89
95
  export interface SendSerialConsoleSSHPublicKeyResponse {
90
96
  /**
91
97
  * <p>The ID of the request. Please provide this ID when contacting AWS Support for assistance.</p>
@@ -96,12 +102,6 @@ export interface SendSerialConsoleSSHPublicKeyResponse {
96
102
  */
97
103
  Success?: boolean;
98
104
  }
99
- export declare namespace SendSerialConsoleSSHPublicKeyResponse {
100
- /**
101
- * @internal
102
- */
103
- const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
104
- }
105
105
  /**
106
106
  * <p>Your account is not authorized to use the EC2 Serial Console. To authorize your
107
107
  * account, run the EnableSerialConsoleAccess API. For more information, see
@@ -183,12 +183,6 @@ export interface SendSSHPublicKeyRequest {
183
183
  */
184
184
  AvailabilityZone?: string;
185
185
  }
186
- export declare namespace SendSSHPublicKeyRequest {
187
- /**
188
- * @internal
189
- */
190
- const filterSensitiveLog: (obj: SendSSHPublicKeyRequest) => any;
191
- }
192
186
  export interface SendSSHPublicKeyResponse {
193
187
  /**
194
188
  * <p>The ID of the request. Please provide this ID when contacting AWS Support for assistance.</p>
@@ -199,9 +193,19 @@ export interface SendSSHPublicKeyResponse {
199
193
  */
200
194
  Success?: boolean;
201
195
  }
202
- export declare namespace SendSSHPublicKeyResponse {
203
- /**
204
- * @internal
205
- */
206
- const filterSensitiveLog: (obj: SendSSHPublicKeyResponse) => any;
207
- }
196
+ /**
197
+ * @internal
198
+ */
199
+ export declare const SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyRequest) => any;
200
+ /**
201
+ * @internal
202
+ */
203
+ export declare const SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
204
+ /**
205
+ * @internal
206
+ */
207
+ export declare const SendSSHPublicKeyRequestFilterSensitiveLog: (obj: SendSSHPublicKeyRequest) => any;
208
+ /**
209
+ * @internal
210
+ */
211
+ export declare const SendSSHPublicKeyResponseFilterSensitiveLog: (obj: SendSSHPublicKeyResponse) => any;
@@ -33,6 +33,14 @@ export declare class EC2InstanceTypeInvalidException extends __BaseException {
33
33
  constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
34
34
  }
35
35
 
36
+ export declare class EC2InstanceUnavailableException extends __BaseException {
37
+ readonly name: "EC2InstanceUnavailableException";
38
+ readonly $fault: "server";
39
+ Message?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<EC2InstanceUnavailableException, __BaseException>);
42
+ }
43
+
36
44
  export declare class InvalidArgsException extends __BaseException {
37
45
  readonly name: "InvalidArgsException";
38
46
  readonly $fault: "client";
@@ -48,20 +56,12 @@ export interface SendSerialConsoleSSHPublicKeyRequest {
48
56
 
49
57
  SSHPublicKey: string | undefined;
50
58
  }
51
- export declare namespace SendSerialConsoleSSHPublicKeyRequest {
52
-
53
- const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyRequest) => any;
54
- }
55
59
  export interface SendSerialConsoleSSHPublicKeyResponse {
56
60
 
57
61
  RequestId?: string;
58
62
 
59
63
  Success?: boolean;
60
64
  }
61
- export declare namespace SendSerialConsoleSSHPublicKeyResponse {
62
-
63
- const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
64
- }
65
65
 
66
66
  export declare class SerialConsoleAccessDisabledException extends __BaseException {
67
67
  readonly name: "SerialConsoleAccessDisabledException";
@@ -112,17 +112,17 @@ export interface SendSSHPublicKeyRequest {
112
112
 
113
113
  AvailabilityZone?: string;
114
114
  }
115
- export declare namespace SendSSHPublicKeyRequest {
116
-
117
- const filterSensitiveLog: (obj: SendSSHPublicKeyRequest) => any;
118
- }
119
115
  export interface SendSSHPublicKeyResponse {
120
116
 
121
117
  RequestId?: string;
122
118
 
123
119
  Success?: boolean;
124
120
  }
125
- export declare namespace SendSSHPublicKeyResponse {
126
-
127
- const filterSensitiveLog: (obj: SendSSHPublicKeyResponse) => any;
128
- }
121
+
122
+ export declare const SendSerialConsoleSSHPublicKeyRequestFilterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyRequest) => any;
123
+
124
+ export declare const SendSerialConsoleSSHPublicKeyResponseFilterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
125
+
126
+ export declare const SendSSHPublicKeyRequestFilterSensitiveLog: (obj: SendSSHPublicKeyRequest) => any;
127
+
128
+ export declare const SendSSHPublicKeyResponseFilterSensitiveLog: (obj: SendSSHPublicKeyResponse) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2-instance-connect",
3
3
  "description": "AWS SDK for JavaScript Ec2 Instance Connect Client for Node.js, Browser and React Native",
4
- "version": "3.131.0",
4
+ "version": "3.141.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,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.131.0",
21
+ "@aws-sdk/client-sts": "3.141.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.131.0",
23
+ "@aws-sdk/credential-provider-node": "3.141.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.137.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.130.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.137.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",