@aws-sdk/client-ec2-instance-connect 3.987.0 → 3.988.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/dist-cjs/index.js +21 -344
- package/dist-cjs/models/EC2InstanceConnectServiceException.js +12 -0
- package/dist-cjs/models/errors.js +184 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +145 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +45 -39
- package/dist-types/schemas/schemas_0.d.ts +12 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var EC2InstanceConnectServiceException = require('./models/EC2InstanceConnectServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,316 +113,6 @@ class EC2InstanceConnectClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class EC2InstanceConnectServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class AuthException extends EC2InstanceConnectServiceException {
|
|
121
|
-
name = "AuthException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
Message;
|
|
124
|
-
constructor(opts) {
|
|
125
|
-
super({
|
|
126
|
-
name: "AuthException",
|
|
127
|
-
$fault: "client",
|
|
128
|
-
...opts,
|
|
129
|
-
});
|
|
130
|
-
Object.setPrototypeOf(this, AuthException.prototype);
|
|
131
|
-
this.Message = opts.Message;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
class EC2InstanceNotFoundException extends EC2InstanceConnectServiceException {
|
|
135
|
-
name = "EC2InstanceNotFoundException";
|
|
136
|
-
$fault = "client";
|
|
137
|
-
Message;
|
|
138
|
-
constructor(opts) {
|
|
139
|
-
super({
|
|
140
|
-
name: "EC2InstanceNotFoundException",
|
|
141
|
-
$fault: "client",
|
|
142
|
-
...opts,
|
|
143
|
-
});
|
|
144
|
-
Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
|
|
145
|
-
this.Message = opts.Message;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
class EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException {
|
|
149
|
-
name = "EC2InstanceStateInvalidException";
|
|
150
|
-
$fault = "client";
|
|
151
|
-
Message;
|
|
152
|
-
constructor(opts) {
|
|
153
|
-
super({
|
|
154
|
-
name: "EC2InstanceStateInvalidException",
|
|
155
|
-
$fault: "client",
|
|
156
|
-
...opts,
|
|
157
|
-
});
|
|
158
|
-
Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
|
|
159
|
-
this.Message = opts.Message;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException {
|
|
163
|
-
name = "EC2InstanceTypeInvalidException";
|
|
164
|
-
$fault = "client";
|
|
165
|
-
Message;
|
|
166
|
-
constructor(opts) {
|
|
167
|
-
super({
|
|
168
|
-
name: "EC2InstanceTypeInvalidException",
|
|
169
|
-
$fault: "client",
|
|
170
|
-
...opts,
|
|
171
|
-
});
|
|
172
|
-
Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
|
|
173
|
-
this.Message = opts.Message;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException {
|
|
177
|
-
name = "EC2InstanceUnavailableException";
|
|
178
|
-
$fault = "server";
|
|
179
|
-
Message;
|
|
180
|
-
constructor(opts) {
|
|
181
|
-
super({
|
|
182
|
-
name: "EC2InstanceUnavailableException",
|
|
183
|
-
$fault: "server",
|
|
184
|
-
...opts,
|
|
185
|
-
});
|
|
186
|
-
Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
|
|
187
|
-
this.Message = opts.Message;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
class InvalidArgsException extends EC2InstanceConnectServiceException {
|
|
191
|
-
name = "InvalidArgsException";
|
|
192
|
-
$fault = "client";
|
|
193
|
-
Message;
|
|
194
|
-
constructor(opts) {
|
|
195
|
-
super({
|
|
196
|
-
name: "InvalidArgsException",
|
|
197
|
-
$fault: "client",
|
|
198
|
-
...opts,
|
|
199
|
-
});
|
|
200
|
-
Object.setPrototypeOf(this, InvalidArgsException.prototype);
|
|
201
|
-
this.Message = opts.Message;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException {
|
|
205
|
-
name = "SerialConsoleAccessDisabledException";
|
|
206
|
-
$fault = "client";
|
|
207
|
-
Message;
|
|
208
|
-
constructor(opts) {
|
|
209
|
-
super({
|
|
210
|
-
name: "SerialConsoleAccessDisabledException",
|
|
211
|
-
$fault: "client",
|
|
212
|
-
...opts,
|
|
213
|
-
});
|
|
214
|
-
Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
|
|
215
|
-
this.Message = opts.Message;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
class SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException {
|
|
219
|
-
name = "SerialConsoleSessionLimitExceededException";
|
|
220
|
-
$fault = "client";
|
|
221
|
-
Message;
|
|
222
|
-
constructor(opts) {
|
|
223
|
-
super({
|
|
224
|
-
name: "SerialConsoleSessionLimitExceededException",
|
|
225
|
-
$fault: "client",
|
|
226
|
-
...opts,
|
|
227
|
-
});
|
|
228
|
-
Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
|
|
229
|
-
this.Message = opts.Message;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
class SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException {
|
|
233
|
-
name = "SerialConsoleSessionUnavailableException";
|
|
234
|
-
$fault = "server";
|
|
235
|
-
Message;
|
|
236
|
-
constructor(opts) {
|
|
237
|
-
super({
|
|
238
|
-
name: "SerialConsoleSessionUnavailableException",
|
|
239
|
-
$fault: "server",
|
|
240
|
-
...opts,
|
|
241
|
-
});
|
|
242
|
-
Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
|
|
243
|
-
this.Message = opts.Message;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
class SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
|
|
247
|
-
name = "SerialConsoleSessionUnsupportedException";
|
|
248
|
-
$fault = "client";
|
|
249
|
-
Message;
|
|
250
|
-
constructor(opts) {
|
|
251
|
-
super({
|
|
252
|
-
name: "SerialConsoleSessionUnsupportedException",
|
|
253
|
-
$fault: "client",
|
|
254
|
-
...opts,
|
|
255
|
-
});
|
|
256
|
-
Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
|
|
257
|
-
this.Message = opts.Message;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
class ServiceException extends EC2InstanceConnectServiceException {
|
|
261
|
-
name = "ServiceException";
|
|
262
|
-
$fault = "server";
|
|
263
|
-
Message;
|
|
264
|
-
constructor(opts) {
|
|
265
|
-
super({
|
|
266
|
-
name: "ServiceException",
|
|
267
|
-
$fault: "server",
|
|
268
|
-
...opts,
|
|
269
|
-
});
|
|
270
|
-
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
271
|
-
this.Message = opts.Message;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
class ThrottlingException extends EC2InstanceConnectServiceException {
|
|
275
|
-
name = "ThrottlingException";
|
|
276
|
-
$fault = "client";
|
|
277
|
-
Message;
|
|
278
|
-
constructor(opts) {
|
|
279
|
-
super({
|
|
280
|
-
name: "ThrottlingException",
|
|
281
|
-
$fault: "client",
|
|
282
|
-
...opts,
|
|
283
|
-
});
|
|
284
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
285
|
-
this.Message = opts.Message;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
const _AE = "AuthException";
|
|
290
|
-
const _AZ = "AvailabilityZone";
|
|
291
|
-
const _ECINFE = "EC2InstanceNotFoundException";
|
|
292
|
-
const _ECISIE = "EC2InstanceStateInvalidException";
|
|
293
|
-
const _ECITIE = "EC2InstanceTypeInvalidException";
|
|
294
|
-
const _ECIUE = "EC2InstanceUnavailableException";
|
|
295
|
-
const _IAE = "InvalidArgsException";
|
|
296
|
-
const _II = "InstanceId";
|
|
297
|
-
const _IOSU = "InstanceOSUser";
|
|
298
|
-
const _M = "Message";
|
|
299
|
-
const _RI = "RequestId";
|
|
300
|
-
const _S = "Success";
|
|
301
|
-
const _SCADE = "SerialConsoleAccessDisabledException";
|
|
302
|
-
const _SCSLEE = "SerialConsoleSessionLimitExceededException";
|
|
303
|
-
const _SCSUE = "SerialConsoleSessionUnavailableException";
|
|
304
|
-
const _SCSUEe = "SerialConsoleSessionUnsupportedException";
|
|
305
|
-
const _SE = "ServiceException";
|
|
306
|
-
const _SP = "SerialPort";
|
|
307
|
-
const _SSCSSHPK = "SendSerialConsoleSSHPublicKey";
|
|
308
|
-
const _SSCSSHPKR = "SendSerialConsoleSSHPublicKeyRequest";
|
|
309
|
-
const _SSCSSHPKRe = "SendSerialConsoleSSHPublicKeyResponse";
|
|
310
|
-
const _SSHPK = "SSHPublicKey";
|
|
311
|
-
const _SSSHPK = "SendSSHPublicKey";
|
|
312
|
-
const _SSSHPKR = "SendSSHPublicKeyRequest";
|
|
313
|
-
const _SSSHPKRe = "SendSSHPublicKeyResponse";
|
|
314
|
-
const _TE = "ThrottlingException";
|
|
315
|
-
const _aQE = "awsQueryError";
|
|
316
|
-
const _c = "client";
|
|
317
|
-
const _e = "error";
|
|
318
|
-
const _hE = "httpError";
|
|
319
|
-
const _s = "server";
|
|
320
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
|
|
321
|
-
const n0 = "com.amazonaws.ec2instanceconnect";
|
|
322
|
-
var AuthException$ = [-3, n0, _AE,
|
|
323
|
-
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
324
|
-
[_M],
|
|
325
|
-
[0]
|
|
326
|
-
];
|
|
327
|
-
schema.TypeRegistry.for(n0).registerError(AuthException$, AuthException);
|
|
328
|
-
var EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
329
|
-
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
330
|
-
[_M],
|
|
331
|
-
[0]
|
|
332
|
-
];
|
|
333
|
-
schema.TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
|
|
334
|
-
var EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
335
|
-
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
336
|
-
[_M],
|
|
337
|
-
[0]
|
|
338
|
-
];
|
|
339
|
-
schema.TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
|
|
340
|
-
var EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
341
|
-
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
342
|
-
[_M],
|
|
343
|
-
[0]
|
|
344
|
-
];
|
|
345
|
-
schema.TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
|
|
346
|
-
var EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
347
|
-
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _s, [_hE]: 503 },
|
|
348
|
-
[_M],
|
|
349
|
-
[0]
|
|
350
|
-
];
|
|
351
|
-
schema.TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
|
|
352
|
-
var InvalidArgsException$ = [-3, n0, _IAE,
|
|
353
|
-
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
354
|
-
[_M],
|
|
355
|
-
[0]
|
|
356
|
-
];
|
|
357
|
-
schema.TypeRegistry.for(n0).registerError(InvalidArgsException$, InvalidArgsException);
|
|
358
|
-
var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
359
|
-
0,
|
|
360
|
-
[_II, _SSHPK, _SP],
|
|
361
|
-
[0, 0, 1], 2
|
|
362
|
-
];
|
|
363
|
-
var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
364
|
-
0,
|
|
365
|
-
[_RI, _S],
|
|
366
|
-
[0, 2]
|
|
367
|
-
];
|
|
368
|
-
var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
369
|
-
0,
|
|
370
|
-
[_II, _IOSU, _SSHPK, _AZ],
|
|
371
|
-
[0, 0, 0, 0], 3
|
|
372
|
-
];
|
|
373
|
-
var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
374
|
-
0,
|
|
375
|
-
[_RI, _S],
|
|
376
|
-
[0, 2]
|
|
377
|
-
];
|
|
378
|
-
var SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
379
|
-
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
380
|
-
[_M],
|
|
381
|
-
[0]
|
|
382
|
-
];
|
|
383
|
-
schema.TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
|
|
384
|
-
var SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
385
|
-
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
386
|
-
[_M],
|
|
387
|
-
[0]
|
|
388
|
-
];
|
|
389
|
-
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
|
|
390
|
-
var SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
391
|
-
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _s, [_hE]: 500 },
|
|
392
|
-
[_M],
|
|
393
|
-
[0]
|
|
394
|
-
];
|
|
395
|
-
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
|
|
396
|
-
var SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
397
|
-
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
398
|
-
[_M],
|
|
399
|
-
[0]
|
|
400
|
-
];
|
|
401
|
-
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
|
|
402
|
-
var ServiceException$ = [-3, n0, _SE,
|
|
403
|
-
{ [_aQE]: [`InternalServerError`, 500], [_e]: _s, [_hE]: 500 },
|
|
404
|
-
[_M],
|
|
405
|
-
[0]
|
|
406
|
-
];
|
|
407
|
-
schema.TypeRegistry.for(n0).registerError(ServiceException$, ServiceException);
|
|
408
|
-
var ThrottlingException$ = [-3, n0, _TE,
|
|
409
|
-
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
410
|
-
[_M],
|
|
411
|
-
[0]
|
|
412
|
-
];
|
|
413
|
-
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
414
|
-
var EC2InstanceConnectServiceException$ = [-3, _sm, "EC2InstanceConnectServiceException", 0, [], []];
|
|
415
|
-
schema.TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
|
|
416
|
-
var SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
417
|
-
0, () => SendSerialConsoleSSHPublicKeyRequest$, () => SendSerialConsoleSSHPublicKeyResponse$
|
|
418
|
-
];
|
|
419
|
-
var SendSSHPublicKey$ = [9, n0, _SSSHPK,
|
|
420
|
-
0, () => SendSSHPublicKeyRequest$, () => SendSSHPublicKeyResponse$
|
|
421
|
-
];
|
|
422
|
-
|
|
423
116
|
class SendSerialConsoleSSHPublicKeyCommand extends smithyClient.Command
|
|
424
117
|
.classBuilder()
|
|
425
118
|
.ep(commonParams)
|
|
@@ -428,7 +121,7 @@ class SendSerialConsoleSSHPublicKeyCommand extends smithyClient.Command
|
|
|
428
121
|
})
|
|
429
122
|
.s("AWSEC2InstanceConnectService", "SendSerialConsoleSSHPublicKey", {})
|
|
430
123
|
.n("EC2InstanceConnectClient", "SendSerialConsoleSSHPublicKeyCommand")
|
|
431
|
-
.sc(SendSerialConsoleSSHPublicKey$)
|
|
124
|
+
.sc(schemas_0.SendSerialConsoleSSHPublicKey$)
|
|
432
125
|
.build() {
|
|
433
126
|
}
|
|
434
127
|
|
|
@@ -440,7 +133,7 @@ class SendSSHPublicKeyCommand extends smithyClient.Command
|
|
|
440
133
|
})
|
|
441
134
|
.s("AWSEC2InstanceConnectService", "SendSSHPublicKey", {})
|
|
442
135
|
.n("EC2InstanceConnectClient", "SendSSHPublicKeyCommand")
|
|
443
|
-
.sc(SendSSHPublicKey$)
|
|
136
|
+
.sc(schemas_0.SendSSHPublicKey$)
|
|
444
137
|
.build() {
|
|
445
138
|
}
|
|
446
139
|
|
|
@@ -460,39 +153,23 @@ Object.defineProperty(exports, "__Client", {
|
|
|
460
153
|
enumerable: true,
|
|
461
154
|
get: function () { return smithyClient.Client; }
|
|
462
155
|
});
|
|
463
|
-
exports
|
|
464
|
-
|
|
156
|
+
Object.defineProperty(exports, "EC2InstanceConnectServiceException", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return EC2InstanceConnectServiceException.EC2InstanceConnectServiceException; }
|
|
159
|
+
});
|
|
465
160
|
exports.EC2InstanceConnect = EC2InstanceConnect;
|
|
466
161
|
exports.EC2InstanceConnectClient = EC2InstanceConnectClient;
|
|
467
|
-
exports.EC2InstanceConnectServiceException = EC2InstanceConnectServiceException;
|
|
468
|
-
exports.EC2InstanceConnectServiceException$ = EC2InstanceConnectServiceException$;
|
|
469
|
-
exports.EC2InstanceNotFoundException = EC2InstanceNotFoundException;
|
|
470
|
-
exports.EC2InstanceNotFoundException$ = EC2InstanceNotFoundException$;
|
|
471
|
-
exports.EC2InstanceStateInvalidException = EC2InstanceStateInvalidException;
|
|
472
|
-
exports.EC2InstanceStateInvalidException$ = EC2InstanceStateInvalidException$;
|
|
473
|
-
exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException;
|
|
474
|
-
exports.EC2InstanceTypeInvalidException$ = EC2InstanceTypeInvalidException$;
|
|
475
|
-
exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException;
|
|
476
|
-
exports.EC2InstanceUnavailableException$ = EC2InstanceUnavailableException$;
|
|
477
|
-
exports.InvalidArgsException = InvalidArgsException;
|
|
478
|
-
exports.InvalidArgsException$ = InvalidArgsException$;
|
|
479
|
-
exports.SendSSHPublicKey$ = SendSSHPublicKey$;
|
|
480
162
|
exports.SendSSHPublicKeyCommand = SendSSHPublicKeyCommand;
|
|
481
|
-
exports.SendSSHPublicKeyRequest$ = SendSSHPublicKeyRequest$;
|
|
482
|
-
exports.SendSSHPublicKeyResponse$ = SendSSHPublicKeyResponse$;
|
|
483
|
-
exports.SendSerialConsoleSSHPublicKey$ = SendSerialConsoleSSHPublicKey$;
|
|
484
163
|
exports.SendSerialConsoleSSHPublicKeyCommand = SendSerialConsoleSSHPublicKeyCommand;
|
|
485
|
-
|
|
486
|
-
exports.
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
exports.
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
exports.ThrottlingException = ThrottlingException;
|
|
498
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
164
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
165
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return schemas_0[k]; }
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
Object.keys(errors).forEach(function (k) {
|
|
171
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return errors[k]; }
|
|
174
|
+
});
|
|
175
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EC2InstanceConnectServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class EC2InstanceConnectServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.EC2InstanceConnectServiceException = EC2InstanceConnectServiceException;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThrottlingException = exports.ServiceException = exports.SerialConsoleSessionUnsupportedException = exports.SerialConsoleSessionUnavailableException = exports.SerialConsoleSessionLimitExceededException = exports.SerialConsoleAccessDisabledException = exports.InvalidArgsException = exports.EC2InstanceUnavailableException = exports.EC2InstanceTypeInvalidException = exports.EC2InstanceStateInvalidException = exports.EC2InstanceNotFoundException = exports.AuthException = void 0;
|
|
4
|
+
const EC2InstanceConnectServiceException_1 = require("./EC2InstanceConnectServiceException");
|
|
5
|
+
class AuthException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
6
|
+
name = "AuthException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AuthException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AuthException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AuthException = AuthException;
|
|
20
|
+
class EC2InstanceNotFoundException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
21
|
+
name = "EC2InstanceNotFoundException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "EC2InstanceNotFoundException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.EC2InstanceNotFoundException = EC2InstanceNotFoundException;
|
|
35
|
+
class EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
36
|
+
name = "EC2InstanceStateInvalidException";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
Message;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "EC2InstanceStateInvalidException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
|
|
46
|
+
this.Message = opts.Message;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.EC2InstanceStateInvalidException = EC2InstanceStateInvalidException;
|
|
50
|
+
class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
51
|
+
name = "EC2InstanceTypeInvalidException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "EC2InstanceTypeInvalidException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException;
|
|
65
|
+
class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
66
|
+
name = "EC2InstanceUnavailableException";
|
|
67
|
+
$fault = "server";
|
|
68
|
+
Message;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "EC2InstanceUnavailableException",
|
|
72
|
+
$fault: "server",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
|
|
76
|
+
this.Message = opts.Message;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException;
|
|
80
|
+
class InvalidArgsException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
81
|
+
name = "InvalidArgsException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
Message;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "InvalidArgsException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, InvalidArgsException.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.InvalidArgsException = InvalidArgsException;
|
|
95
|
+
class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
96
|
+
name = "SerialConsoleAccessDisabledException";
|
|
97
|
+
$fault = "client";
|
|
98
|
+
Message;
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "SerialConsoleAccessDisabledException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
|
|
106
|
+
this.Message = opts.Message;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.SerialConsoleAccessDisabledException = SerialConsoleAccessDisabledException;
|
|
110
|
+
class SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
111
|
+
name = "SerialConsoleSessionLimitExceededException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
Message;
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "SerialConsoleSessionLimitExceededException",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts,
|
|
119
|
+
});
|
|
120
|
+
Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
|
|
121
|
+
this.Message = opts.Message;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.SerialConsoleSessionLimitExceededException = SerialConsoleSessionLimitExceededException;
|
|
125
|
+
class SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
126
|
+
name = "SerialConsoleSessionUnavailableException";
|
|
127
|
+
$fault = "server";
|
|
128
|
+
Message;
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "SerialConsoleSessionUnavailableException",
|
|
132
|
+
$fault: "server",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
|
|
136
|
+
this.Message = opts.Message;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.SerialConsoleSessionUnavailableException = SerialConsoleSessionUnavailableException;
|
|
140
|
+
class SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
141
|
+
name = "SerialConsoleSessionUnsupportedException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
Message;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "SerialConsoleSessionUnsupportedException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
|
|
151
|
+
this.Message = opts.Message;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.SerialConsoleSessionUnsupportedException = SerialConsoleSessionUnsupportedException;
|
|
155
|
+
class ServiceException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
156
|
+
name = "ServiceException";
|
|
157
|
+
$fault = "server";
|
|
158
|
+
Message;
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "ServiceException",
|
|
162
|
+
$fault: "server",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
166
|
+
this.Message = opts.Message;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.ServiceException = ServiceException;
|
|
170
|
+
class ThrottlingException extends EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException {
|
|
171
|
+
name = "ThrottlingException";
|
|
172
|
+
$fault = "client";
|
|
173
|
+
Message;
|
|
174
|
+
constructor(opts) {
|
|
175
|
+
super({
|
|
176
|
+
name: "ThrottlingException",
|
|
177
|
+
$fault: "client",
|
|
178
|
+
...opts,
|
|
179
|
+
});
|
|
180
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
181
|
+
this.Message = opts.Message;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.ThrottlingException = ThrottlingException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2018-04-02",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.ec2instanceconnect",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2018-04-02",
|
|
33
35
|
serviceTarget: "AWSEC2InstanceConnectService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendSSHPublicKey$ = exports.SendSerialConsoleSSHPublicKey$ = exports.SendSSHPublicKeyResponse$ = exports.SendSSHPublicKeyRequest$ = exports.SendSerialConsoleSSHPublicKeyResponse$ = exports.SendSerialConsoleSSHPublicKeyRequest$ = exports.errorTypeRegistries = exports.ThrottlingException$ = exports.ServiceException$ = exports.SerialConsoleSessionUnsupportedException$ = exports.SerialConsoleSessionUnavailableException$ = exports.SerialConsoleSessionLimitExceededException$ = exports.SerialConsoleAccessDisabledException$ = exports.InvalidArgsException$ = exports.EC2InstanceUnavailableException$ = exports.EC2InstanceTypeInvalidException$ = exports.EC2InstanceStateInvalidException$ = exports.EC2InstanceNotFoundException$ = exports.AuthException$ = exports.EC2InstanceConnectServiceException$ = void 0;
|
|
4
|
+
const _AE = "AuthException";
|
|
5
|
+
const _AZ = "AvailabilityZone";
|
|
6
|
+
const _ECINFE = "EC2InstanceNotFoundException";
|
|
7
|
+
const _ECISIE = "EC2InstanceStateInvalidException";
|
|
8
|
+
const _ECITIE = "EC2InstanceTypeInvalidException";
|
|
9
|
+
const _ECIUE = "EC2InstanceUnavailableException";
|
|
10
|
+
const _IAE = "InvalidArgsException";
|
|
11
|
+
const _II = "InstanceId";
|
|
12
|
+
const _IOSU = "InstanceOSUser";
|
|
13
|
+
const _M = "Message";
|
|
14
|
+
const _RI = "RequestId";
|
|
15
|
+
const _S = "Success";
|
|
16
|
+
const _SCADE = "SerialConsoleAccessDisabledException";
|
|
17
|
+
const _SCSLEE = "SerialConsoleSessionLimitExceededException";
|
|
18
|
+
const _SCSUE = "SerialConsoleSessionUnavailableException";
|
|
19
|
+
const _SCSUEe = "SerialConsoleSessionUnsupportedException";
|
|
20
|
+
const _SE = "ServiceException";
|
|
21
|
+
const _SP = "SerialPort";
|
|
22
|
+
const _SSCSSHPK = "SendSerialConsoleSSHPublicKey";
|
|
23
|
+
const _SSCSSHPKR = "SendSerialConsoleSSHPublicKeyRequest";
|
|
24
|
+
const _SSCSSHPKRe = "SendSerialConsoleSSHPublicKeyResponse";
|
|
25
|
+
const _SSHPK = "SSHPublicKey";
|
|
26
|
+
const _SSSHPK = "SendSSHPublicKey";
|
|
27
|
+
const _SSSHPKR = "SendSSHPublicKeyRequest";
|
|
28
|
+
const _SSSHPKRe = "SendSSHPublicKeyResponse";
|
|
29
|
+
const _TE = "ThrottlingException";
|
|
30
|
+
const _aQE = "awsQueryError";
|
|
31
|
+
const _c = "client";
|
|
32
|
+
const _e = "error";
|
|
33
|
+
const _hE = "httpError";
|
|
34
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
|
|
35
|
+
const _se = "server";
|
|
36
|
+
const n0 = "com.amazonaws.ec2instanceconnect";
|
|
37
|
+
const schema_1 = require("@smithy/core/schema");
|
|
38
|
+
const EC2InstanceConnectServiceException_1 = require("../models/EC2InstanceConnectServiceException");
|
|
39
|
+
const errors_1 = require("../models/errors");
|
|
40
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
41
|
+
exports.EC2InstanceConnectServiceException$ = [-3, _s, "EC2InstanceConnectServiceException", 0, [], []];
|
|
42
|
+
_s_registry.registerError(exports.EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException);
|
|
43
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
44
|
+
exports.AuthException$ = [-3, n0, _AE,
|
|
45
|
+
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
46
|
+
[_M],
|
|
47
|
+
[0]
|
|
48
|
+
];
|
|
49
|
+
n0_registry.registerError(exports.AuthException$, errors_1.AuthException);
|
|
50
|
+
exports.EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
51
|
+
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
52
|
+
[_M],
|
|
53
|
+
[0]
|
|
54
|
+
];
|
|
55
|
+
n0_registry.registerError(exports.EC2InstanceNotFoundException$, errors_1.EC2InstanceNotFoundException);
|
|
56
|
+
exports.EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
57
|
+
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
58
|
+
[_M],
|
|
59
|
+
[0]
|
|
60
|
+
];
|
|
61
|
+
n0_registry.registerError(exports.EC2InstanceStateInvalidException$, errors_1.EC2InstanceStateInvalidException);
|
|
62
|
+
exports.EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
63
|
+
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
64
|
+
[_M],
|
|
65
|
+
[0]
|
|
66
|
+
];
|
|
67
|
+
n0_registry.registerError(exports.EC2InstanceTypeInvalidException$, errors_1.EC2InstanceTypeInvalidException);
|
|
68
|
+
exports.EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
69
|
+
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _se, [_hE]: 503 },
|
|
70
|
+
[_M],
|
|
71
|
+
[0]
|
|
72
|
+
];
|
|
73
|
+
n0_registry.registerError(exports.EC2InstanceUnavailableException$, errors_1.EC2InstanceUnavailableException);
|
|
74
|
+
exports.InvalidArgsException$ = [-3, n0, _IAE,
|
|
75
|
+
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
76
|
+
[_M],
|
|
77
|
+
[0]
|
|
78
|
+
];
|
|
79
|
+
n0_registry.registerError(exports.InvalidArgsException$, errors_1.InvalidArgsException);
|
|
80
|
+
exports.SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
81
|
+
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
82
|
+
[_M],
|
|
83
|
+
[0]
|
|
84
|
+
];
|
|
85
|
+
n0_registry.registerError(exports.SerialConsoleAccessDisabledException$, errors_1.SerialConsoleAccessDisabledException);
|
|
86
|
+
exports.SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
87
|
+
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
88
|
+
[_M],
|
|
89
|
+
[0]
|
|
90
|
+
];
|
|
91
|
+
n0_registry.registerError(exports.SerialConsoleSessionLimitExceededException$, errors_1.SerialConsoleSessionLimitExceededException);
|
|
92
|
+
exports.SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
93
|
+
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _se, [_hE]: 500 },
|
|
94
|
+
[_M],
|
|
95
|
+
[0]
|
|
96
|
+
];
|
|
97
|
+
n0_registry.registerError(exports.SerialConsoleSessionUnavailableException$, errors_1.SerialConsoleSessionUnavailableException);
|
|
98
|
+
exports.SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
99
|
+
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
100
|
+
[_M],
|
|
101
|
+
[0]
|
|
102
|
+
];
|
|
103
|
+
n0_registry.registerError(exports.SerialConsoleSessionUnsupportedException$, errors_1.SerialConsoleSessionUnsupportedException);
|
|
104
|
+
exports.ServiceException$ = [-3, n0, _SE,
|
|
105
|
+
{ [_aQE]: [`InternalServerError`, 500], [_e]: _se, [_hE]: 500 },
|
|
106
|
+
[_M],
|
|
107
|
+
[0]
|
|
108
|
+
];
|
|
109
|
+
n0_registry.registerError(exports.ServiceException$, errors_1.ServiceException);
|
|
110
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
111
|
+
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
112
|
+
[_M],
|
|
113
|
+
[0]
|
|
114
|
+
];
|
|
115
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
116
|
+
exports.errorTypeRegistries = [
|
|
117
|
+
_s_registry,
|
|
118
|
+
n0_registry,
|
|
119
|
+
];
|
|
120
|
+
exports.SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
121
|
+
0,
|
|
122
|
+
[_II, _SSHPK, _SP],
|
|
123
|
+
[0, 0, 1], 2
|
|
124
|
+
];
|
|
125
|
+
exports.SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
126
|
+
0,
|
|
127
|
+
[_RI, _S],
|
|
128
|
+
[0, 2]
|
|
129
|
+
];
|
|
130
|
+
exports.SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
131
|
+
0,
|
|
132
|
+
[_II, _IOSU, _SSHPK, _AZ],
|
|
133
|
+
[0, 0, 0, 0], 3
|
|
134
|
+
];
|
|
135
|
+
exports.SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
136
|
+
0,
|
|
137
|
+
[_RI, _S],
|
|
138
|
+
[0, 2]
|
|
139
|
+
];
|
|
140
|
+
exports.SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
141
|
+
0, () => exports.SendSerialConsoleSSHPublicKeyRequest$, () => exports.SendSerialConsoleSSHPublicKeyResponse$
|
|
142
|
+
];
|
|
143
|
+
exports.SendSSHPublicKey$ = [9, n0, _SSSHPK,
|
|
144
|
+
0, () => exports.SendSSHPublicKeyRequest$, () => exports.SendSSHPublicKeyResponse$
|
|
145
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultEC2InstanceConnectHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2018-04-02",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.ec2instanceconnect",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2018-04-02",
|
|
30
32
|
serviceTarget: "AWSEC2InstanceConnectService",
|
|
31
33
|
},
|
|
@@ -28,106 +28,112 @@ const _aQE = "awsQueryError";
|
|
|
28
28
|
const _c = "client";
|
|
29
29
|
const _e = "error";
|
|
30
30
|
const _hE = "httpError";
|
|
31
|
-
const _s = "
|
|
32
|
-
const
|
|
31
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
|
|
32
|
+
const _se = "server";
|
|
33
33
|
const n0 = "com.amazonaws.ec2instanceconnect";
|
|
34
34
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
35
35
|
import { EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
|
|
36
36
|
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException, ServiceException, ThrottlingException, } from "../models/errors";
|
|
37
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
38
|
+
export var EC2InstanceConnectServiceException$ = [-3, _s, "EC2InstanceConnectServiceException", 0, [], []];
|
|
39
|
+
_s_registry.registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
|
|
40
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
37
41
|
export var AuthException$ = [-3, n0, _AE,
|
|
38
42
|
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
39
43
|
[_M],
|
|
40
44
|
[0]
|
|
41
45
|
];
|
|
42
|
-
|
|
46
|
+
n0_registry.registerError(AuthException$, AuthException);
|
|
43
47
|
export var EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
44
48
|
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
45
49
|
[_M],
|
|
46
50
|
[0]
|
|
47
51
|
];
|
|
48
|
-
|
|
52
|
+
n0_registry.registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
|
|
49
53
|
export var EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
50
54
|
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
51
55
|
[_M],
|
|
52
56
|
[0]
|
|
53
57
|
];
|
|
54
|
-
|
|
58
|
+
n0_registry.registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
|
|
55
59
|
export var EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
56
60
|
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
57
61
|
[_M],
|
|
58
62
|
[0]
|
|
59
63
|
];
|
|
60
|
-
|
|
64
|
+
n0_registry.registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
|
|
61
65
|
export var EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
62
|
-
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]:
|
|
66
|
+
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _se, [_hE]: 503 },
|
|
63
67
|
[_M],
|
|
64
68
|
[0]
|
|
65
69
|
];
|
|
66
|
-
|
|
70
|
+
n0_registry.registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
|
|
67
71
|
export var InvalidArgsException$ = [-3, n0, _IAE,
|
|
68
72
|
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
69
73
|
[_M],
|
|
70
74
|
[0]
|
|
71
75
|
];
|
|
72
|
-
|
|
73
|
-
export var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
74
|
-
0,
|
|
75
|
-
[_II, _SSHPK, _SP],
|
|
76
|
-
[0, 0, 1], 2
|
|
77
|
-
];
|
|
78
|
-
export var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
79
|
-
0,
|
|
80
|
-
[_RI, _S],
|
|
81
|
-
[0, 2]
|
|
82
|
-
];
|
|
83
|
-
export var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
84
|
-
0,
|
|
85
|
-
[_II, _IOSU, _SSHPK, _AZ],
|
|
86
|
-
[0, 0, 0, 0], 3
|
|
87
|
-
];
|
|
88
|
-
export var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
89
|
-
0,
|
|
90
|
-
[_RI, _S],
|
|
91
|
-
[0, 2]
|
|
92
|
-
];
|
|
76
|
+
n0_registry.registerError(InvalidArgsException$, InvalidArgsException);
|
|
93
77
|
export var SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
94
78
|
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
95
79
|
[_M],
|
|
96
80
|
[0]
|
|
97
81
|
];
|
|
98
|
-
|
|
82
|
+
n0_registry.registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
|
|
99
83
|
export var SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
100
84
|
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
101
85
|
[_M],
|
|
102
86
|
[0]
|
|
103
87
|
];
|
|
104
|
-
|
|
88
|
+
n0_registry.registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
|
|
105
89
|
export var SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
106
|
-
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]:
|
|
90
|
+
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _se, [_hE]: 500 },
|
|
107
91
|
[_M],
|
|
108
92
|
[0]
|
|
109
93
|
];
|
|
110
|
-
|
|
94
|
+
n0_registry.registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
|
|
111
95
|
export var SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
112
96
|
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
113
97
|
[_M],
|
|
114
98
|
[0]
|
|
115
99
|
];
|
|
116
|
-
|
|
100
|
+
n0_registry.registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
|
|
117
101
|
export var ServiceException$ = [-3, n0, _SE,
|
|
118
|
-
{ [_aQE]: [`InternalServerError`, 500], [_e]:
|
|
102
|
+
{ [_aQE]: [`InternalServerError`, 500], [_e]: _se, [_hE]: 500 },
|
|
119
103
|
[_M],
|
|
120
104
|
[0]
|
|
121
105
|
];
|
|
122
|
-
|
|
106
|
+
n0_registry.registerError(ServiceException$, ServiceException);
|
|
123
107
|
export var ThrottlingException$ = [-3, n0, _TE,
|
|
124
108
|
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
125
109
|
[_M],
|
|
126
110
|
[0]
|
|
127
111
|
];
|
|
128
|
-
|
|
129
|
-
export
|
|
130
|
-
|
|
112
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
113
|
+
export const errorTypeRegistries = [
|
|
114
|
+
_s_registry,
|
|
115
|
+
n0_registry,
|
|
116
|
+
];
|
|
117
|
+
export var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
118
|
+
0,
|
|
119
|
+
[_II, _SSHPK, _SP],
|
|
120
|
+
[0, 0, 1], 2
|
|
121
|
+
];
|
|
122
|
+
export var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
123
|
+
0,
|
|
124
|
+
[_RI, _S],
|
|
125
|
+
[0, 2]
|
|
126
|
+
];
|
|
127
|
+
export var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
128
|
+
0,
|
|
129
|
+
[_II, _IOSU, _SSHPK, _AZ],
|
|
130
|
+
[0, 0, 0, 0], 3
|
|
131
|
+
];
|
|
132
|
+
export var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
133
|
+
0,
|
|
134
|
+
[_RI, _S],
|
|
135
|
+
[0, 2]
|
|
136
|
+
];
|
|
131
137
|
export var SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
132
138
|
0, () => SendSerialConsoleSSHPublicKeyRequest$, () => SendSerialConsoleSSHPublicKeyResponse$
|
|
133
139
|
];
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var EC2InstanceConnectServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AuthException$: StaticErrorSchema;
|
|
3
5
|
export declare var EC2InstanceNotFoundException$: StaticErrorSchema;
|
|
4
6
|
export declare var EC2InstanceStateInvalidException$: StaticErrorSchema;
|
|
5
7
|
export declare var EC2InstanceTypeInvalidException$: StaticErrorSchema;
|
|
6
8
|
export declare var EC2InstanceUnavailableException$: StaticErrorSchema;
|
|
7
9
|
export declare var InvalidArgsException$: StaticErrorSchema;
|
|
8
|
-
export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
|
|
9
|
-
export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
|
|
10
|
-
export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
|
|
11
|
-
export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
|
|
12
10
|
export declare var SerialConsoleAccessDisabledException$: StaticErrorSchema;
|
|
13
11
|
export declare var SerialConsoleSessionLimitExceededException$: StaticErrorSchema;
|
|
14
12
|
export declare var SerialConsoleSessionUnavailableException$: StaticErrorSchema;
|
|
15
13
|
export declare var SerialConsoleSessionUnsupportedException$: StaticErrorSchema;
|
|
16
14
|
export declare var ServiceException$: StaticErrorSchema;
|
|
17
15
|
export declare var ThrottlingException$: StaticErrorSchema;
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* TypeRegistry instances containing modeled errors.
|
|
18
|
+
* @internal
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
22
|
+
export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
|
|
23
|
+
export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
|
|
24
|
+
export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
|
|
25
|
+
export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
|
|
19
26
|
export declare var SendSerialConsoleSSHPublicKey$: StaticOperationSchema;
|
|
20
27
|
export declare var SendSSHPublicKey$: StaticOperationSchema;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var EC2InstanceConnectServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AuthException$: StaticErrorSchema;
|
|
7
9
|
export declare var EC2InstanceNotFoundException$: StaticErrorSchema;
|
|
8
10
|
export declare var EC2InstanceStateInvalidException$: StaticErrorSchema;
|
|
9
11
|
export declare var EC2InstanceTypeInvalidException$: StaticErrorSchema;
|
|
10
12
|
export declare var EC2InstanceUnavailableException$: StaticErrorSchema;
|
|
11
13
|
export declare var InvalidArgsException$: StaticErrorSchema;
|
|
12
|
-
export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
|
|
13
|
-
export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
|
|
14
|
-
export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
|
|
15
|
-
export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
|
|
16
14
|
export declare var SerialConsoleAccessDisabledException$: StaticErrorSchema;
|
|
17
15
|
export declare var SerialConsoleSessionLimitExceededException$: StaticErrorSchema;
|
|
18
16
|
export declare var SerialConsoleSessionUnavailableException$: StaticErrorSchema;
|
|
19
17
|
export declare var SerialConsoleSessionUnsupportedException$: StaticErrorSchema;
|
|
20
18
|
export declare var ServiceException$: StaticErrorSchema;
|
|
21
19
|
export declare var ThrottlingException$: StaticErrorSchema;
|
|
22
|
-
export declare
|
|
20
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
21
|
+
export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
|
|
22
|
+
export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
|
|
23
|
+
export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
|
|
24
|
+
export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
|
|
23
25
|
export declare var SendSerialConsoleSSHPublicKey$: StaticOperationSchema;
|
|
24
26
|
export declare var SendSSHPublicKey$: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.8",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|