@aws-sdk/client-iotsecuretunneling 3.52.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 +12 -0
- package/dist-cjs/endpoints.js +64 -2
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/IoTSecureTunnelingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +28 -1
- package/dist-cjs/protocols/Aws_json1_1.js +48 -119
- package/dist-es/endpoints.js +64 -2
- package/dist-es/index.js +1 -0
- package/dist-es/models/IoTSecureTunnelingServiceException.js +12 -0
- package/dist-es/models/models_0.js +26 -1
- package/dist-es/protocols/Aws_json1_1.js +107 -137
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/IoTSecureTunnelingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +16 -9
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/IoTSecureTunnelingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
* **clients:** update clients as of 2022/02/23 ([#3356](https://github.com/aws/aws-sdk-js-v3/issues/3356)) ([b6b2e25](https://github.com/aws/aws-sdk-js-v3/commit/b6b2e258add12c73d807483ca078401a6d84a12b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -2,7 +2,64 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
-
const regionHash = {
|
|
5
|
+
const regionHash = {
|
|
6
|
+
"ca-central-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "api.tunneling.iot-fips.ca-central-1.amazonaws.com",
|
|
10
|
+
tags: ["fips"],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
"us-east-1": {
|
|
15
|
+
variants: [
|
|
16
|
+
{
|
|
17
|
+
hostname: "api.tunneling.iot-fips.us-east-1.amazonaws.com",
|
|
18
|
+
tags: ["fips"],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
"us-east-2": {
|
|
23
|
+
variants: [
|
|
24
|
+
{
|
|
25
|
+
hostname: "api.tunneling.iot-fips.us-east-2.amazonaws.com",
|
|
26
|
+
tags: ["fips"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
"us-gov-east-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "api.tunneling.iot-fips.us-gov-east-1.amazonaws.com",
|
|
34
|
+
tags: ["fips"],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
"us-gov-west-1": {
|
|
39
|
+
variants: [
|
|
40
|
+
{
|
|
41
|
+
hostname: "api.tunneling.iot-fips.us-gov-west-1.amazonaws.com",
|
|
42
|
+
tags: ["fips"],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
"us-west-1": {
|
|
47
|
+
variants: [
|
|
48
|
+
{
|
|
49
|
+
hostname: "api.tunneling.iot-fips.us-west-1.amazonaws.com",
|
|
50
|
+
tags: ["fips"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
"us-west-2": {
|
|
55
|
+
variants: [
|
|
56
|
+
{
|
|
57
|
+
hostname: "api.tunneling.iot-fips.us-west-2.amazonaws.com",
|
|
58
|
+
tags: ["fips"],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
6
63
|
const partitionHash = {
|
|
7
64
|
aws: {
|
|
8
65
|
regions: [
|
|
@@ -22,6 +79,11 @@ const partitionHash = {
|
|
|
22
79
|
"eu-west-1",
|
|
23
80
|
"eu-west-2",
|
|
24
81
|
"eu-west-3",
|
|
82
|
+
"fips-ca-central-1",
|
|
83
|
+
"fips-us-east-1",
|
|
84
|
+
"fips-us-east-2",
|
|
85
|
+
"fips-us-west-1",
|
|
86
|
+
"fips-us-west-2",
|
|
25
87
|
"me-south-1",
|
|
26
88
|
"sa-east-1",
|
|
27
89
|
"us-east-1",
|
|
@@ -100,7 +162,7 @@ const partitionHash = {
|
|
|
100
162
|
],
|
|
101
163
|
},
|
|
102
164
|
"aws-us-gov": {
|
|
103
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
165
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
104
166
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
105
167
|
variants: [
|
|
106
168
|
{
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IoTSecureTunnelingServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./IoTSecureTunneling"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./IoTSecureTunnelingClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var IoTSecureTunnelingServiceException_1 = require("./models/IoTSecureTunnelingServiceException");
|
|
11
|
+
Object.defineProperty(exports, "IoTSecureTunnelingServiceException", { enumerable: true, get: function () { return IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IoTSecureTunnelingServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class IoTSecureTunnelingServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.OpenTunnelResponse = exports.OpenTunnelRequest = exports.ListTunnelsResponse = exports.TunnelSummary = exports.ListTunnelsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.DescribeTunnelResponse = exports.Tunnel = exports.TimeoutConfig = exports.Tag = exports.TunnelStatus = exports.DestinationConfig = exports.DescribeTunnelRequest = exports.ConnectionState = exports.ConnectionStatus = exports.CloseTunnelResponse = exports.CloseTunnelRequest = void 0;
|
|
3
|
+
exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.OpenTunnelResponse = exports.OpenTunnelRequest = exports.LimitExceededException = exports.ListTunnelsResponse = exports.TunnelSummary = exports.ListTunnelsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.DescribeTunnelResponse = exports.Tunnel = exports.TimeoutConfig = exports.Tag = exports.TunnelStatus = exports.DestinationConfig = exports.DescribeTunnelRequest = exports.ConnectionState = exports.ConnectionStatus = exports.ResourceNotFoundException = exports.CloseTunnelResponse = exports.CloseTunnelRequest = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const IoTSecureTunnelingServiceException_1 = require("./IoTSecureTunnelingServiceException");
|
|
5
6
|
var CloseTunnelRequest;
|
|
6
7
|
(function (CloseTunnelRequest) {
|
|
7
8
|
CloseTunnelRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -14,6 +15,19 @@ var CloseTunnelResponse;
|
|
|
14
15
|
...obj,
|
|
15
16
|
});
|
|
16
17
|
})(CloseTunnelResponse = exports.CloseTunnelResponse || (exports.CloseTunnelResponse = {}));
|
|
18
|
+
class ResourceNotFoundException extends IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException {
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ResourceNotFoundException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
this.name = "ResourceNotFoundException";
|
|
26
|
+
this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
17
31
|
var ConnectionStatus;
|
|
18
32
|
(function (ConnectionStatus) {
|
|
19
33
|
ConnectionStatus["CONNECTED"] = "CONNECTED";
|
|
@@ -96,6 +110,19 @@ var ListTunnelsResponse;
|
|
|
96
110
|
...obj,
|
|
97
111
|
});
|
|
98
112
|
})(ListTunnelsResponse = exports.ListTunnelsResponse || (exports.ListTunnelsResponse = {}));
|
|
113
|
+
class LimitExceededException extends IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException {
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "LimitExceededException",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts,
|
|
119
|
+
});
|
|
120
|
+
this.name = "LimitExceededException";
|
|
121
|
+
this.$fault = "client";
|
|
122
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.LimitExceededException = LimitExceededException;
|
|
99
126
|
var OpenTunnelRequest;
|
|
100
127
|
(function (OpenTunnelRequest) {
|
|
101
128
|
OpenTunnelRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1OpenTunnelCommand = exports.deserializeAws_json1_1ListTunnelsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1DescribeTunnelCommand = exports.deserializeAws_json1_1CloseTunnelCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1OpenTunnelCommand = exports.serializeAws_json1_1ListTunnelsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1DescribeTunnelCommand = exports.serializeAws_json1_1CloseTunnelCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const IoTSecureTunnelingServiceException_1 = require("../models/IoTSecureTunnelingServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1CloseTunnelCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -98,27 +100,16 @@ const deserializeAws_json1_1CloseTunnelCommandError = async (output, context) =>
|
|
|
98
100
|
switch (errorCode) {
|
|
99
101
|
case "ResourceNotFoundException":
|
|
100
102
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
101
|
-
|
|
102
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
103
|
-
name: errorCode,
|
|
104
|
-
$metadata: deserializeMetadata(output),
|
|
105
|
-
};
|
|
106
|
-
break;
|
|
103
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
107
104
|
default:
|
|
108
105
|
const parsedBody = parsedOutput.body;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
...parsedBody,
|
|
112
|
-
name: `${errorCode}`,
|
|
113
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
106
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
107
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
114
108
|
$fault: "client",
|
|
115
109
|
$metadata: deserializeMetadata(output),
|
|
116
|
-
};
|
|
110
|
+
});
|
|
111
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
117
112
|
}
|
|
118
|
-
const message = response.message || response.Message || errorCode;
|
|
119
|
-
response.message = message;
|
|
120
|
-
delete response.Message;
|
|
121
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
122
113
|
};
|
|
123
114
|
const deserializeAws_json1_1DescribeTunnelCommand = async (output, context) => {
|
|
124
115
|
if (output.statusCode >= 300) {
|
|
@@ -145,27 +136,16 @@ const deserializeAws_json1_1DescribeTunnelCommandError = async (output, context)
|
|
|
145
136
|
switch (errorCode) {
|
|
146
137
|
case "ResourceNotFoundException":
|
|
147
138
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
148
|
-
|
|
149
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
150
|
-
name: errorCode,
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
139
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
154
140
|
default:
|
|
155
141
|
const parsedBody = parsedOutput.body;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
...parsedBody,
|
|
159
|
-
name: `${errorCode}`,
|
|
160
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
142
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
161
144
|
$fault: "client",
|
|
162
145
|
$metadata: deserializeMetadata(output),
|
|
163
|
-
};
|
|
146
|
+
});
|
|
147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
164
148
|
}
|
|
165
|
-
const message = response.message || response.Message || errorCode;
|
|
166
|
-
response.message = message;
|
|
167
|
-
delete response.Message;
|
|
168
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
169
149
|
};
|
|
170
150
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
171
151
|
if (output.statusCode >= 300) {
|
|
@@ -192,27 +172,16 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
192
172
|
switch (errorCode) {
|
|
193
173
|
case "ResourceNotFoundException":
|
|
194
174
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
195
|
-
|
|
196
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
197
|
-
name: errorCode,
|
|
198
|
-
$metadata: deserializeMetadata(output),
|
|
199
|
-
};
|
|
200
|
-
break;
|
|
175
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
201
176
|
default:
|
|
202
177
|
const parsedBody = parsedOutput.body;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
...parsedBody,
|
|
206
|
-
name: `${errorCode}`,
|
|
207
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
178
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
179
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
208
180
|
$fault: "client",
|
|
209
181
|
$metadata: deserializeMetadata(output),
|
|
210
|
-
};
|
|
182
|
+
});
|
|
183
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
211
184
|
}
|
|
212
|
-
const message = response.message || response.Message || errorCode;
|
|
213
|
-
response.message = message;
|
|
214
|
-
delete response.Message;
|
|
215
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
216
185
|
};
|
|
217
186
|
const deserializeAws_json1_1ListTunnelsCommand = async (output, context) => {
|
|
218
187
|
if (output.statusCode >= 300) {
|
|
@@ -239,19 +208,13 @@ const deserializeAws_json1_1ListTunnelsCommandError = async (output, context) =>
|
|
|
239
208
|
switch (errorCode) {
|
|
240
209
|
default:
|
|
241
210
|
const parsedBody = parsedOutput.body;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
...parsedBody,
|
|
245
|
-
name: `${errorCode}`,
|
|
246
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
211
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
212
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
247
213
|
$fault: "client",
|
|
248
214
|
$metadata: deserializeMetadata(output),
|
|
249
|
-
};
|
|
215
|
+
});
|
|
216
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
250
217
|
}
|
|
251
|
-
const message = response.message || response.Message || errorCode;
|
|
252
|
-
response.message = message;
|
|
253
|
-
delete response.Message;
|
|
254
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
255
218
|
};
|
|
256
219
|
const deserializeAws_json1_1OpenTunnelCommand = async (output, context) => {
|
|
257
220
|
if (output.statusCode >= 300) {
|
|
@@ -278,27 +241,16 @@ const deserializeAws_json1_1OpenTunnelCommandError = async (output, context) =>
|
|
|
278
241
|
switch (errorCode) {
|
|
279
242
|
case "LimitExceededException":
|
|
280
243
|
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
281
|
-
|
|
282
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
283
|
-
name: errorCode,
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
};
|
|
286
|
-
break;
|
|
244
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
287
245
|
default:
|
|
288
246
|
const parsedBody = parsedOutput.body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
...parsedBody,
|
|
292
|
-
name: `${errorCode}`,
|
|
293
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
247
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
248
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
294
249
|
$fault: "client",
|
|
295
250
|
$metadata: deserializeMetadata(output),
|
|
296
|
-
};
|
|
251
|
+
});
|
|
252
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
297
253
|
}
|
|
298
|
-
const message = response.message || response.Message || errorCode;
|
|
299
|
-
response.message = message;
|
|
300
|
-
delete response.Message;
|
|
301
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
302
254
|
};
|
|
303
255
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
304
256
|
if (output.statusCode >= 300) {
|
|
@@ -325,27 +277,16 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
325
277
|
switch (errorCode) {
|
|
326
278
|
case "ResourceNotFoundException":
|
|
327
279
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
328
|
-
|
|
329
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
330
|
-
name: errorCode,
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
};
|
|
333
|
-
break;
|
|
280
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
334
281
|
default:
|
|
335
282
|
const parsedBody = parsedOutput.body;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
...parsedBody,
|
|
339
|
-
name: `${errorCode}`,
|
|
340
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
283
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
284
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
341
285
|
$fault: "client",
|
|
342
286
|
$metadata: deserializeMetadata(output),
|
|
343
|
-
};
|
|
287
|
+
});
|
|
288
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
344
289
|
}
|
|
345
|
-
const message = response.message || response.Message || errorCode;
|
|
346
|
-
response.message = message;
|
|
347
|
-
delete response.Message;
|
|
348
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
349
290
|
};
|
|
350
291
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
351
292
|
if (output.statusCode >= 300) {
|
|
@@ -372,49 +313,34 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
372
313
|
switch (errorCode) {
|
|
373
314
|
case "ResourceNotFoundException":
|
|
374
315
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
375
|
-
|
|
376
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
377
|
-
name: errorCode,
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
};
|
|
380
|
-
break;
|
|
316
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
381
317
|
default:
|
|
382
318
|
const parsedBody = parsedOutput.body;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
...parsedBody,
|
|
386
|
-
name: `${errorCode}`,
|
|
387
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
319
|
+
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
320
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
388
321
|
$fault: "client",
|
|
389
322
|
$metadata: deserializeMetadata(output),
|
|
390
|
-
};
|
|
323
|
+
});
|
|
324
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
391
325
|
}
|
|
392
|
-
const message = response.message || response.Message || errorCode;
|
|
393
|
-
response.message = message;
|
|
394
|
-
delete response.Message;
|
|
395
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
396
326
|
};
|
|
397
327
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
398
328
|
const body = parsedOutput.body;
|
|
399
329
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
400
|
-
const
|
|
401
|
-
name: "LimitExceededException",
|
|
402
|
-
$fault: "client",
|
|
330
|
+
const exception = new models_0_1.LimitExceededException({
|
|
403
331
|
$metadata: deserializeMetadata(parsedOutput),
|
|
404
332
|
...deserialized,
|
|
405
|
-
};
|
|
406
|
-
return
|
|
333
|
+
});
|
|
334
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
407
335
|
};
|
|
408
336
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
409
337
|
const body = parsedOutput.body;
|
|
410
338
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
411
|
-
const
|
|
412
|
-
name: "ResourceNotFoundException",
|
|
413
|
-
$fault: "client",
|
|
339
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
414
340
|
$metadata: deserializeMetadata(parsedOutput),
|
|
415
341
|
...deserialized,
|
|
416
|
-
};
|
|
417
|
-
return
|
|
342
|
+
});
|
|
343
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
418
344
|
};
|
|
419
345
|
const serializeAws_json1_1CloseTunnelRequest = (input, context) => {
|
|
420
346
|
return {
|
|
@@ -575,7 +501,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
575
501
|
};
|
|
576
502
|
};
|
|
577
503
|
const deserializeAws_json1_1ServiceList = (output, context) => {
|
|
578
|
-
|
|
504
|
+
const retVal = (output || [])
|
|
579
505
|
.filter((e) => e != null)
|
|
580
506
|
.map((entry) => {
|
|
581
507
|
if (entry === null) {
|
|
@@ -583,6 +509,7 @@ const deserializeAws_json1_1ServiceList = (output, context) => {
|
|
|
583
509
|
}
|
|
584
510
|
return smithy_client_1.expectString(entry);
|
|
585
511
|
});
|
|
512
|
+
return retVal;
|
|
586
513
|
};
|
|
587
514
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
588
515
|
return {
|
|
@@ -591,7 +518,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
591
518
|
};
|
|
592
519
|
};
|
|
593
520
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
594
|
-
|
|
521
|
+
const retVal = (output || [])
|
|
595
522
|
.filter((e) => e != null)
|
|
596
523
|
.map((entry) => {
|
|
597
524
|
if (entry === null) {
|
|
@@ -599,6 +526,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
599
526
|
}
|
|
600
527
|
return deserializeAws_json1_1Tag(entry, context);
|
|
601
528
|
});
|
|
529
|
+
return retVal;
|
|
602
530
|
};
|
|
603
531
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
604
532
|
return {};
|
|
@@ -652,7 +580,7 @@ const deserializeAws_json1_1TunnelSummary = (output, context) => {
|
|
|
652
580
|
};
|
|
653
581
|
};
|
|
654
582
|
const deserializeAws_json1_1TunnelSummaryList = (output, context) => {
|
|
655
|
-
|
|
583
|
+
const retVal = (output || [])
|
|
656
584
|
.filter((e) => e != null)
|
|
657
585
|
.map((entry) => {
|
|
658
586
|
if (entry === null) {
|
|
@@ -660,6 +588,7 @@ const deserializeAws_json1_1TunnelSummaryList = (output, context) => {
|
|
|
660
588
|
}
|
|
661
589
|
return deserializeAws_json1_1TunnelSummary(entry, context);
|
|
662
590
|
});
|
|
591
|
+
return retVal;
|
|
663
592
|
};
|
|
664
593
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
665
594
|
return {};
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,63 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
var regionHash = {
|
|
3
|
+
var regionHash = {
|
|
4
|
+
"ca-central-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "api.tunneling.iot-fips.ca-central-1.amazonaws.com",
|
|
8
|
+
tags: ["fips"],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
12
|
+
"us-east-1": {
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
hostname: "api.tunneling.iot-fips.us-east-1.amazonaws.com",
|
|
16
|
+
tags: ["fips"],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
"us-east-2": {
|
|
21
|
+
variants: [
|
|
22
|
+
{
|
|
23
|
+
hostname: "api.tunneling.iot-fips.us-east-2.amazonaws.com",
|
|
24
|
+
tags: ["fips"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
"us-gov-east-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "api.tunneling.iot-fips.us-gov-east-1.amazonaws.com",
|
|
32
|
+
tags: ["fips"],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
"us-gov-west-1": {
|
|
37
|
+
variants: [
|
|
38
|
+
{
|
|
39
|
+
hostname: "api.tunneling.iot-fips.us-gov-west-1.amazonaws.com",
|
|
40
|
+
tags: ["fips"],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
"us-west-1": {
|
|
45
|
+
variants: [
|
|
46
|
+
{
|
|
47
|
+
hostname: "api.tunneling.iot-fips.us-west-1.amazonaws.com",
|
|
48
|
+
tags: ["fips"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
"us-west-2": {
|
|
53
|
+
variants: [
|
|
54
|
+
{
|
|
55
|
+
hostname: "api.tunneling.iot-fips.us-west-2.amazonaws.com",
|
|
56
|
+
tags: ["fips"],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
};
|
|
4
61
|
var partitionHash = {
|
|
5
62
|
aws: {
|
|
6
63
|
regions: [
|
|
@@ -20,6 +77,11 @@ var partitionHash = {
|
|
|
20
77
|
"eu-west-1",
|
|
21
78
|
"eu-west-2",
|
|
22
79
|
"eu-west-3",
|
|
80
|
+
"fips-ca-central-1",
|
|
81
|
+
"fips-us-east-1",
|
|
82
|
+
"fips-us-east-2",
|
|
83
|
+
"fips-us-west-1",
|
|
84
|
+
"fips-us-west-2",
|
|
23
85
|
"me-south-1",
|
|
24
86
|
"sa-east-1",
|
|
25
87
|
"us-east-1",
|
|
@@ -98,7 +160,7 @@ var partitionHash = {
|
|
|
98
160
|
],
|
|
99
161
|
},
|
|
100
162
|
"aws-us-gov": {
|
|
101
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
163
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
102
164
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
103
165
|
variants: [
|
|
104
166
|
{
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var IoTSecureTunnelingServiceException = (function (_super) {
|
|
4
|
+
__extends(IoTSecureTunnelingServiceException, _super);
|
|
5
|
+
function IoTSecureTunnelingServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, IoTSecureTunnelingServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return IoTSecureTunnelingServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { IoTSecureTunnelingServiceException };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
|
|
3
4
|
export var CloseTunnelRequest;
|
|
4
5
|
(function (CloseTunnelRequest) {
|
|
5
6
|
CloseTunnelRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -8,6 +9,18 @@ export var CloseTunnelResponse;
|
|
|
8
9
|
(function (CloseTunnelResponse) {
|
|
9
10
|
CloseTunnelResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
11
|
})(CloseTunnelResponse || (CloseTunnelResponse = {}));
|
|
12
|
+
var ResourceNotFoundException = (function (_super) {
|
|
13
|
+
__extends(ResourceNotFoundException, _super);
|
|
14
|
+
function ResourceNotFoundException(opts) {
|
|
15
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
16
|
+
_this.name = "ResourceNotFoundException";
|
|
17
|
+
_this.$fault = "client";
|
|
18
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
19
|
+
return _this;
|
|
20
|
+
}
|
|
21
|
+
return ResourceNotFoundException;
|
|
22
|
+
}(__BaseException));
|
|
23
|
+
export { ResourceNotFoundException };
|
|
11
24
|
export var ConnectionStatus;
|
|
12
25
|
(function (ConnectionStatus) {
|
|
13
26
|
ConnectionStatus["CONNECTED"] = "CONNECTED";
|
|
@@ -66,6 +79,18 @@ export var ListTunnelsResponse;
|
|
|
66
79
|
(function (ListTunnelsResponse) {
|
|
67
80
|
ListTunnelsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
81
|
})(ListTunnelsResponse || (ListTunnelsResponse = {}));
|
|
82
|
+
var LimitExceededException = (function (_super) {
|
|
83
|
+
__extends(LimitExceededException, _super);
|
|
84
|
+
function LimitExceededException(opts) {
|
|
85
|
+
var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
|
|
86
|
+
_this.name = "LimitExceededException";
|
|
87
|
+
_this.$fault = "client";
|
|
88
|
+
Object.setPrototypeOf(_this, LimitExceededException.prototype);
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
return LimitExceededException;
|
|
92
|
+
}(__BaseException));
|
|
93
|
+
export { LimitExceededException };
|
|
69
94
|
export var OpenTunnelRequest;
|
|
70
95
|
(function (OpenTunnelRequest) {
|
|
71
96
|
OpenTunnelRequest.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 { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { IoTSecureTunnelingServiceException as __BaseException } from "../models/IoTSecureTunnelingServiceException";
|
|
5
|
+
import { LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1CloseTunnelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -97,16 +99,16 @@ export var deserializeAws_json1_1CloseTunnelCommand = function (output, context)
|
|
|
97
99
|
});
|
|
98
100
|
}); };
|
|
99
101
|
var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
101
|
-
var
|
|
102
|
-
return __generator(this, function (
|
|
103
|
-
switch (
|
|
102
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
103
|
+
var _c;
|
|
104
|
+
return __generator(this, function (_d) {
|
|
105
|
+
switch (_d.label) {
|
|
104
106
|
case 0:
|
|
105
107
|
_a = [__assign({}, output)];
|
|
106
|
-
|
|
108
|
+
_c = {};
|
|
107
109
|
return [4, parseBody(output.body, context)];
|
|
108
110
|
case 1:
|
|
109
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
111
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
110
112
|
errorCode = "UnknownError";
|
|
111
113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
112
114
|
_b = errorCode;
|
|
@@ -115,22 +117,16 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
|
|
|
115
117
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException": return [3, 2];
|
|
116
118
|
}
|
|
117
119
|
return [3, 4];
|
|
118
|
-
case 2:
|
|
119
|
-
|
|
120
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
121
|
-
case 3:
|
|
122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
123
|
-
return [3, 5];
|
|
120
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
121
|
+
case 3: throw _d.sent();
|
|
124
122
|
case 4:
|
|
125
123
|
parsedBody = parsedOutput.body;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
response
|
|
132
|
-
delete response.Message;
|
|
133
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
124
|
+
response = new __BaseException({
|
|
125
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
126
|
+
$fault: "client",
|
|
127
|
+
$metadata: deserializeMetadata(output),
|
|
128
|
+
});
|
|
129
|
+
throw __decorateServiceException(response, parsedBody);
|
|
134
130
|
}
|
|
135
131
|
});
|
|
136
132
|
}); };
|
|
@@ -153,16 +149,16 @@ export var deserializeAws_json1_1DescribeTunnelCommand = function (output, conte
|
|
|
153
149
|
});
|
|
154
150
|
}); };
|
|
155
151
|
var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
156
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
157
|
-
var
|
|
158
|
-
return __generator(this, function (
|
|
159
|
-
switch (
|
|
152
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
153
|
+
var _c;
|
|
154
|
+
return __generator(this, function (_d) {
|
|
155
|
+
switch (_d.label) {
|
|
160
156
|
case 0:
|
|
161
157
|
_a = [__assign({}, output)];
|
|
162
|
-
|
|
158
|
+
_c = {};
|
|
163
159
|
return [4, parseBody(output.body, context)];
|
|
164
160
|
case 1:
|
|
165
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
161
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
166
162
|
errorCode = "UnknownError";
|
|
167
163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
168
164
|
_b = errorCode;
|
|
@@ -171,22 +167,16 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
|
|
|
171
167
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException": return [3, 2];
|
|
172
168
|
}
|
|
173
169
|
return [3, 4];
|
|
174
|
-
case 2:
|
|
175
|
-
|
|
176
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
177
|
-
case 3:
|
|
178
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
179
|
-
return [3, 5];
|
|
170
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
171
|
+
case 3: throw _d.sent();
|
|
180
172
|
case 4:
|
|
181
173
|
parsedBody = parsedOutput.body;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
response
|
|
188
|
-
delete response.Message;
|
|
189
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
174
|
+
response = new __BaseException({
|
|
175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
176
|
+
$fault: "client",
|
|
177
|
+
$metadata: deserializeMetadata(output),
|
|
178
|
+
});
|
|
179
|
+
throw __decorateServiceException(response, parsedBody);
|
|
190
180
|
}
|
|
191
181
|
});
|
|
192
182
|
}); };
|
|
@@ -209,16 +199,16 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
209
199
|
});
|
|
210
200
|
}); };
|
|
211
201
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
213
|
-
var
|
|
214
|
-
return __generator(this, function (
|
|
215
|
-
switch (
|
|
202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
203
|
+
var _c;
|
|
204
|
+
return __generator(this, function (_d) {
|
|
205
|
+
switch (_d.label) {
|
|
216
206
|
case 0:
|
|
217
207
|
_a = [__assign({}, output)];
|
|
218
|
-
|
|
208
|
+
_c = {};
|
|
219
209
|
return [4, parseBody(output.body, context)];
|
|
220
210
|
case 1:
|
|
221
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
211
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
222
212
|
errorCode = "UnknownError";
|
|
223
213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
224
214
|
_b = errorCode;
|
|
@@ -227,22 +217,16 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
227
217
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException": return [3, 2];
|
|
228
218
|
}
|
|
229
219
|
return [3, 4];
|
|
230
|
-
case 2:
|
|
231
|
-
|
|
232
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
233
|
-
case 3:
|
|
234
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
235
|
-
return [3, 5];
|
|
220
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
221
|
+
case 3: throw _d.sent();
|
|
236
222
|
case 4:
|
|
237
223
|
parsedBody = parsedOutput.body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
response
|
|
244
|
-
delete response.Message;
|
|
245
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
224
|
+
response = new __BaseException({
|
|
225
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
226
|
+
$fault: "client",
|
|
227
|
+
$metadata: deserializeMetadata(output),
|
|
228
|
+
});
|
|
229
|
+
throw __decorateServiceException(response, parsedBody);
|
|
246
230
|
}
|
|
247
231
|
});
|
|
248
232
|
}); };
|
|
@@ -265,7 +249,7 @@ export var deserializeAws_json1_1ListTunnelsCommand = function (output, context)
|
|
|
265
249
|
});
|
|
266
250
|
}); };
|
|
267
251
|
var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
268
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
252
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
269
253
|
var _b;
|
|
270
254
|
return __generator(this, function (_c) {
|
|
271
255
|
switch (_c.label) {
|
|
@@ -280,13 +264,14 @@ var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) {
|
|
|
280
264
|
switch (errorCode) {
|
|
281
265
|
default:
|
|
282
266
|
parsedBody = parsedOutput.body;
|
|
283
|
-
|
|
284
|
-
|
|
267
|
+
response = new __BaseException({
|
|
268
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
269
|
+
$fault: "client",
|
|
270
|
+
$metadata: deserializeMetadata(output),
|
|
271
|
+
});
|
|
272
|
+
throw __decorateServiceException(response, parsedBody);
|
|
285
273
|
}
|
|
286
|
-
|
|
287
|
-
response.message = message;
|
|
288
|
-
delete response.Message;
|
|
289
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
274
|
+
return [2];
|
|
290
275
|
}
|
|
291
276
|
});
|
|
292
277
|
}); };
|
|
@@ -309,16 +294,16 @@ export var deserializeAws_json1_1OpenTunnelCommand = function (output, context)
|
|
|
309
294
|
});
|
|
310
295
|
}); };
|
|
311
296
|
var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
312
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
313
|
-
var
|
|
314
|
-
return __generator(this, function (
|
|
315
|
-
switch (
|
|
297
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
298
|
+
var _c;
|
|
299
|
+
return __generator(this, function (_d) {
|
|
300
|
+
switch (_d.label) {
|
|
316
301
|
case 0:
|
|
317
302
|
_a = [__assign({}, output)];
|
|
318
|
-
|
|
303
|
+
_c = {};
|
|
319
304
|
return [4, parseBody(output.body, context)];
|
|
320
305
|
case 1:
|
|
321
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
306
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
322
307
|
errorCode = "UnknownError";
|
|
323
308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
309
|
_b = errorCode;
|
|
@@ -327,22 +312,16 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
|
|
|
327
312
|
case "com.amazonaws.iotsecuretunneling#LimitExceededException": return [3, 2];
|
|
328
313
|
}
|
|
329
314
|
return [3, 4];
|
|
330
|
-
case 2:
|
|
331
|
-
|
|
332
|
-
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
333
|
-
case 3:
|
|
334
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
335
|
-
return [3, 5];
|
|
315
|
+
case 2: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
316
|
+
case 3: throw _d.sent();
|
|
336
317
|
case 4:
|
|
337
318
|
parsedBody = parsedOutput.body;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
response
|
|
344
|
-
delete response.Message;
|
|
345
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
319
|
+
response = new __BaseException({
|
|
320
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
321
|
+
$fault: "client",
|
|
322
|
+
$metadata: deserializeMetadata(output),
|
|
323
|
+
});
|
|
324
|
+
throw __decorateServiceException(response, parsedBody);
|
|
346
325
|
}
|
|
347
326
|
});
|
|
348
327
|
}); };
|
|
@@ -365,16 +344,16 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
365
344
|
});
|
|
366
345
|
}); };
|
|
367
346
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
369
|
-
var
|
|
370
|
-
return __generator(this, function (
|
|
371
|
-
switch (
|
|
347
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
348
|
+
var _c;
|
|
349
|
+
return __generator(this, function (_d) {
|
|
350
|
+
switch (_d.label) {
|
|
372
351
|
case 0:
|
|
373
352
|
_a = [__assign({}, output)];
|
|
374
|
-
|
|
353
|
+
_c = {};
|
|
375
354
|
return [4, parseBody(output.body, context)];
|
|
376
355
|
case 1:
|
|
377
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
356
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
378
357
|
errorCode = "UnknownError";
|
|
379
358
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
359
|
_b = errorCode;
|
|
@@ -383,22 +362,16 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
383
362
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException": return [3, 2];
|
|
384
363
|
}
|
|
385
364
|
return [3, 4];
|
|
386
|
-
case 2:
|
|
387
|
-
|
|
388
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
389
|
-
case 3:
|
|
390
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
391
|
-
return [3, 5];
|
|
365
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
366
|
+
case 3: throw _d.sent();
|
|
392
367
|
case 4:
|
|
393
368
|
parsedBody = parsedOutput.body;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
response
|
|
400
|
-
delete response.Message;
|
|
401
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
369
|
+
response = new __BaseException({
|
|
370
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
371
|
+
$fault: "client",
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
373
|
+
});
|
|
374
|
+
throw __decorateServiceException(response, parsedBody);
|
|
402
375
|
}
|
|
403
376
|
});
|
|
404
377
|
}); };
|
|
@@ -421,16 +394,16 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
421
394
|
});
|
|
422
395
|
}); };
|
|
423
396
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
424
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
425
|
-
var
|
|
426
|
-
return __generator(this, function (
|
|
427
|
-
switch (
|
|
397
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
398
|
+
var _c;
|
|
399
|
+
return __generator(this, function (_d) {
|
|
400
|
+
switch (_d.label) {
|
|
428
401
|
case 0:
|
|
429
402
|
_a = [__assign({}, output)];
|
|
430
|
-
|
|
403
|
+
_c = {};
|
|
431
404
|
return [4, parseBody(output.body, context)];
|
|
432
405
|
case 1:
|
|
433
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
406
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
434
407
|
errorCode = "UnknownError";
|
|
435
408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
436
409
|
_b = errorCode;
|
|
@@ -439,41 +412,35 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
439
412
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException": return [3, 2];
|
|
440
413
|
}
|
|
441
414
|
return [3, 4];
|
|
442
|
-
case 2:
|
|
443
|
-
|
|
444
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
445
|
-
case 3:
|
|
446
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
447
|
-
return [3, 5];
|
|
415
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
416
|
+
case 3: throw _d.sent();
|
|
448
417
|
case 4:
|
|
449
418
|
parsedBody = parsedOutput.body;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
response
|
|
456
|
-
delete response.Message;
|
|
457
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
419
|
+
response = new __BaseException({
|
|
420
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
421
|
+
$fault: "client",
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
});
|
|
424
|
+
throw __decorateServiceException(response, parsedBody);
|
|
458
425
|
}
|
|
459
426
|
});
|
|
460
427
|
}); };
|
|
461
428
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
462
|
-
var body, deserialized,
|
|
429
|
+
var body, deserialized, exception;
|
|
463
430
|
return __generator(this, function (_a) {
|
|
464
431
|
body = parsedOutput.body;
|
|
465
432
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
466
|
-
|
|
467
|
-
return [2,
|
|
433
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
434
|
+
return [2, __decorateServiceException(exception, body)];
|
|
468
435
|
});
|
|
469
436
|
}); };
|
|
470
437
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
471
|
-
var body, deserialized,
|
|
438
|
+
var body, deserialized, exception;
|
|
472
439
|
return __generator(this, function (_a) {
|
|
473
440
|
body = parsedOutput.body;
|
|
474
441
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
475
|
-
|
|
476
|
-
return [2,
|
|
442
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
443
|
+
return [2, __decorateServiceException(exception, body)];
|
|
477
444
|
});
|
|
478
445
|
}); };
|
|
479
446
|
var serializeAws_json1_1CloseTunnelRequest = function (input, context) {
|
|
@@ -605,7 +572,7 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
605
572
|
};
|
|
606
573
|
};
|
|
607
574
|
var deserializeAws_json1_1ServiceList = function (output, context) {
|
|
608
|
-
|
|
575
|
+
var retVal = (output || [])
|
|
609
576
|
.filter(function (e) { return e != null; })
|
|
610
577
|
.map(function (entry) {
|
|
611
578
|
if (entry === null) {
|
|
@@ -613,6 +580,7 @@ var deserializeAws_json1_1ServiceList = function (output, context) {
|
|
|
613
580
|
}
|
|
614
581
|
return __expectString(entry);
|
|
615
582
|
});
|
|
583
|
+
return retVal;
|
|
616
584
|
};
|
|
617
585
|
var deserializeAws_json1_1Tag = function (output, context) {
|
|
618
586
|
return {
|
|
@@ -621,7 +589,7 @@ var deserializeAws_json1_1Tag = function (output, context) {
|
|
|
621
589
|
};
|
|
622
590
|
};
|
|
623
591
|
var deserializeAws_json1_1TagList = function (output, context) {
|
|
624
|
-
|
|
592
|
+
var retVal = (output || [])
|
|
625
593
|
.filter(function (e) { return e != null; })
|
|
626
594
|
.map(function (entry) {
|
|
627
595
|
if (entry === null) {
|
|
@@ -629,6 +597,7 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
629
597
|
}
|
|
630
598
|
return deserializeAws_json1_1Tag(entry, context);
|
|
631
599
|
});
|
|
600
|
+
return retVal;
|
|
632
601
|
};
|
|
633
602
|
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
634
603
|
return {};
|
|
@@ -682,7 +651,7 @@ var deserializeAws_json1_1TunnelSummary = function (output, context) {
|
|
|
682
651
|
};
|
|
683
652
|
};
|
|
684
653
|
var deserializeAws_json1_1TunnelSummaryList = function (output, context) {
|
|
685
|
-
|
|
654
|
+
var retVal = (output || [])
|
|
686
655
|
.filter(function (e) { return e != null; })
|
|
687
656
|
.map(function (entry) {
|
|
688
657
|
if (entry === null) {
|
|
@@ -690,6 +659,7 @@ var deserializeAws_json1_1TunnelSummaryList = function (output, context) {
|
|
|
690
659
|
}
|
|
691
660
|
return deserializeAws_json1_1TunnelSummary(entry, context);
|
|
692
661
|
});
|
|
662
|
+
return retVal;
|
|
693
663
|
};
|
|
694
664
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
695
665
|
return {};
|
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 IoTSecureTunneling service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class IoTSecureTunnelingServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
|
|
2
3
|
export interface CloseTunnelRequest {
|
|
3
4
|
/**
|
|
4
5
|
* <p>The ID of the tunnel to close.</p>
|
|
@@ -27,10 +28,13 @@ export declare namespace CloseTunnelResponse {
|
|
|
27
28
|
/**
|
|
28
29
|
* <p>Thrown when an operation is attempted on a resource that does not exist.</p>
|
|
29
30
|
*/
|
|
30
|
-
export
|
|
31
|
-
name: "ResourceNotFoundException";
|
|
32
|
-
$fault: "client";
|
|
33
|
-
|
|
31
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
32
|
+
readonly name: "ResourceNotFoundException";
|
|
33
|
+
readonly $fault: "client";
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
34
38
|
}
|
|
35
39
|
export declare enum ConnectionStatus {
|
|
36
40
|
CONNECTED = "CONNECTED",
|
|
@@ -302,10 +306,13 @@ export declare namespace ListTunnelsResponse {
|
|
|
302
306
|
/**
|
|
303
307
|
* <p>Thrown when a tunnel limit is exceeded.</p>
|
|
304
308
|
*/
|
|
305
|
-
export
|
|
306
|
-
name: "LimitExceededException";
|
|
307
|
-
$fault: "client";
|
|
308
|
-
|
|
309
|
+
export declare class LimitExceededException extends __BaseException {
|
|
310
|
+
readonly name: "LimitExceededException";
|
|
311
|
+
readonly $fault: "client";
|
|
312
|
+
/**
|
|
313
|
+
* @internal
|
|
314
|
+
*/
|
|
315
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
309
316
|
}
|
|
310
317
|
export interface OpenTunnelRequest {
|
|
311
318
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class IoTSecureTunnelingServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
|
|
2
3
|
export interface CloseTunnelRequest {
|
|
3
4
|
|
|
4
5
|
tunnelId: string | undefined;
|
|
@@ -16,10 +17,11 @@ export declare namespace CloseTunnelResponse {
|
|
|
16
17
|
const filterSensitiveLog: (obj: CloseTunnelResponse) => any;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
export
|
|
20
|
-
name: "ResourceNotFoundException";
|
|
21
|
-
$fault: "client";
|
|
22
|
-
|
|
20
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
21
|
+
readonly name: "ResourceNotFoundException";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
|
|
24
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
23
25
|
}
|
|
24
26
|
export declare enum ConnectionStatus {
|
|
25
27
|
CONNECTED = "CONNECTED",
|
|
@@ -174,10 +176,11 @@ export declare namespace ListTunnelsResponse {
|
|
|
174
176
|
const filterSensitiveLog: (obj: ListTunnelsResponse) => any;
|
|
175
177
|
}
|
|
176
178
|
|
|
177
|
-
export
|
|
178
|
-
name: "LimitExceededException";
|
|
179
|
-
$fault: "client";
|
|
180
|
-
|
|
179
|
+
export declare class LimitExceededException extends __BaseException {
|
|
180
|
+
readonly name: "LimitExceededException";
|
|
181
|
+
readonly $fault: "client";
|
|
182
|
+
|
|
183
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
181
184
|
}
|
|
182
185
|
export interface OpenTunnelRequest {
|
|
183
186
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotsecuretunneling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotsecuretunneling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.53.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,34 +18,34 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.53.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.53.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.53.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.53.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.53.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.53.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.53.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.53.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.53.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.53.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.53.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.53.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.53.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.53.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.53.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.53.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.53.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.53.0",
|
|
39
|
+
"@aws-sdk/types": "3.53.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.53.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.53.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.53.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.53.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.53.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|