@aws-sdk/client-ec2-instance-connect 3.141.0 → 3.150.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/protocols/Aws_json1_1.js +10 -16
- package/dist-es/protocols/Aws_json1_1.js +17 -17
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-ec2-instance-connect
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -44,7 +44,6 @@ const deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = async (o
|
|
|
44
44
|
...output,
|
|
45
45
|
body: await parseBody(output.body, context),
|
|
46
46
|
};
|
|
47
|
-
let response;
|
|
48
47
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
49
48
|
switch (errorCode) {
|
|
50
49
|
case "AuthException":
|
|
@@ -82,14 +81,12 @@ const deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = async (o
|
|
|
82
81
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
83
82
|
default:
|
|
84
83
|
const parsedBody = parsedOutput.body;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
$metadata,
|
|
84
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
85
|
+
output,
|
|
86
|
+
parsedBody,
|
|
87
|
+
exceptionCtor: EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException,
|
|
88
|
+
errorCode,
|
|
91
89
|
});
|
|
92
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
93
90
|
}
|
|
94
91
|
};
|
|
95
92
|
const deserializeAws_json1_1SendSSHPublicKeyCommand = async (output, context) => {
|
|
@@ -111,7 +108,6 @@ const deserializeAws_json1_1SendSSHPublicKeyCommandError = async (output, contex
|
|
|
111
108
|
...output,
|
|
112
109
|
body: await parseBody(output.body, context),
|
|
113
110
|
};
|
|
114
|
-
let response;
|
|
115
111
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
116
112
|
switch (errorCode) {
|
|
117
113
|
case "AuthException":
|
|
@@ -137,14 +133,12 @@ const deserializeAws_json1_1SendSSHPublicKeyCommandError = async (output, contex
|
|
|
137
133
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
138
134
|
default:
|
|
139
135
|
const parsedBody = parsedOutput.body;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
$metadata,
|
|
136
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
137
|
+
output,
|
|
138
|
+
parsedBody,
|
|
139
|
+
exceptionCtor: EC2InstanceConnectServiceException_1.EC2InstanceConnectServiceException,
|
|
140
|
+
errorCode,
|
|
146
141
|
});
|
|
147
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
148
142
|
}
|
|
149
143
|
};
|
|
150
144
|
const deserializeAws_json1_1AuthExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { EC2InstanceConnectServiceException as __BaseException } from "../models/EC2InstanceConnectServiceException";
|
|
5
5
|
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -44,7 +44,7 @@ export var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand = function
|
|
|
44
44
|
});
|
|
45
45
|
}); };
|
|
46
46
|
var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
47
|
-
var parsedOutput, _a,
|
|
47
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
48
48
|
var _c;
|
|
49
49
|
return __generator(this, function (_d) {
|
|
50
50
|
switch (_d.label) {
|
|
@@ -105,14 +105,14 @@ var deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError = function (
|
|
|
105
105
|
case 23: throw _d.sent();
|
|
106
106
|
case 24:
|
|
107
107
|
parsedBody = parsedOutput.body;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
$metadata: $metadata,
|
|
108
|
+
throwDefaultError({
|
|
109
|
+
output: output,
|
|
110
|
+
parsedBody: parsedBody,
|
|
111
|
+
exceptionCtor: __BaseException,
|
|
112
|
+
errorCode: errorCode,
|
|
114
113
|
});
|
|
115
|
-
|
|
114
|
+
_d.label = 25;
|
|
115
|
+
case 25: return [2];
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}); };
|
|
@@ -135,7 +135,7 @@ export var deserializeAws_json1_1SendSSHPublicKeyCommand = function (output, con
|
|
|
135
135
|
});
|
|
136
136
|
}); };
|
|
137
137
|
var deserializeAws_json1_1SendSSHPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
138
|
-
var parsedOutput, _a,
|
|
138
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
139
139
|
var _c;
|
|
140
140
|
return __generator(this, function (_d) {
|
|
141
141
|
switch (_d.label) {
|
|
@@ -180,14 +180,14 @@ var deserializeAws_json1_1SendSSHPublicKeyCommandError = function (output, conte
|
|
|
180
180
|
case 15: throw _d.sent();
|
|
181
181
|
case 16:
|
|
182
182
|
parsedBody = parsedOutput.body;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
$metadata: $metadata,
|
|
183
|
+
throwDefaultError({
|
|
184
|
+
output: output,
|
|
185
|
+
parsedBody: parsedBody,
|
|
186
|
+
exceptionCtor: __BaseException,
|
|
187
|
+
errorCode: errorCode,
|
|
189
188
|
});
|
|
190
|
-
|
|
189
|
+
_d.label = 17;
|
|
190
|
+
case 17: return [2];
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
}); };
|
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.150.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|