@aws-sdk/client-ec2-instance-connect 3.50.0 → 3.53.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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/EC2InstanceConnectServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +142 -1
- package/dist-cjs/protocols/Aws_json1_1.js +56 -166
- package/dist-es/index.js +1 -0
- package/dist-es/models/EC2InstanceConnectServiceException.js +12 -0
- package/dist-es/models/models_0.js +132 -1
- package/dist-es/protocols/Aws_json1_1.js +89 -155
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/EC2InstanceConnectServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -31
- package/dist-types/ts3.4/EC2InstanceConnect.d.ts +15 -0
- package/dist-types/ts3.4/EC2InstanceConnectClient.d.ts +75 -0
- package/dist-types/ts3.4/commands/SendSSHPublicKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendSerialConsoleSSHPublicKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/EC2InstanceConnectServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +128 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,4 +1,70 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
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;
|
|
12
|
+
}
|
|
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;
|
|
25
|
+
}
|
|
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;
|
|
38
|
+
}
|
|
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;
|
|
51
|
+
}
|
|
52
|
+
return EC2InstanceTypeInvalidException;
|
|
53
|
+
}(__BaseException));
|
|
54
|
+
export { EC2InstanceTypeInvalidException };
|
|
55
|
+
var InvalidArgsException = (function (_super) {
|
|
56
|
+
__extends(InvalidArgsException, _super);
|
|
57
|
+
function InvalidArgsException(opts) {
|
|
58
|
+
var _this = _super.call(this, __assign({ name: "InvalidArgsException", $fault: "client" }, opts)) || this;
|
|
59
|
+
_this.name = "InvalidArgsException";
|
|
60
|
+
_this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(_this, InvalidArgsException.prototype);
|
|
62
|
+
_this.Message = opts.Message;
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
return InvalidArgsException;
|
|
66
|
+
}(__BaseException));
|
|
67
|
+
export { InvalidArgsException };
|
|
2
68
|
export var SendSerialConsoleSSHPublicKeyRequest;
|
|
3
69
|
(function (SendSerialConsoleSSHPublicKeyRequest) {
|
|
4
70
|
SendSerialConsoleSSHPublicKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -7,6 +73,71 @@ export var SendSerialConsoleSSHPublicKeyResponse;
|
|
|
7
73
|
(function (SendSerialConsoleSSHPublicKeyResponse) {
|
|
8
74
|
SendSerialConsoleSSHPublicKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
75
|
})(SendSerialConsoleSSHPublicKeyResponse || (SendSerialConsoleSSHPublicKeyResponse = {}));
|
|
76
|
+
var SerialConsoleAccessDisabledException = (function (_super) {
|
|
77
|
+
__extends(SerialConsoleAccessDisabledException, _super);
|
|
78
|
+
function SerialConsoleAccessDisabledException(opts) {
|
|
79
|
+
var _this = _super.call(this, __assign({ name: "SerialConsoleAccessDisabledException", $fault: "client" }, opts)) || this;
|
|
80
|
+
_this.name = "SerialConsoleAccessDisabledException";
|
|
81
|
+
_this.$fault = "client";
|
|
82
|
+
Object.setPrototypeOf(_this, SerialConsoleAccessDisabledException.prototype);
|
|
83
|
+
_this.Message = opts.Message;
|
|
84
|
+
return _this;
|
|
85
|
+
}
|
|
86
|
+
return SerialConsoleAccessDisabledException;
|
|
87
|
+
}(__BaseException));
|
|
88
|
+
export { SerialConsoleAccessDisabledException };
|
|
89
|
+
var SerialConsoleSessionLimitExceededException = (function (_super) {
|
|
90
|
+
__extends(SerialConsoleSessionLimitExceededException, _super);
|
|
91
|
+
function SerialConsoleSessionLimitExceededException(opts) {
|
|
92
|
+
var _this = _super.call(this, __assign({ name: "SerialConsoleSessionLimitExceededException", $fault: "client" }, opts)) || this;
|
|
93
|
+
_this.name = "SerialConsoleSessionLimitExceededException";
|
|
94
|
+
_this.$fault = "client";
|
|
95
|
+
Object.setPrototypeOf(_this, SerialConsoleSessionLimitExceededException.prototype);
|
|
96
|
+
_this.Message = opts.Message;
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
return SerialConsoleSessionLimitExceededException;
|
|
100
|
+
}(__BaseException));
|
|
101
|
+
export { SerialConsoleSessionLimitExceededException };
|
|
102
|
+
var SerialConsoleSessionUnavailableException = (function (_super) {
|
|
103
|
+
__extends(SerialConsoleSessionUnavailableException, _super);
|
|
104
|
+
function SerialConsoleSessionUnavailableException(opts) {
|
|
105
|
+
var _this = _super.call(this, __assign({ name: "SerialConsoleSessionUnavailableException", $fault: "server" }, opts)) || this;
|
|
106
|
+
_this.name = "SerialConsoleSessionUnavailableException";
|
|
107
|
+
_this.$fault = "server";
|
|
108
|
+
Object.setPrototypeOf(_this, SerialConsoleSessionUnavailableException.prototype);
|
|
109
|
+
_this.Message = opts.Message;
|
|
110
|
+
return _this;
|
|
111
|
+
}
|
|
112
|
+
return SerialConsoleSessionUnavailableException;
|
|
113
|
+
}(__BaseException));
|
|
114
|
+
export { SerialConsoleSessionUnavailableException };
|
|
115
|
+
var ServiceException = (function (_super) {
|
|
116
|
+
__extends(ServiceException, _super);
|
|
117
|
+
function ServiceException(opts) {
|
|
118
|
+
var _this = _super.call(this, __assign({ name: "ServiceException", $fault: "server" }, opts)) || this;
|
|
119
|
+
_this.name = "ServiceException";
|
|
120
|
+
_this.$fault = "server";
|
|
121
|
+
Object.setPrototypeOf(_this, ServiceException.prototype);
|
|
122
|
+
_this.Message = opts.Message;
|
|
123
|
+
return _this;
|
|
124
|
+
}
|
|
125
|
+
return ServiceException;
|
|
126
|
+
}(__BaseException));
|
|
127
|
+
export { ServiceException };
|
|
128
|
+
var ThrottlingException = (function (_super) {
|
|
129
|
+
__extends(ThrottlingException, _super);
|
|
130
|
+
function ThrottlingException(opts) {
|
|
131
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
132
|
+
_this.name = "ThrottlingException";
|
|
133
|
+
_this.$fault = "client";
|
|
134
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
135
|
+
_this.Message = opts.Message;
|
|
136
|
+
return _this;
|
|
137
|
+
}
|
|
138
|
+
return ThrottlingException;
|
|
139
|
+
}(__BaseException));
|
|
140
|
+
export { ThrottlingException };
|
|
10
141
|
export var SendSSHPublicKeyRequest;
|
|
11
142
|
(function (SendSSHPublicKeyRequest) {
|
|
12
143
|
SendSSHPublicKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectString as __expectString } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { EC2InstanceConnectServiceException as __BaseException } from "../models/EC2InstanceConnectServiceException";
|
|
5
|
+
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -42,16 +44,16 @@ export var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand = function
|
|
|
42
44
|
});
|
|
43
45
|
}); };
|
|
44
46
|
var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
46
|
-
var
|
|
47
|
-
return __generator(this, function (
|
|
48
|
-
switch (
|
|
47
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
48
|
+
var _c;
|
|
49
|
+
return __generator(this, function (_d) {
|
|
50
|
+
switch (_d.label) {
|
|
49
51
|
case 0:
|
|
50
52
|
_a = [__assign({}, output)];
|
|
51
|
-
|
|
53
|
+
_c = {};
|
|
52
54
|
return [4, parseBody(output.body, context)];
|
|
53
55
|
case 1:
|
|
54
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
56
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
55
57
|
errorCode = "UnknownError";
|
|
56
58
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
57
59
|
_b = errorCode;
|
|
@@ -78,76 +80,34 @@ var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (
|
|
|
78
80
|
case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 20];
|
|
79
81
|
}
|
|
80
82
|
return [3, 22];
|
|
81
|
-
case 2:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
case
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
case 4
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
case
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
case
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
case
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
case
|
|
100
|
-
|
|
101
|
-
return [4, deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse(parsedOutput, context)];
|
|
102
|
-
case 9:
|
|
103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
104
|
-
return [3, 23];
|
|
105
|
-
case 10:
|
|
106
|
-
_g = [{}];
|
|
107
|
-
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
108
|
-
case 11:
|
|
109
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
110
|
-
return [3, 23];
|
|
111
|
-
case 12:
|
|
112
|
-
_h = [{}];
|
|
113
|
-
return [4, deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse(parsedOutput, context)];
|
|
114
|
-
case 13:
|
|
115
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
116
|
-
return [3, 23];
|
|
117
|
-
case 14:
|
|
118
|
-
_j = [{}];
|
|
119
|
-
return [4, deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
120
|
-
case 15:
|
|
121
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
122
|
-
return [3, 23];
|
|
123
|
-
case 16:
|
|
124
|
-
_k = [{}];
|
|
125
|
-
return [4, deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse(parsedOutput, context)];
|
|
126
|
-
case 17:
|
|
127
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
128
|
-
return [3, 23];
|
|
129
|
-
case 18:
|
|
130
|
-
_l = [{}];
|
|
131
|
-
return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
132
|
-
case 19:
|
|
133
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
134
|
-
return [3, 23];
|
|
135
|
-
case 20:
|
|
136
|
-
_m = [{}];
|
|
137
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
138
|
-
case 21:
|
|
139
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
140
|
-
return [3, 23];
|
|
83
|
+
case 2: return [4, deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)];
|
|
84
|
+
case 3: throw _d.sent();
|
|
85
|
+
case 4: return [4, deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)];
|
|
86
|
+
case 5: throw _d.sent();
|
|
87
|
+
case 6: return [4, deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse(parsedOutput, context)];
|
|
88
|
+
case 7: throw _d.sent();
|
|
89
|
+
case 8: return [4, deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse(parsedOutput, context)];
|
|
90
|
+
case 9: throw _d.sent();
|
|
91
|
+
case 10: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
92
|
+
case 11: throw _d.sent();
|
|
93
|
+
case 12: return [4, deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse(parsedOutput, context)];
|
|
94
|
+
case 13: throw _d.sent();
|
|
95
|
+
case 14: return [4, deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
96
|
+
case 15: throw _d.sent();
|
|
97
|
+
case 16: return [4, deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse(parsedOutput, context)];
|
|
98
|
+
case 17: throw _d.sent();
|
|
99
|
+
case 18: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
100
|
+
case 19: throw _d.sent();
|
|
101
|
+
case 20: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
102
|
+
case 21: throw _d.sent();
|
|
141
103
|
case 22:
|
|
142
104
|
parsedBody = parsedOutput.body;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
response
|
|
149
|
-
delete response.Message;
|
|
150
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
105
|
+
response = new __BaseException({
|
|
106
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
107
|
+
$fault: "client",
|
|
108
|
+
$metadata: deserializeMetadata(output),
|
|
109
|
+
});
|
|
110
|
+
throw __decorateServiceException(response, parsedBody);
|
|
151
111
|
}
|
|
152
112
|
});
|
|
153
113
|
}); };
|
|
@@ -170,16 +130,16 @@ export var deserializeAws_json1_1SendSSHPublicKeyCommand = function (output, con
|
|
|
170
130
|
});
|
|
171
131
|
}); };
|
|
172
132
|
var deserializeAws_json1_1SendSSHPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
173
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
174
|
-
var
|
|
175
|
-
return __generator(this, function (
|
|
176
|
-
switch (
|
|
133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
134
|
+
var _c;
|
|
135
|
+
return __generator(this, function (_d) {
|
|
136
|
+
switch (_d.label) {
|
|
177
137
|
case 0:
|
|
178
138
|
_a = [__assign({}, output)];
|
|
179
|
-
|
|
139
|
+
_c = {};
|
|
180
140
|
return [4, parseBody(output.body, context)];
|
|
181
141
|
case 1:
|
|
182
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
142
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
183
143
|
errorCode = "UnknownError";
|
|
184
144
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
185
145
|
_b = errorCode;
|
|
@@ -198,143 +158,117 @@ var deserializeAws_json1_1SendSSHPublicKeyCommandError = function (output, conte
|
|
|
198
158
|
case "com.amazonaws.ec2instanceconnect#ThrottlingException": return [3, 12];
|
|
199
159
|
}
|
|
200
160
|
return [3, 14];
|
|
201
|
-
case 2:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
case
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
case 4
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
case
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
case 6:
|
|
214
|
-
_e = [{}];
|
|
215
|
-
return [4, deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse(parsedOutput, context)];
|
|
216
|
-
case 7:
|
|
217
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
218
|
-
return [3, 15];
|
|
219
|
-
case 8:
|
|
220
|
-
_f = [{}];
|
|
221
|
-
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
222
|
-
case 9:
|
|
223
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
224
|
-
return [3, 15];
|
|
225
|
-
case 10:
|
|
226
|
-
_g = [{}];
|
|
227
|
-
return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
228
|
-
case 11:
|
|
229
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
230
|
-
return [3, 15];
|
|
231
|
-
case 12:
|
|
232
|
-
_h = [{}];
|
|
233
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
234
|
-
case 13:
|
|
235
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
236
|
-
return [3, 15];
|
|
161
|
+
case 2: return [4, deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)];
|
|
162
|
+
case 3: throw _d.sent();
|
|
163
|
+
case 4: return [4, deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)];
|
|
164
|
+
case 5: throw _d.sent();
|
|
165
|
+
case 6: return [4, deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse(parsedOutput, context)];
|
|
166
|
+
case 7: throw _d.sent();
|
|
167
|
+
case 8: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
168
|
+
case 9: throw _d.sent();
|
|
169
|
+
case 10: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
170
|
+
case 11: throw _d.sent();
|
|
171
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
172
|
+
case 13: throw _d.sent();
|
|
237
173
|
case 14:
|
|
238
174
|
parsedBody = parsedOutput.body;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
response
|
|
245
|
-
delete response.Message;
|
|
246
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
175
|
+
response = new __BaseException({
|
|
176
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
177
|
+
$fault: "client",
|
|
178
|
+
$metadata: deserializeMetadata(output),
|
|
179
|
+
});
|
|
180
|
+
throw __decorateServiceException(response, parsedBody);
|
|
247
181
|
}
|
|
248
182
|
});
|
|
249
183
|
}); };
|
|
250
184
|
var deserializeAws_json1_1AuthExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
251
|
-
var body, deserialized,
|
|
185
|
+
var body, deserialized, exception;
|
|
252
186
|
return __generator(this, function (_a) {
|
|
253
187
|
body = parsedOutput.body;
|
|
254
188
|
deserialized = deserializeAws_json1_1AuthException(body, context);
|
|
255
|
-
|
|
256
|
-
return [2,
|
|
189
|
+
exception = new AuthException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
190
|
+
return [2, __decorateServiceException(exception, body)];
|
|
257
191
|
});
|
|
258
192
|
}); };
|
|
259
193
|
var deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
-
var body, deserialized,
|
|
194
|
+
var body, deserialized, exception;
|
|
261
195
|
return __generator(this, function (_a) {
|
|
262
196
|
body = parsedOutput.body;
|
|
263
197
|
deserialized = deserializeAws_json1_1EC2InstanceNotFoundException(body, context);
|
|
264
|
-
|
|
265
|
-
return [2,
|
|
198
|
+
exception = new EC2InstanceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
199
|
+
return [2, __decorateServiceException(exception, body)];
|
|
266
200
|
});
|
|
267
201
|
}); };
|
|
268
202
|
var deserializeAws_json1_1EC2InstanceStateInvalidExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
-
var body, deserialized,
|
|
203
|
+
var body, deserialized, exception;
|
|
270
204
|
return __generator(this, function (_a) {
|
|
271
205
|
body = parsedOutput.body;
|
|
272
206
|
deserialized = deserializeAws_json1_1EC2InstanceStateInvalidException(body, context);
|
|
273
|
-
|
|
274
|
-
return [2,
|
|
207
|
+
exception = new EC2InstanceStateInvalidException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
208
|
+
return [2, __decorateServiceException(exception, body)];
|
|
275
209
|
});
|
|
276
210
|
}); };
|
|
277
211
|
var deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
278
|
-
var body, deserialized,
|
|
212
|
+
var body, deserialized, exception;
|
|
279
213
|
return __generator(this, function (_a) {
|
|
280
214
|
body = parsedOutput.body;
|
|
281
215
|
deserialized = deserializeAws_json1_1EC2InstanceTypeInvalidException(body, context);
|
|
282
|
-
|
|
283
|
-
return [2,
|
|
216
|
+
exception = new EC2InstanceTypeInvalidException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
217
|
+
return [2, __decorateServiceException(exception, body)];
|
|
284
218
|
});
|
|
285
219
|
}); };
|
|
286
220
|
var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
287
|
-
var body, deserialized,
|
|
221
|
+
var body, deserialized, exception;
|
|
288
222
|
return __generator(this, function (_a) {
|
|
289
223
|
body = parsedOutput.body;
|
|
290
224
|
deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
|
|
291
|
-
|
|
292
|
-
return [2,
|
|
225
|
+
exception = new InvalidArgsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
226
|
+
return [2, __decorateServiceException(exception, body)];
|
|
293
227
|
});
|
|
294
228
|
}); };
|
|
295
229
|
var deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
296
|
-
var body, deserialized,
|
|
230
|
+
var body, deserialized, exception;
|
|
297
231
|
return __generator(this, function (_a) {
|
|
298
232
|
body = parsedOutput.body;
|
|
299
233
|
deserialized = deserializeAws_json1_1SerialConsoleAccessDisabledException(body, context);
|
|
300
|
-
|
|
301
|
-
return [2,
|
|
234
|
+
exception = new SerialConsoleAccessDisabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
235
|
+
return [2, __decorateServiceException(exception, body)];
|
|
302
236
|
});
|
|
303
237
|
}); };
|
|
304
238
|
var deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
-
var body, deserialized,
|
|
239
|
+
var body, deserialized, exception;
|
|
306
240
|
return __generator(this, function (_a) {
|
|
307
241
|
body = parsedOutput.body;
|
|
308
242
|
deserialized = deserializeAws_json1_1SerialConsoleSessionLimitExceededException(body, context);
|
|
309
|
-
|
|
310
|
-
return [2,
|
|
243
|
+
exception = new SerialConsoleSessionLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
244
|
+
return [2, __decorateServiceException(exception, body)];
|
|
311
245
|
});
|
|
312
246
|
}); };
|
|
313
247
|
var deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
-
var body, deserialized,
|
|
248
|
+
var body, deserialized, exception;
|
|
315
249
|
return __generator(this, function (_a) {
|
|
316
250
|
body = parsedOutput.body;
|
|
317
251
|
deserialized = deserializeAws_json1_1SerialConsoleSessionUnavailableException(body, context);
|
|
318
|
-
|
|
319
|
-
return [2,
|
|
252
|
+
exception = new SerialConsoleSessionUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
253
|
+
return [2, __decorateServiceException(exception, body)];
|
|
320
254
|
});
|
|
321
255
|
}); };
|
|
322
256
|
var deserializeAws_json1_1ServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
-
var body, deserialized,
|
|
257
|
+
var body, deserialized, exception;
|
|
324
258
|
return __generator(this, function (_a) {
|
|
325
259
|
body = parsedOutput.body;
|
|
326
260
|
deserialized = deserializeAws_json1_1ServiceException(body, context);
|
|
327
|
-
|
|
328
|
-
return [2,
|
|
261
|
+
exception = new ServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
262
|
+
return [2, __decorateServiceException(exception, body)];
|
|
329
263
|
});
|
|
330
264
|
}); };
|
|
331
265
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
332
|
-
var body, deserialized,
|
|
266
|
+
var body, deserialized, exception;
|
|
333
267
|
return __generator(this, function (_a) {
|
|
334
268
|
body = parsedOutput.body;
|
|
335
269
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
336
|
-
|
|
337
|
-
return [2,
|
|
270
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
271
|
+
return [2, __decorateServiceException(exception, body)];
|
|
338
272
|
});
|
|
339
273
|
}); };
|
|
340
274
|
var serializeAws_json1_1SendSerialConsoleSSHPublicKeyRequest = function (input, context) {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from EC2InstanceConnect service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EC2InstanceConnectServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|