@aws-sdk/client-ec2-instance-connect 3.504.0 → 3.509.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 +16 -53
- package/dist-es/protocols/Aws_json1_1.js +15 -52
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -368,7 +368,7 @@ var se_SendSSHPublicKeyCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
368
368
|
}, "se_SendSSHPublicKeyCommand");
|
|
369
369
|
var de_SendSerialConsoleSSHPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
370
370
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
371
|
+
return de_CommandError(output, context);
|
|
372
372
|
}
|
|
373
373
|
const data = await parseBody(output.body, context);
|
|
374
374
|
let contents = {};
|
|
@@ -379,58 +379,9 @@ var de_SendSerialConsoleSSHPublicKeyCommand = /* @__PURE__ */ __name(async (outp
|
|
|
379
379
|
};
|
|
380
380
|
return response;
|
|
381
381
|
}, "de_SendSerialConsoleSSHPublicKeyCommand");
|
|
382
|
-
var de_SendSerialConsoleSSHPublicKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context)
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "AuthException":
|
|
390
|
-
case "com.amazonaws.ec2instanceconnect#AuthException":
|
|
391
|
-
throw await de_AuthExceptionRes(parsedOutput, context);
|
|
392
|
-
case "EC2InstanceNotFoundException":
|
|
393
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException":
|
|
394
|
-
throw await de_EC2InstanceNotFoundExceptionRes(parsedOutput, context);
|
|
395
|
-
case "EC2InstanceStateInvalidException":
|
|
396
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":
|
|
397
|
-
throw await de_EC2InstanceStateInvalidExceptionRes(parsedOutput, context);
|
|
398
|
-
case "EC2InstanceTypeInvalidException":
|
|
399
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException":
|
|
400
|
-
throw await de_EC2InstanceTypeInvalidExceptionRes(parsedOutput, context);
|
|
401
|
-
case "EC2InstanceUnavailableException":
|
|
402
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
|
|
403
|
-
throw await de_EC2InstanceUnavailableExceptionRes(parsedOutput, context);
|
|
404
|
-
case "InvalidArgsException":
|
|
405
|
-
case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
|
|
406
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
407
|
-
case "SerialConsoleAccessDisabledException":
|
|
408
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException":
|
|
409
|
-
throw await de_SerialConsoleAccessDisabledExceptionRes(parsedOutput, context);
|
|
410
|
-
case "SerialConsoleSessionLimitExceededException":
|
|
411
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException":
|
|
412
|
-
throw await de_SerialConsoleSessionLimitExceededExceptionRes(parsedOutput, context);
|
|
413
|
-
case "SerialConsoleSessionUnavailableException":
|
|
414
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
415
|
-
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ServiceException":
|
|
417
|
-
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
418
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ThrottlingException":
|
|
420
|
-
case "com.amazonaws.ec2instanceconnect#ThrottlingException":
|
|
421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
422
|
-
default:
|
|
423
|
-
const parsedBody = parsedOutput.body;
|
|
424
|
-
return throwDefaultError({
|
|
425
|
-
output,
|
|
426
|
-
parsedBody,
|
|
427
|
-
errorCode
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
}, "de_SendSerialConsoleSSHPublicKeyCommandError");
|
|
431
382
|
var de_SendSSHPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
432
383
|
if (output.statusCode >= 300) {
|
|
433
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
434
385
|
}
|
|
435
386
|
const data = await parseBody(output.body, context);
|
|
436
387
|
let contents = {};
|
|
@@ -441,7 +392,7 @@ var de_SendSSHPublicKeyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
441
392
|
};
|
|
442
393
|
return response;
|
|
443
394
|
}, "de_SendSSHPublicKeyCommand");
|
|
444
|
-
var
|
|
395
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
445
396
|
const parsedOutput = {
|
|
446
397
|
...output,
|
|
447
398
|
body: await parseErrorBody(output.body, context)
|
|
@@ -457,12 +408,24 @@ var de_SendSSHPublicKeyCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
457
408
|
case "EC2InstanceStateInvalidException":
|
|
458
409
|
case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":
|
|
459
410
|
throw await de_EC2InstanceStateInvalidExceptionRes(parsedOutput, context);
|
|
411
|
+
case "EC2InstanceTypeInvalidException":
|
|
412
|
+
case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException":
|
|
413
|
+
throw await de_EC2InstanceTypeInvalidExceptionRes(parsedOutput, context);
|
|
460
414
|
case "EC2InstanceUnavailableException":
|
|
461
415
|
case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
|
|
462
416
|
throw await de_EC2InstanceUnavailableExceptionRes(parsedOutput, context);
|
|
463
417
|
case "InvalidArgsException":
|
|
464
418
|
case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
|
|
465
419
|
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
420
|
+
case "SerialConsoleAccessDisabledException":
|
|
421
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException":
|
|
422
|
+
throw await de_SerialConsoleAccessDisabledExceptionRes(parsedOutput, context);
|
|
423
|
+
case "SerialConsoleSessionLimitExceededException":
|
|
424
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException":
|
|
425
|
+
throw await de_SerialConsoleSessionLimitExceededExceptionRes(parsedOutput, context);
|
|
426
|
+
case "SerialConsoleSessionUnavailableException":
|
|
427
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
428
|
+
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
466
429
|
case "ServiceException":
|
|
467
430
|
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
468
431
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
@@ -477,7 +440,7 @@ var de_SendSSHPublicKeyCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
477
440
|
errorCode
|
|
478
441
|
});
|
|
479
442
|
}
|
|
480
|
-
}, "
|
|
443
|
+
}, "de_CommandError");
|
|
481
444
|
var de_AuthExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
482
445
|
const body = parsedOutput.body;
|
|
483
446
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -16,7 +16,7 @@ export const se_SendSSHPublicKeyCommand = async (input, context) => {
|
|
|
16
16
|
};
|
|
17
17
|
export const de_SendSerialConsoleSSHPublicKeyCommand = async (output, context) => {
|
|
18
18
|
if (output.statusCode >= 300) {
|
|
19
|
-
return
|
|
19
|
+
return de_CommandError(output, context);
|
|
20
20
|
}
|
|
21
21
|
const data = await parseBody(output.body, context);
|
|
22
22
|
let contents = {};
|
|
@@ -27,58 +27,9 @@ export const de_SendSerialConsoleSSHPublicKeyCommand = async (output, context) =
|
|
|
27
27
|
};
|
|
28
28
|
return response;
|
|
29
29
|
};
|
|
30
|
-
const de_SendSerialConsoleSSHPublicKeyCommandError = async (output, context) => {
|
|
31
|
-
const parsedOutput = {
|
|
32
|
-
...output,
|
|
33
|
-
body: await parseErrorBody(output.body, context),
|
|
34
|
-
};
|
|
35
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
36
|
-
switch (errorCode) {
|
|
37
|
-
case "AuthException":
|
|
38
|
-
case "com.amazonaws.ec2instanceconnect#AuthException":
|
|
39
|
-
throw await de_AuthExceptionRes(parsedOutput, context);
|
|
40
|
-
case "EC2InstanceNotFoundException":
|
|
41
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException":
|
|
42
|
-
throw await de_EC2InstanceNotFoundExceptionRes(parsedOutput, context);
|
|
43
|
-
case "EC2InstanceStateInvalidException":
|
|
44
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":
|
|
45
|
-
throw await de_EC2InstanceStateInvalidExceptionRes(parsedOutput, context);
|
|
46
|
-
case "EC2InstanceTypeInvalidException":
|
|
47
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException":
|
|
48
|
-
throw await de_EC2InstanceTypeInvalidExceptionRes(parsedOutput, context);
|
|
49
|
-
case "EC2InstanceUnavailableException":
|
|
50
|
-
case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
|
|
51
|
-
throw await de_EC2InstanceUnavailableExceptionRes(parsedOutput, context);
|
|
52
|
-
case "InvalidArgsException":
|
|
53
|
-
case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
|
|
54
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
55
|
-
case "SerialConsoleAccessDisabledException":
|
|
56
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException":
|
|
57
|
-
throw await de_SerialConsoleAccessDisabledExceptionRes(parsedOutput, context);
|
|
58
|
-
case "SerialConsoleSessionLimitExceededException":
|
|
59
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException":
|
|
60
|
-
throw await de_SerialConsoleSessionLimitExceededExceptionRes(parsedOutput, context);
|
|
61
|
-
case "SerialConsoleSessionUnavailableException":
|
|
62
|
-
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
63
|
-
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
64
|
-
case "ServiceException":
|
|
65
|
-
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
66
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
67
|
-
case "ThrottlingException":
|
|
68
|
-
case "com.amazonaws.ec2instanceconnect#ThrottlingException":
|
|
69
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
70
|
-
default:
|
|
71
|
-
const parsedBody = parsedOutput.body;
|
|
72
|
-
return throwDefaultError({
|
|
73
|
-
output,
|
|
74
|
-
parsedBody,
|
|
75
|
-
errorCode,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
30
|
export const de_SendSSHPublicKeyCommand = async (output, context) => {
|
|
80
31
|
if (output.statusCode >= 300) {
|
|
81
|
-
return
|
|
32
|
+
return de_CommandError(output, context);
|
|
82
33
|
}
|
|
83
34
|
const data = await parseBody(output.body, context);
|
|
84
35
|
let contents = {};
|
|
@@ -89,7 +40,7 @@ export const de_SendSSHPublicKeyCommand = async (output, context) => {
|
|
|
89
40
|
};
|
|
90
41
|
return response;
|
|
91
42
|
};
|
|
92
|
-
const
|
|
43
|
+
const de_CommandError = async (output, context) => {
|
|
93
44
|
const parsedOutput = {
|
|
94
45
|
...output,
|
|
95
46
|
body: await parseErrorBody(output.body, context),
|
|
@@ -105,12 +56,24 @@ const de_SendSSHPublicKeyCommandError = async (output, context) => {
|
|
|
105
56
|
case "EC2InstanceStateInvalidException":
|
|
106
57
|
case "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException":
|
|
107
58
|
throw await de_EC2InstanceStateInvalidExceptionRes(parsedOutput, context);
|
|
59
|
+
case "EC2InstanceTypeInvalidException":
|
|
60
|
+
case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException":
|
|
61
|
+
throw await de_EC2InstanceTypeInvalidExceptionRes(parsedOutput, context);
|
|
108
62
|
case "EC2InstanceUnavailableException":
|
|
109
63
|
case "com.amazonaws.ec2instanceconnect#EC2InstanceUnavailableException":
|
|
110
64
|
throw await de_EC2InstanceUnavailableExceptionRes(parsedOutput, context);
|
|
111
65
|
case "InvalidArgsException":
|
|
112
66
|
case "com.amazonaws.ec2instanceconnect#InvalidArgsException":
|
|
113
67
|
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
68
|
+
case "SerialConsoleAccessDisabledException":
|
|
69
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException":
|
|
70
|
+
throw await de_SerialConsoleAccessDisabledExceptionRes(parsedOutput, context);
|
|
71
|
+
case "SerialConsoleSessionLimitExceededException":
|
|
72
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException":
|
|
73
|
+
throw await de_SerialConsoleSessionLimitExceededExceptionRes(parsedOutput, context);
|
|
74
|
+
case "SerialConsoleSessionUnavailableException":
|
|
75
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
76
|
+
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
114
77
|
case "ServiceException":
|
|
115
78
|
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
116
79
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
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.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|