@aws-sdk/client-iotsecuretunneling 3.721.0 → 3.723.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +61 -44
- package/dist-es/IoTSecureTunnelingClient.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +4 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/package.json +43 -43
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [
|
|
4
|
+
const x = "required", y = "fn", z = "argv", A = "ref", B = "properties", C = "headers";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [x]: false, "type": "String" }, i = { [x]: true, "default": false, "type": "Boolean" }, j = { [A]: "Endpoint" }, k = { [y]: c, [z]: [{ [A]: "UseFIPS" }, true] }, l = { [y]: c, [z]: [{ [A]: "UseDualStack" }, true] }, m = {}, n = { [y]: "getAttr", [z]: [{ [A]: g }, "supportsFIPS"] }, o = { [y]: c, [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsDualStack"] }] }, p = { "url": "https://api.iot-tunneling-fips.{Region}.api.aws", [B]: {}, [C]: {} }, q = { "url": "https://api.iot-tunneling.{Region}.api.aws", [B]: {}, [C]: {} }, r = [k], s = [l], t = [{ [A]: "Region" }], u = [{ [y]: "stringEquals", [z]: ["aws", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }], v = [{ [y]: "stringEquals", [z]: ["aws-cn", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }], w = [{ [y]: "stringEquals", [z]: ["aws-us-gov", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [y]: b, [z]: [j] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, [B]: m, [C]: m }, type: e }], type: f }, { conditions: [{ [y]: b, [z]: t }], rules: [{ conditions: [{ [y]: "aws.partition", [z]: t, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [y]: c, [z]: [a, n] }, o], rules: [{ conditions: u, endpoint: p, type: e }, { conditions: v, endpoint: { url: "https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn", [B]: m, [C]: m }, type: e }, { conditions: w, endpoint: p, type: e }, { endpoint: { url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [y]: c, [z]: [n, a] }], rules: [{ endpoint: { url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [o], rules: [{ conditions: u, endpoint: q, type: e }, { conditions: v, endpoint: { url: "https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn", [B]: m, [C]: m }, type: e }, { conditions: w, endpoint: q, type: e }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -140,7 +140,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
|
|
|
140
140
|
}, "resolveRuntimeExtensions");
|
|
141
141
|
|
|
142
142
|
// src/IoTSecureTunnelingClient.ts
|
|
143
|
-
var
|
|
143
|
+
var IoTSecureTunnelingClient = class extends import_smithy_client.Client {
|
|
144
|
+
static {
|
|
145
|
+
__name(this, "IoTSecureTunnelingClient");
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The resolved configuration of IoTSecureTunnelingClient class. This is resolved and normalized from the {@link IoTSecureTunnelingClientConfig | constructor configuration interface}.
|
|
149
|
+
*/
|
|
150
|
+
config;
|
|
144
151
|
constructor(...[configuration]) {
|
|
145
152
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
146
153
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -150,7 +157,7 @@ var _IoTSecureTunnelingClient = class _IoTSecureTunnelingClient extends import_s
|
|
|
150
157
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
151
158
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
152
159
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
153
|
-
const _config_8 = resolveRuntimeExtensions(_config_7,
|
|
160
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
154
161
|
super(_config_8);
|
|
155
162
|
this.config = _config_8;
|
|
156
163
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
@@ -178,8 +185,6 @@ var _IoTSecureTunnelingClient = class _IoTSecureTunnelingClient extends import_s
|
|
|
178
185
|
super.destroy();
|
|
179
186
|
}
|
|
180
187
|
};
|
|
181
|
-
__name(_IoTSecureTunnelingClient, "IoTSecureTunnelingClient");
|
|
182
|
-
var IoTSecureTunnelingClient = _IoTSecureTunnelingClient;
|
|
183
188
|
|
|
184
189
|
// src/IoTSecureTunneling.ts
|
|
185
190
|
|
|
@@ -196,7 +201,10 @@ var import_core2 = require("@aws-sdk/core");
|
|
|
196
201
|
|
|
197
202
|
// src/models/IoTSecureTunnelingServiceException.ts
|
|
198
203
|
|
|
199
|
-
var
|
|
204
|
+
var IoTSecureTunnelingServiceException = class _IoTSecureTunnelingServiceException extends import_smithy_client.ServiceException {
|
|
205
|
+
static {
|
|
206
|
+
__name(this, "IoTSecureTunnelingServiceException");
|
|
207
|
+
}
|
|
200
208
|
/**
|
|
201
209
|
* @internal
|
|
202
210
|
*/
|
|
@@ -205,8 +213,6 @@ var _IoTSecureTunnelingServiceException = class _IoTSecureTunnelingServiceExcept
|
|
|
205
213
|
Object.setPrototypeOf(this, _IoTSecureTunnelingServiceException.prototype);
|
|
206
214
|
}
|
|
207
215
|
};
|
|
208
|
-
__name(_IoTSecureTunnelingServiceException, "IoTSecureTunnelingServiceException");
|
|
209
|
-
var IoTSecureTunnelingServiceException = _IoTSecureTunnelingServiceException;
|
|
210
216
|
|
|
211
217
|
// src/models/models_0.ts
|
|
212
218
|
|
|
@@ -215,7 +221,12 @@ var ClientMode = {
|
|
|
215
221
|
DESTINATION: "DESTINATION",
|
|
216
222
|
SOURCE: "SOURCE"
|
|
217
223
|
};
|
|
218
|
-
var
|
|
224
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
225
|
+
static {
|
|
226
|
+
__name(this, "ResourceNotFoundException");
|
|
227
|
+
}
|
|
228
|
+
name = "ResourceNotFoundException";
|
|
229
|
+
$fault = "client";
|
|
219
230
|
/**
|
|
220
231
|
* @internal
|
|
221
232
|
*/
|
|
@@ -225,13 +236,9 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTSec
|
|
|
225
236
|
$fault: "client",
|
|
226
237
|
...opts
|
|
227
238
|
});
|
|
228
|
-
this.name = "ResourceNotFoundException";
|
|
229
|
-
this.$fault = "client";
|
|
230
239
|
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
231
240
|
}
|
|
232
241
|
};
|
|
233
|
-
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
234
|
-
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
235
242
|
var ConnectionStatus = {
|
|
236
243
|
CONNECTED: "CONNECTED",
|
|
237
244
|
DISCONNECTED: "DISCONNECTED"
|
|
@@ -240,7 +247,12 @@ var TunnelStatus = {
|
|
|
240
247
|
CLOSED: "CLOSED",
|
|
241
248
|
OPEN: "OPEN"
|
|
242
249
|
};
|
|
243
|
-
var
|
|
250
|
+
var LimitExceededException = class _LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
251
|
+
static {
|
|
252
|
+
__name(this, "LimitExceededException");
|
|
253
|
+
}
|
|
254
|
+
name = "LimitExceededException";
|
|
255
|
+
$fault = "client";
|
|
244
256
|
/**
|
|
245
257
|
* @internal
|
|
246
258
|
*/
|
|
@@ -250,13 +262,9 @@ var _LimitExceededException = class _LimitExceededException extends IoTSecureTun
|
|
|
250
262
|
$fault: "client",
|
|
251
263
|
...opts
|
|
252
264
|
});
|
|
253
|
-
this.name = "LimitExceededException";
|
|
254
|
-
this.$fault = "client";
|
|
255
265
|
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
256
266
|
}
|
|
257
267
|
};
|
|
258
|
-
__name(_LimitExceededException, "LimitExceededException");
|
|
259
|
-
var LimitExceededException = _LimitExceededException;
|
|
260
268
|
var OpenTunnelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
261
269
|
...obj,
|
|
262
270
|
...obj.sourceAccessToken && { sourceAccessToken: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -543,113 +551,121 @@ function sharedHeaders(operation) {
|
|
|
543
551
|
__name(sharedHeaders, "sharedHeaders");
|
|
544
552
|
|
|
545
553
|
// src/commands/CloseTunnelCommand.ts
|
|
546
|
-
var
|
|
554
|
+
var CloseTunnelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
547
555
|
return [
|
|
548
556
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
549
557
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
550
558
|
];
|
|
551
559
|
}).s("IoTSecuredTunneling", "CloseTunnel", {}).n("IoTSecureTunnelingClient", "CloseTunnelCommand").f(void 0, void 0).ser(se_CloseTunnelCommand).de(de_CloseTunnelCommand).build() {
|
|
560
|
+
static {
|
|
561
|
+
__name(this, "CloseTunnelCommand");
|
|
562
|
+
}
|
|
552
563
|
};
|
|
553
|
-
__name(_CloseTunnelCommand, "CloseTunnelCommand");
|
|
554
|
-
var CloseTunnelCommand = _CloseTunnelCommand;
|
|
555
564
|
|
|
556
565
|
// src/commands/DescribeTunnelCommand.ts
|
|
557
566
|
|
|
558
567
|
|
|
559
568
|
|
|
560
|
-
var
|
|
569
|
+
var DescribeTunnelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
561
570
|
return [
|
|
562
571
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
563
572
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
564
573
|
];
|
|
565
574
|
}).s("IoTSecuredTunneling", "DescribeTunnel", {}).n("IoTSecureTunnelingClient", "DescribeTunnelCommand").f(void 0, void 0).ser(se_DescribeTunnelCommand).de(de_DescribeTunnelCommand).build() {
|
|
575
|
+
static {
|
|
576
|
+
__name(this, "DescribeTunnelCommand");
|
|
577
|
+
}
|
|
566
578
|
};
|
|
567
|
-
__name(_DescribeTunnelCommand, "DescribeTunnelCommand");
|
|
568
|
-
var DescribeTunnelCommand = _DescribeTunnelCommand;
|
|
569
579
|
|
|
570
580
|
// src/commands/ListTagsForResourceCommand.ts
|
|
571
581
|
|
|
572
582
|
|
|
573
583
|
|
|
574
|
-
var
|
|
584
|
+
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
575
585
|
return [
|
|
576
586
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
577
587
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
578
588
|
];
|
|
579
589
|
}).s("IoTSecuredTunneling", "ListTagsForResource", {}).n("IoTSecureTunnelingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
590
|
+
static {
|
|
591
|
+
__name(this, "ListTagsForResourceCommand");
|
|
592
|
+
}
|
|
580
593
|
};
|
|
581
|
-
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
582
|
-
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
583
594
|
|
|
584
595
|
// src/commands/ListTunnelsCommand.ts
|
|
585
596
|
|
|
586
597
|
|
|
587
598
|
|
|
588
|
-
var
|
|
599
|
+
var ListTunnelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
589
600
|
return [
|
|
590
601
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
591
602
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
592
603
|
];
|
|
593
604
|
}).s("IoTSecuredTunneling", "ListTunnels", {}).n("IoTSecureTunnelingClient", "ListTunnelsCommand").f(void 0, void 0).ser(se_ListTunnelsCommand).de(de_ListTunnelsCommand).build() {
|
|
605
|
+
static {
|
|
606
|
+
__name(this, "ListTunnelsCommand");
|
|
607
|
+
}
|
|
594
608
|
};
|
|
595
|
-
__name(_ListTunnelsCommand, "ListTunnelsCommand");
|
|
596
|
-
var ListTunnelsCommand = _ListTunnelsCommand;
|
|
597
609
|
|
|
598
610
|
// src/commands/OpenTunnelCommand.ts
|
|
599
611
|
|
|
600
612
|
|
|
601
613
|
|
|
602
|
-
var
|
|
614
|
+
var OpenTunnelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
603
615
|
return [
|
|
604
616
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
605
617
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
606
618
|
];
|
|
607
619
|
}).s("IoTSecuredTunneling", "OpenTunnel", {}).n("IoTSecureTunnelingClient", "OpenTunnelCommand").f(void 0, OpenTunnelResponseFilterSensitiveLog).ser(se_OpenTunnelCommand).de(de_OpenTunnelCommand).build() {
|
|
620
|
+
static {
|
|
621
|
+
__name(this, "OpenTunnelCommand");
|
|
622
|
+
}
|
|
608
623
|
};
|
|
609
|
-
__name(_OpenTunnelCommand, "OpenTunnelCommand");
|
|
610
|
-
var OpenTunnelCommand = _OpenTunnelCommand;
|
|
611
624
|
|
|
612
625
|
// src/commands/RotateTunnelAccessTokenCommand.ts
|
|
613
626
|
|
|
614
627
|
|
|
615
628
|
|
|
616
|
-
var
|
|
629
|
+
var RotateTunnelAccessTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
617
630
|
return [
|
|
618
631
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
619
632
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
620
633
|
];
|
|
621
634
|
}).s("IoTSecuredTunneling", "RotateTunnelAccessToken", {}).n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand").f(void 0, RotateTunnelAccessTokenResponseFilterSensitiveLog).ser(se_RotateTunnelAccessTokenCommand).de(de_RotateTunnelAccessTokenCommand).build() {
|
|
635
|
+
static {
|
|
636
|
+
__name(this, "RotateTunnelAccessTokenCommand");
|
|
637
|
+
}
|
|
622
638
|
};
|
|
623
|
-
__name(_RotateTunnelAccessTokenCommand, "RotateTunnelAccessTokenCommand");
|
|
624
|
-
var RotateTunnelAccessTokenCommand = _RotateTunnelAccessTokenCommand;
|
|
625
639
|
|
|
626
640
|
// src/commands/TagResourceCommand.ts
|
|
627
641
|
|
|
628
642
|
|
|
629
643
|
|
|
630
|
-
var
|
|
644
|
+
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
631
645
|
return [
|
|
632
646
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
633
647
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
634
648
|
];
|
|
635
649
|
}).s("IoTSecuredTunneling", "TagResource", {}).n("IoTSecureTunnelingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
650
|
+
static {
|
|
651
|
+
__name(this, "TagResourceCommand");
|
|
652
|
+
}
|
|
636
653
|
};
|
|
637
|
-
__name(_TagResourceCommand, "TagResourceCommand");
|
|
638
|
-
var TagResourceCommand = _TagResourceCommand;
|
|
639
654
|
|
|
640
655
|
// src/commands/UntagResourceCommand.ts
|
|
641
656
|
|
|
642
657
|
|
|
643
658
|
|
|
644
|
-
var
|
|
659
|
+
var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
645
660
|
return [
|
|
646
661
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
647
662
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
648
663
|
];
|
|
649
664
|
}).s("IoTSecuredTunneling", "UntagResource", {}).n("IoTSecureTunnelingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
665
|
+
static {
|
|
666
|
+
__name(this, "UntagResourceCommand");
|
|
667
|
+
}
|
|
650
668
|
};
|
|
651
|
-
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
652
|
-
var UntagResourceCommand = _UntagResourceCommand;
|
|
653
669
|
|
|
654
670
|
// src/IoTSecureTunneling.ts
|
|
655
671
|
var commands = {
|
|
@@ -662,10 +678,11 @@ var commands = {
|
|
|
662
678
|
TagResourceCommand,
|
|
663
679
|
UntagResourceCommand
|
|
664
680
|
};
|
|
665
|
-
var
|
|
681
|
+
var IoTSecureTunneling = class extends IoTSecureTunnelingClient {
|
|
682
|
+
static {
|
|
683
|
+
__name(this, "IoTSecureTunneling");
|
|
684
|
+
}
|
|
666
685
|
};
|
|
667
|
-
__name(_IoTSecureTunneling, "IoTSecureTunneling");
|
|
668
|
-
var IoTSecureTunneling = _IoTSecureTunneling;
|
|
669
686
|
(0, import_smithy_client.createAggregatedClient)(commands, IoTSecureTunneling);
|
|
670
687
|
|
|
671
688
|
// src/pagination/ListTunnelsPaginator.ts
|
|
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class IoTSecureTunnelingClient extends __Client {
|
|
17
|
+
config;
|
|
17
18
|
constructor(...[configuration]) {
|
|
18
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
20
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [
|
|
1
|
+
const x = "required", y = "fn", z = "argv", A = "ref", B = "properties", C = "headers";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [x]: false, "type": "String" }, i = { [x]: true, "default": false, "type": "Boolean" }, j = { [A]: "Endpoint" }, k = { [y]: c, [z]: [{ [A]: "UseFIPS" }, true] }, l = { [y]: c, [z]: [{ [A]: "UseDualStack" }, true] }, m = {}, n = { [y]: "getAttr", [z]: [{ [A]: g }, "supportsFIPS"] }, o = { [y]: c, [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsDualStack"] }] }, p = { "url": "https://api.iot-tunneling-fips.{Region}.api.aws", [B]: {}, [C]: {} }, q = { "url": "https://api.iot-tunneling.{Region}.api.aws", [B]: {}, [C]: {} }, r = [k], s = [l], t = [{ [A]: "Region" }], u = [{ [y]: "stringEquals", [z]: ["aws", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }], v = [{ [y]: "stringEquals", [z]: ["aws-cn", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }], w = [{ [y]: "stringEquals", [z]: ["aws-us-gov", { [y]: "getAttr", [z]: [{ [A]: g }, "name"] }] }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [y]: b, [z]: [j] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, [B]: m, [C]: m }, type: e }], type: f }, { conditions: [{ [y]: b, [z]: t }], rules: [{ conditions: [{ [y]: "aws.partition", [z]: t, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [y]: c, [z]: [a, n] }, o], rules: [{ conditions: u, endpoint: p, type: e }, { conditions: v, endpoint: { url: "https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn", [B]: m, [C]: m }, type: e }, { conditions: w, endpoint: p, type: e }, { endpoint: { url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [y]: c, [z]: [n, a] }], rules: [{ endpoint: { url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [o], rules: [{ conditions: u, endpoint: q, type: e }, { conditions: v, endpoint: { url: "https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn", [B]: m, [C]: m }, type: e }, { conditions: w, endpoint: q, type: e }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", [B]: m, [C]: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -6,14 +6,14 @@ export const ClientMode = {
|
|
|
6
6
|
SOURCE: "SOURCE",
|
|
7
7
|
};
|
|
8
8
|
export class ResourceNotFoundException extends __BaseException {
|
|
9
|
+
name = "ResourceNotFoundException";
|
|
10
|
+
$fault = "client";
|
|
9
11
|
constructor(opts) {
|
|
10
12
|
super({
|
|
11
13
|
name: "ResourceNotFoundException",
|
|
12
14
|
$fault: "client",
|
|
13
15
|
...opts,
|
|
14
16
|
});
|
|
15
|
-
this.name = "ResourceNotFoundException";
|
|
16
|
-
this.$fault = "client";
|
|
17
17
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -26,14 +26,14 @@ export const TunnelStatus = {
|
|
|
26
26
|
OPEN: "OPEN",
|
|
27
27
|
};
|
|
28
28
|
export class LimitExceededException extends __BaseException {
|
|
29
|
+
name = "LimitExceededException";
|
|
30
|
+
$fault = "client";
|
|
29
31
|
constructor(opts) {
|
|
30
32
|
super({
|
|
31
33
|
name: "LimitExceededException",
|
|
32
34
|
$fault: "client",
|
|
33
35
|
...opts,
|
|
34
36
|
});
|
|
35
|
-
this.name = "LimitExceededException";
|
|
36
|
-
this.$fault = "client";
|
|
37
37
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<string>;
|
|
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
profile?: string | undefined;
|
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
25
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
26
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
31
31
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
32
32
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
33
33
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
34
|
-
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
34
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
35
35
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
36
36
|
logger?: import("@smithy/types").Logger | undefined;
|
|
37
37
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
|
|
|
8
8
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
9
|
>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider:
|
|
12
|
-
input: any
|
|
13
|
-
|
|
11
|
+
credentialDefaultProvider:
|
|
12
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
13
|
+
| ((
|
|
14
|
+
_: unknown
|
|
15
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
14
16
|
defaultUserAgentProvider: (
|
|
15
17
|
config?:
|
|
16
18
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
|
|
|
8
8
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
9
|
>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
credentialDefaultProvider:
|
|
12
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
13
|
+
| ((
|
|
14
|
+
init?:
|
|
15
|
+
| import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
16
|
+
| undefined
|
|
17
|
+
) => import("@smithy/types").MemoizedProvider<
|
|
18
|
+
import("@smithy/types").AwsCredentialIdentity
|
|
19
|
+
>);
|
|
18
20
|
defaultUserAgentProvider: (
|
|
19
21
|
config?:
|
|
20
22
|
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
|
|
|
30
30
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
31
31
|
| undefined
|
|
32
32
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
33
|
-
credentialDefaultProvider:
|
|
34
|
-
input: any
|
|
35
|
-
|
|
33
|
+
credentialDefaultProvider:
|
|
34
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
35
|
+
| ((
|
|
36
|
+
_: unknown
|
|
37
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
36
38
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
37
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
40
|
logger: import("@smithy/types").Logger;
|
|
@@ -52,11 +54,21 @@ export declare const getRuntimeConfig: (
|
|
|
52
54
|
| import("@smithy/types").RetryStrategyV2
|
|
53
55
|
| undefined;
|
|
54
56
|
endpoint?:
|
|
55
|
-
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
| ((
|
|
58
|
+
| string
|
|
59
|
+
| import("@smithy/types").Endpoint
|
|
60
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
61
|
+
| import("@smithy/types").EndpointV2
|
|
62
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
63
|
+
) &
|
|
64
|
+
(
|
|
65
|
+
| string
|
|
66
|
+
| import("@smithy/types").Provider<string>
|
|
67
|
+
| import("@smithy/types").Endpoint
|
|
68
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
69
|
+
| import("@smithy/types").EndpointV2
|
|
70
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
71
|
+
))
|
|
60
72
|
| undefined;
|
|
61
73
|
endpointProvider: (
|
|
62
74
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
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.723.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-iotsecuretunneling",
|
|
@@ -20,56 +20,56 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^
|
|
37
|
-
"@smithy/core": "^
|
|
38
|
-
"@smithy/fetch-http-handler": "^
|
|
39
|
-
"@smithy/hash-node": "^
|
|
40
|
-
"@smithy/invalid-dependency": "^
|
|
41
|
-
"@smithy/middleware-content-length": "^
|
|
42
|
-
"@smithy/middleware-endpoint": "^
|
|
43
|
-
"@smithy/middleware-retry": "^
|
|
44
|
-
"@smithy/middleware-serde": "^
|
|
45
|
-
"@smithy/middleware-stack": "^
|
|
46
|
-
"@smithy/node-config-provider": "^
|
|
47
|
-
"@smithy/node-http-handler": "^
|
|
48
|
-
"@smithy/protocol-http": "^
|
|
49
|
-
"@smithy/smithy-client": "^
|
|
50
|
-
"@smithy/types": "^
|
|
51
|
-
"@smithy/url-parser": "^
|
|
52
|
-
"@smithy/util-base64": "^
|
|
53
|
-
"@smithy/util-body-length-browser": "^
|
|
54
|
-
"@smithy/util-body-length-node": "^
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^
|
|
57
|
-
"@smithy/util-endpoints": "^
|
|
58
|
-
"@smithy/util-middleware": "^
|
|
59
|
-
"@smithy/util-retry": "^
|
|
60
|
-
"@smithy/util-utf8": "^
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.723.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.723.0",
|
|
25
|
+
"@aws-sdk/core": "3.723.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.723.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.723.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.723.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
32
|
+
"@aws-sdk/types": "3.723.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.723.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.723.0",
|
|
36
|
+
"@smithy/config-resolver": "^4.0.0",
|
|
37
|
+
"@smithy/core": "^3.0.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^5.0.0",
|
|
39
|
+
"@smithy/hash-node": "^4.0.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^4.0.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^4.0.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
43
|
+
"@smithy/middleware-retry": "^4.0.0",
|
|
44
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
45
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
46
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
47
|
+
"@smithy/node-http-handler": "^4.0.0",
|
|
48
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
49
|
+
"@smithy/smithy-client": "^4.0.0",
|
|
50
|
+
"@smithy/types": "^4.0.0",
|
|
51
|
+
"@smithy/url-parser": "^4.0.0",
|
|
52
|
+
"@smithy/util-base64": "^4.0.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^4.0.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^4.0.0",
|
|
57
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
58
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
59
|
+
"@smithy/util-retry": "^4.0.0",
|
|
60
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@tsconfig/
|
|
65
|
-
"@types/node": "^
|
|
64
|
+
"@tsconfig/node18": "18.2.4",
|
|
65
|
+
"@types/node": "^18.19.69",
|
|
66
66
|
"concurrently": "7.0.0",
|
|
67
67
|
"downlevel-dts": "0.10.1",
|
|
68
68
|
"rimraf": "3.0.2",
|
|
69
|
-
"typescript": "~
|
|
69
|
+
"typescript": "~5.2.2"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
72
|
+
"node": ">=18.0.0"
|
|
73
73
|
},
|
|
74
74
|
"typesVersions": {
|
|
75
75
|
"<4.0": {
|