@aws-sdk/client-iotsecuretunneling 3.1075.0 → 3.1076.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +493 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -59
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/IoTSecureTunnelingServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -25
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -261
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "IoTSecuredTunneling",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultIoTSecureTunnelingHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,411 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const m = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [h]],
|
|
79
|
+
[c, l],
|
|
80
|
+
["aws.partition", l, d],
|
|
81
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
85
|
+
[g, [j, "aws"]],
|
|
86
|
+
[g, [j, "aws-cn"]],
|
|
87
|
+
[g, [j, "aws-us-gov"]]
|
|
88
|
+
],
|
|
89
|
+
results: [
|
|
90
|
+
[a],
|
|
91
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
92
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
93
|
+
[h, k],
|
|
94
|
+
["https://api.iot-tunneling-fips.{Region}.api.aws", k],
|
|
95
|
+
["https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn", k],
|
|
96
|
+
["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
97
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
98
|
+
["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
99
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
100
|
+
["https://api.iot-tunneling.{Region}.api.aws", k],
|
|
101
|
+
["https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn", k],
|
|
102
|
+
["https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
103
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
104
|
+
["https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
105
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
106
|
+
]
|
|
107
|
+
};
|
|
108
|
+
const root = 2;
|
|
109
|
+
const r = 100_000_000;
|
|
110
|
+
const nodes = new Int32Array([
|
|
111
|
+
-1, 1, -1,
|
|
112
|
+
0, 18, 3,
|
|
113
|
+
1, 4, r + 15,
|
|
114
|
+
2, 5, r + 15,
|
|
115
|
+
3, 11, 6,
|
|
116
|
+
4, 7, r + 14,
|
|
117
|
+
5, 8, r + 13,
|
|
118
|
+
7, r + 10, 9,
|
|
119
|
+
8, r + 11, 10,
|
|
120
|
+
9, r + 10, r + 12,
|
|
121
|
+
4, 13, 12,
|
|
122
|
+
6, r + 8, r + 9,
|
|
123
|
+
5, 14, r + 7,
|
|
124
|
+
6, 15, r + 7,
|
|
125
|
+
7, r + 4, 16,
|
|
126
|
+
8, r + 5, 17,
|
|
127
|
+
9, r + 4, r + 6,
|
|
128
|
+
3, r + 1, 19,
|
|
129
|
+
4, r + 2, r + 3,
|
|
130
|
+
]);
|
|
131
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
132
|
+
|
|
133
|
+
const cache = new EndpointCache({
|
|
134
|
+
size: 50,
|
|
135
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
136
|
+
});
|
|
137
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
138
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
139
|
+
endpointParams: endpointParams,
|
|
140
|
+
logger: context.logger,
|
|
141
|
+
}));
|
|
142
|
+
};
|
|
143
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
144
|
+
|
|
145
|
+
class IoTSecureTunnelingServiceException extends ServiceException {
|
|
146
|
+
constructor(options) {
|
|
147
|
+
super(options);
|
|
148
|
+
Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
class ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
153
|
+
name = "ResourceNotFoundException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ResourceNotFoundException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
165
|
+
name = "LimitExceededException";
|
|
166
|
+
$fault = "client";
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "LimitExceededException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const _CAT = "ClientAccessToken";
|
|
178
|
+
const _CS = "ConnectionState";
|
|
179
|
+
const _CT = "CloseTunnel";
|
|
180
|
+
const _CTR = "CloseTunnelRequest";
|
|
181
|
+
const _CTRl = "CloseTunnelResponse";
|
|
182
|
+
const _DC = "DestinationConfig";
|
|
183
|
+
const _DT = "DescribeTunnel";
|
|
184
|
+
const _DTR = "DescribeTunnelRequest";
|
|
185
|
+
const _DTRe = "DescribeTunnelResponse";
|
|
186
|
+
const _LEE = "LimitExceededException";
|
|
187
|
+
const _LT = "ListTunnels";
|
|
188
|
+
const _LTFR = "ListTagsForResource";
|
|
189
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
190
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
191
|
+
const _LTR = "ListTunnelsRequest";
|
|
192
|
+
const _LTRi = "ListTunnelsResponse";
|
|
193
|
+
const _OT = "OpenTunnel";
|
|
194
|
+
const _OTR = "OpenTunnelRequest";
|
|
195
|
+
const _OTRp = "OpenTunnelResponse";
|
|
196
|
+
const _RNFE = "ResourceNotFoundException";
|
|
197
|
+
const _RTAT = "RotateTunnelAccessToken";
|
|
198
|
+
const _RTATR = "RotateTunnelAccessTokenRequest";
|
|
199
|
+
const _RTATRo = "RotateTunnelAccessTokenResponse";
|
|
200
|
+
const _T = "Tag";
|
|
201
|
+
const _TC = "TimeoutConfig";
|
|
202
|
+
const _TL = "TagList";
|
|
203
|
+
const _TR = "TagResource";
|
|
204
|
+
const _TRR = "TagResourceRequest";
|
|
205
|
+
const _TRRa = "TagResourceResponse";
|
|
206
|
+
const _TS = "TunnelSummary";
|
|
207
|
+
const _TSL = "TunnelSummaryList";
|
|
208
|
+
const _Tu = "Tunnel";
|
|
209
|
+
const _UR = "UntagResource";
|
|
210
|
+
const _URR = "UntagResourceRequest";
|
|
211
|
+
const _URRn = "UntagResourceResponse";
|
|
212
|
+
const _aQE = "awsQueryError";
|
|
213
|
+
const _c = "client";
|
|
214
|
+
const _cA = "createdAt";
|
|
215
|
+
const _cM = "clientMode";
|
|
216
|
+
const _d = "delete";
|
|
217
|
+
const _dAT = "destinationAccessToken";
|
|
218
|
+
const _dC = "destinationConfig";
|
|
219
|
+
const _dCS = "destinationConnectionState";
|
|
220
|
+
const _de = "description";
|
|
221
|
+
const _e = "error";
|
|
222
|
+
const _h = "http";
|
|
223
|
+
const _hE = "httpError";
|
|
224
|
+
const _hQ = "httpQuery";
|
|
225
|
+
const _k = "key";
|
|
226
|
+
const _lUA = "lastUpdatedAt";
|
|
227
|
+
const _m = "message";
|
|
228
|
+
const _mLTM = "maxLifetimeTimeoutMinutes";
|
|
229
|
+
const _mR = "maxResults";
|
|
230
|
+
const _nT = "nextToken";
|
|
231
|
+
const _rA = "resourceArn";
|
|
232
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotsecuretunneling";
|
|
233
|
+
const _sAT = "sourceAccessToken";
|
|
234
|
+
const _sCS = "sourceConnectionState";
|
|
235
|
+
const _se = "services";
|
|
236
|
+
const _st = "status";
|
|
237
|
+
const _t = "tunnel";
|
|
238
|
+
const _tA = "tunnelArn";
|
|
239
|
+
const _tC = "timeoutConfig";
|
|
240
|
+
const _tI = "tunnelId";
|
|
241
|
+
const _tK = "tagKeys";
|
|
242
|
+
const _tN = "thingName";
|
|
243
|
+
const _tS = "tunnelSummaries";
|
|
244
|
+
const _ta = "tags";
|
|
245
|
+
const _v = "value";
|
|
246
|
+
const n0 = "com.amazonaws.iotsecuretunneling";
|
|
247
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
248
|
+
var IoTSecureTunnelingServiceException$ = [-3, _s, "IoTSecureTunnelingServiceException", 0, [], []];
|
|
249
|
+
_s_registry.registerError(IoTSecureTunnelingServiceException$, IoTSecureTunnelingServiceException);
|
|
250
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
251
|
+
var LimitExceededException$ = [-3, n0, _LEE,
|
|
252
|
+
{ [_aQE]: [`LimitExceededException`, 403], [_e]: _c, [_hE]: 403 },
|
|
253
|
+
[_m],
|
|
254
|
+
[0]
|
|
255
|
+
];
|
|
256
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
257
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
258
|
+
{ [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
|
|
259
|
+
[_m],
|
|
260
|
+
[0]
|
|
261
|
+
];
|
|
262
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
263
|
+
const errorTypeRegistries = [
|
|
264
|
+
_s_registry,
|
|
265
|
+
n0_registry,
|
|
266
|
+
];
|
|
267
|
+
var ClientAccessToken = [0, n0, _CAT, 8, 0];
|
|
268
|
+
var CloseTunnelRequest$ = [3, n0, _CTR,
|
|
269
|
+
0,
|
|
270
|
+
[_tI, _d],
|
|
271
|
+
[[0, 1], [2, { [_hQ]: _d }]], 1
|
|
272
|
+
];
|
|
273
|
+
var CloseTunnelResponse$ = [3, n0, _CTRl,
|
|
274
|
+
0,
|
|
275
|
+
[],
|
|
276
|
+
[]
|
|
277
|
+
];
|
|
278
|
+
var ConnectionState$ = [3, n0, _CS,
|
|
279
|
+
0,
|
|
280
|
+
[_st, _lUA],
|
|
281
|
+
[0, 4]
|
|
282
|
+
];
|
|
283
|
+
var DescribeTunnelRequest$ = [3, n0, _DTR,
|
|
284
|
+
0,
|
|
285
|
+
[_tI],
|
|
286
|
+
[[0, 1]], 1
|
|
287
|
+
];
|
|
288
|
+
var DescribeTunnelResponse$ = [3, n0, _DTRe,
|
|
289
|
+
0,
|
|
290
|
+
[_t],
|
|
291
|
+
[() => Tunnel$]
|
|
292
|
+
];
|
|
293
|
+
var DestinationConfig$ = [3, n0, _DC,
|
|
294
|
+
0,
|
|
295
|
+
[_se, _tN],
|
|
296
|
+
[64 | 0, 0], 1
|
|
297
|
+
];
|
|
298
|
+
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
299
|
+
0,
|
|
300
|
+
[_rA],
|
|
301
|
+
[[0, { [_hQ]: _rA }]], 1
|
|
302
|
+
];
|
|
303
|
+
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
304
|
+
0,
|
|
305
|
+
[_ta],
|
|
306
|
+
[() => TagList]
|
|
307
|
+
];
|
|
308
|
+
var ListTunnelsRequest$ = [3, n0, _LTR,
|
|
309
|
+
0,
|
|
310
|
+
[_tN, _mR, _nT],
|
|
311
|
+
[[0, { [_hQ]: _tN }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
|
|
312
|
+
];
|
|
313
|
+
var ListTunnelsResponse$ = [3, n0, _LTRi,
|
|
314
|
+
0,
|
|
315
|
+
[_tS, _nT],
|
|
316
|
+
[() => TunnelSummaryList, 0]
|
|
317
|
+
];
|
|
318
|
+
var OpenTunnelRequest$ = [3, n0, _OTR,
|
|
319
|
+
0,
|
|
320
|
+
[_de, _ta, _dC, _tC],
|
|
321
|
+
[0, () => TagList, () => DestinationConfig$, () => TimeoutConfig$]
|
|
322
|
+
];
|
|
323
|
+
var OpenTunnelResponse$ = [3, n0, _OTRp,
|
|
324
|
+
0,
|
|
325
|
+
[_tI, _tA, _sAT, _dAT],
|
|
326
|
+
[0, 0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
|
|
327
|
+
];
|
|
328
|
+
var RotateTunnelAccessTokenRequest$ = [3, n0, _RTATR,
|
|
329
|
+
0,
|
|
330
|
+
[_tI, _cM, _dC],
|
|
331
|
+
[[0, 1], 0, () => DestinationConfig$], 2
|
|
332
|
+
];
|
|
333
|
+
var RotateTunnelAccessTokenResponse$ = [3, n0, _RTATRo,
|
|
334
|
+
0,
|
|
335
|
+
[_tA, _sAT, _dAT],
|
|
336
|
+
[0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
|
|
337
|
+
];
|
|
338
|
+
var Tag$ = [3, n0, _T,
|
|
339
|
+
0,
|
|
340
|
+
[_k, _v],
|
|
341
|
+
[0, 0], 2
|
|
342
|
+
];
|
|
343
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
344
|
+
0,
|
|
345
|
+
[_rA, _ta],
|
|
346
|
+
[0, () => TagList], 2
|
|
347
|
+
];
|
|
348
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
349
|
+
0,
|
|
350
|
+
[],
|
|
351
|
+
[]
|
|
352
|
+
];
|
|
353
|
+
var TimeoutConfig$ = [3, n0, _TC,
|
|
354
|
+
0,
|
|
355
|
+
[_mLTM],
|
|
356
|
+
[1]
|
|
357
|
+
];
|
|
358
|
+
var Tunnel$ = [3, n0, _Tu,
|
|
359
|
+
0,
|
|
360
|
+
[_tI, _tA, _st, _sCS, _dCS, _de, _dC, _tC, _ta, _cA, _lUA],
|
|
361
|
+
[0, 0, 0, () => ConnectionState$, () => ConnectionState$, 0, () => DestinationConfig$, () => TimeoutConfig$, () => TagList, 4, 4]
|
|
362
|
+
];
|
|
363
|
+
var TunnelSummary$ = [3, n0, _TS,
|
|
364
|
+
0,
|
|
365
|
+
[_tI, _tA, _st, _de, _cA, _lUA],
|
|
366
|
+
[0, 0, 0, 0, 4, 4]
|
|
367
|
+
];
|
|
368
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
369
|
+
0,
|
|
370
|
+
[_rA, _tK],
|
|
371
|
+
[0, 64 | 0], 2
|
|
372
|
+
];
|
|
373
|
+
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
374
|
+
0,
|
|
375
|
+
[],
|
|
376
|
+
[]
|
|
377
|
+
];
|
|
378
|
+
var TagList = [1, n0, _TL,
|
|
379
|
+
0, () => Tag$
|
|
380
|
+
];
|
|
381
|
+
var TunnelSummaryList = [1, n0, _TSL,
|
|
382
|
+
0, () => TunnelSummary$
|
|
383
|
+
];
|
|
384
|
+
var CloseTunnel$ = [9, n0, _CT,
|
|
385
|
+
{ [_h]: ["DELETE", "/tunnels/{tunnelId}", 200] }, () => CloseTunnelRequest$, () => CloseTunnelResponse$
|
|
386
|
+
];
|
|
387
|
+
var DescribeTunnel$ = [9, n0, _DT,
|
|
388
|
+
{ [_h]: ["GET", "/tunnels/{tunnelId}", 200] }, () => DescribeTunnelRequest$, () => DescribeTunnelResponse$
|
|
389
|
+
];
|
|
390
|
+
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
391
|
+
{ [_h]: ["GET", "/tags", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
392
|
+
];
|
|
393
|
+
var ListTunnels$ = [9, n0, _LT,
|
|
394
|
+
{ [_h]: ["GET", "/tunnels", 200] }, () => ListTunnelsRequest$, () => ListTunnelsResponse$
|
|
395
|
+
];
|
|
396
|
+
var OpenTunnel$ = [9, n0, _OT,
|
|
397
|
+
{ [_h]: ["POST", "/tunnels", 200] }, () => OpenTunnelRequest$, () => OpenTunnelResponse$
|
|
398
|
+
];
|
|
399
|
+
var RotateTunnelAccessToken$ = [9, n0, _RTAT,
|
|
400
|
+
{ [_h]: ["POST", "/tunnel/{tunnelId}/rotate", 200] }, () => RotateTunnelAccessTokenRequest$, () => RotateTunnelAccessTokenResponse$
|
|
401
|
+
];
|
|
402
|
+
var TagResource$ = [9, n0, _TR,
|
|
403
|
+
{ [_h]: ["POST", "/tags", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
404
|
+
];
|
|
405
|
+
var UntagResource$ = [9, n0, _UR,
|
|
406
|
+
{ [_h]: ["POST", "/untag", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
407
|
+
];
|
|
408
|
+
|
|
409
|
+
const getRuntimeConfig$1 = (config) => {
|
|
410
|
+
return {
|
|
411
|
+
apiVersion: "2018-10-05",
|
|
412
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
413
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
414
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
415
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
416
|
+
extensions: config?.extensions ?? [],
|
|
417
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIoTSecureTunnelingHttpAuthSchemeProvider,
|
|
418
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
419
|
+
{
|
|
420
|
+
schemeId: "aws.auth#sigv4",
|
|
421
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
422
|
+
signer: new AwsSdkSigV4Signer(),
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
426
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
427
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
428
|
+
defaultNamespace: "com.amazonaws.iotsecuretunneling",
|
|
429
|
+
errorTypeRegistries,
|
|
430
|
+
version: "2018-10-05",
|
|
431
|
+
serviceTarget: "IoTSecuredTunneling",
|
|
432
|
+
},
|
|
433
|
+
serviceId: config?.serviceId ?? "IoTSecureTunneling",
|
|
434
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
435
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
436
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
const getRuntimeConfig = (config) => {
|
|
441
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
442
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
443
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
444
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
445
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
446
|
+
const loaderConfig = {
|
|
447
|
+
profile: config?.profile,
|
|
448
|
+
logger: clientSharedValues.logger,
|
|
449
|
+
};
|
|
450
|
+
return {
|
|
451
|
+
...clientSharedValues,
|
|
452
|
+
...config,
|
|
453
|
+
runtime: "node",
|
|
454
|
+
defaultsMode,
|
|
455
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
456
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
457
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
458
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
459
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
460
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
461
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
462
|
+
retryMode: config?.retryMode ??
|
|
463
|
+
loadConfig({
|
|
464
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
465
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
466
|
+
}, config),
|
|
467
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
468
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
469
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
470
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
471
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
|
|
34
475
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
476
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
477
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -241,16 +682,53 @@ const TunnelStatus = {
|
|
|
241
682
|
};
|
|
242
683
|
|
|
243
684
|
exports.ClientMode = ClientMode;
|
|
685
|
+
exports.CloseTunnel$ = CloseTunnel$;
|
|
244
686
|
exports.CloseTunnelCommand = CloseTunnelCommand;
|
|
687
|
+
exports.CloseTunnelRequest$ = CloseTunnelRequest$;
|
|
688
|
+
exports.CloseTunnelResponse$ = CloseTunnelResponse$;
|
|
689
|
+
exports.ConnectionState$ = ConnectionState$;
|
|
245
690
|
exports.ConnectionStatus = ConnectionStatus;
|
|
691
|
+
exports.DescribeTunnel$ = DescribeTunnel$;
|
|
246
692
|
exports.DescribeTunnelCommand = DescribeTunnelCommand;
|
|
693
|
+
exports.DescribeTunnelRequest$ = DescribeTunnelRequest$;
|
|
694
|
+
exports.DescribeTunnelResponse$ = DescribeTunnelResponse$;
|
|
695
|
+
exports.DestinationConfig$ = DestinationConfig$;
|
|
247
696
|
exports.IoTSecureTunneling = IoTSecureTunneling;
|
|
248
697
|
exports.IoTSecureTunnelingClient = IoTSecureTunnelingClient;
|
|
698
|
+
exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
|
|
699
|
+
exports.IoTSecureTunnelingServiceException$ = IoTSecureTunnelingServiceException$;
|
|
700
|
+
exports.LimitExceededException = LimitExceededException;
|
|
701
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
702
|
+
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
249
703
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
704
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
705
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
706
|
+
exports.ListTunnels$ = ListTunnels$;
|
|
250
707
|
exports.ListTunnelsCommand = ListTunnelsCommand;
|
|
708
|
+
exports.ListTunnelsRequest$ = ListTunnelsRequest$;
|
|
709
|
+
exports.ListTunnelsResponse$ = ListTunnelsResponse$;
|
|
710
|
+
exports.OpenTunnel$ = OpenTunnel$;
|
|
251
711
|
exports.OpenTunnelCommand = OpenTunnelCommand;
|
|
712
|
+
exports.OpenTunnelRequest$ = OpenTunnelRequest$;
|
|
713
|
+
exports.OpenTunnelResponse$ = OpenTunnelResponse$;
|
|
714
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
715
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
716
|
+
exports.RotateTunnelAccessToken$ = RotateTunnelAccessToken$;
|
|
252
717
|
exports.RotateTunnelAccessTokenCommand = RotateTunnelAccessTokenCommand;
|
|
718
|
+
exports.RotateTunnelAccessTokenRequest$ = RotateTunnelAccessTokenRequest$;
|
|
719
|
+
exports.RotateTunnelAccessTokenResponse$ = RotateTunnelAccessTokenResponse$;
|
|
720
|
+
exports.Tag$ = Tag$;
|
|
721
|
+
exports.TagResource$ = TagResource$;
|
|
253
722
|
exports.TagResourceCommand = TagResourceCommand;
|
|
723
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
724
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
725
|
+
exports.TimeoutConfig$ = TimeoutConfig$;
|
|
726
|
+
exports.Tunnel$ = Tunnel$;
|
|
254
727
|
exports.TunnelStatus = TunnelStatus;
|
|
728
|
+
exports.TunnelSummary$ = TunnelSummary$;
|
|
729
|
+
exports.UntagResource$ = UntagResource$;
|
|
255
730
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
731
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
732
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
733
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
256
734
|
exports.paginateListTunnels = paginateListTunnels;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (
|
|
|
23
23
|
| RequestHandler;
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
25
|
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
-
streamCollector:
|
|
26
|
+
streamCollector: (
|
|
27
|
+
stream:
|
|
28
|
+
| import("stream").Readable
|
|
29
|
+
| import("stream/web").ReadableStream
|
|
30
|
+
| ReadableStream
|
|
31
|
+
| Blob
|
|
32
|
+
) => Promise<Uint8Array>;
|
|
27
33
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
34
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
35
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -24,7 +24,13 @@ export declare const getRuntimeConfig: (
|
|
|
24
24
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
25
25
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
sha256: import("@smithy/types").HashConstructor;
|
|
27
|
-
streamCollector:
|
|
27
|
+
streamCollector: (
|
|
28
|
+
stream:
|
|
29
|
+
| import("stream").Readable
|
|
30
|
+
| import("stream/web").ReadableStream
|
|
31
|
+
| ReadableStream
|
|
32
|
+
| Blob
|
|
33
|
+
) => Promise<Uint8Array>;
|
|
28
34
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
35
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
30
36
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (
|
|
|
22
22
|
apiVersion: string;
|
|
23
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
24
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
base64Decoder: import("@smithy/types").Decoder;
|
|
27
33
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
28
34
|
utf8Decoder: import("@smithy/types").Decoder;
|
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.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "IoTSecuredTunneling",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultIoTSecureTunnelingHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
13
|
-
[g, [j, "aws"]],
|
|
14
|
-
[g, [j, "aws-cn"]],
|
|
15
|
-
[g, [j, "aws-us-gov"]]
|
|
16
|
-
],
|
|
17
|
-
results: [
|
|
18
|
-
[a],
|
|
19
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
20
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
21
|
-
[h, k],
|
|
22
|
-
["https://api.iot-tunneling-fips.{Region}.api.aws", k],
|
|
23
|
-
["https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn", k],
|
|
24
|
-
["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
25
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
26
|
-
["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
27
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
28
|
-
["https://api.iot-tunneling.{Region}.api.aws", k],
|
|
29
|
-
["https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn", k],
|
|
30
|
-
["https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
31
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
32
|
-
["https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
33
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
const root = 2;
|
|
37
|
-
const r = 100_000_000;
|
|
38
|
-
const nodes = new Int32Array([
|
|
39
|
-
-1, 1, -1,
|
|
40
|
-
0, 18, 3,
|
|
41
|
-
1, 4, r + 15,
|
|
42
|
-
2, 5, r + 15,
|
|
43
|
-
3, 11, 6,
|
|
44
|
-
4, 7, r + 14,
|
|
45
|
-
5, 8, r + 13,
|
|
46
|
-
7, r + 10, 9,
|
|
47
|
-
8, r + 11, 10,
|
|
48
|
-
9, r + 10, r + 12,
|
|
49
|
-
4, 13, 12,
|
|
50
|
-
6, r + 8, r + 9,
|
|
51
|
-
5, 14, r + 7,
|
|
52
|
-
6, 15, r + 7,
|
|
53
|
-
7, r + 4, 16,
|
|
54
|
-
8, r + 5, 17,
|
|
55
|
-
9, r + 4, r + 6,
|
|
56
|
-
3, r + 1, 19,
|
|
57
|
-
4, r + 2, r + 3,
|
|
58
|
-
]);
|
|
59
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.IoTSecureTunnelingServiceException = class IoTSecureTunnelingServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const { IoTSecureTunnelingServiceException: __BaseException } = require("./IoTSecureTunnelingServiceException");
|
|
2
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
3
|
-
name = "ResourceNotFoundException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ResourceNotFoundException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
15
|
-
name = "LimitExceededException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "LimitExceededException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultIoTSecureTunnelingHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2018-10-05",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIoTSecureTunnelingHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.iotsecuretunneling",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2018-10-05",
|
|
31
|
-
serviceTarget: "IoTSecuredTunneling",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "IoTSecureTunneling",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
const _CAT = "ClientAccessToken";
|
|
2
|
-
const _CS = "ConnectionState";
|
|
3
|
-
const _CT = "CloseTunnel";
|
|
4
|
-
const _CTR = "CloseTunnelRequest";
|
|
5
|
-
const _CTRl = "CloseTunnelResponse";
|
|
6
|
-
const _DC = "DestinationConfig";
|
|
7
|
-
const _DT = "DescribeTunnel";
|
|
8
|
-
const _DTR = "DescribeTunnelRequest";
|
|
9
|
-
const _DTRe = "DescribeTunnelResponse";
|
|
10
|
-
const _LEE = "LimitExceededException";
|
|
11
|
-
const _LT = "ListTunnels";
|
|
12
|
-
const _LTFR = "ListTagsForResource";
|
|
13
|
-
const _LTFRR = "ListTagsForResourceRequest";
|
|
14
|
-
const _LTFRRi = "ListTagsForResourceResponse";
|
|
15
|
-
const _LTR = "ListTunnelsRequest";
|
|
16
|
-
const _LTRi = "ListTunnelsResponse";
|
|
17
|
-
const _OT = "OpenTunnel";
|
|
18
|
-
const _OTR = "OpenTunnelRequest";
|
|
19
|
-
const _OTRp = "OpenTunnelResponse";
|
|
20
|
-
const _RNFE = "ResourceNotFoundException";
|
|
21
|
-
const _RTAT = "RotateTunnelAccessToken";
|
|
22
|
-
const _RTATR = "RotateTunnelAccessTokenRequest";
|
|
23
|
-
const _RTATRo = "RotateTunnelAccessTokenResponse";
|
|
24
|
-
const _T = "Tag";
|
|
25
|
-
const _TC = "TimeoutConfig";
|
|
26
|
-
const _TL = "TagList";
|
|
27
|
-
const _TR = "TagResource";
|
|
28
|
-
const _TRR = "TagResourceRequest";
|
|
29
|
-
const _TRRa = "TagResourceResponse";
|
|
30
|
-
const _TS = "TunnelSummary";
|
|
31
|
-
const _TSL = "TunnelSummaryList";
|
|
32
|
-
const _Tu = "Tunnel";
|
|
33
|
-
const _UR = "UntagResource";
|
|
34
|
-
const _URR = "UntagResourceRequest";
|
|
35
|
-
const _URRn = "UntagResourceResponse";
|
|
36
|
-
const _aQE = "awsQueryError";
|
|
37
|
-
const _c = "client";
|
|
38
|
-
const _cA = "createdAt";
|
|
39
|
-
const _cM = "clientMode";
|
|
40
|
-
const _d = "delete";
|
|
41
|
-
const _dAT = "destinationAccessToken";
|
|
42
|
-
const _dC = "destinationConfig";
|
|
43
|
-
const _dCS = "destinationConnectionState";
|
|
44
|
-
const _de = "description";
|
|
45
|
-
const _e = "error";
|
|
46
|
-
const _h = "http";
|
|
47
|
-
const _hE = "httpError";
|
|
48
|
-
const _hQ = "httpQuery";
|
|
49
|
-
const _k = "key";
|
|
50
|
-
const _lUA = "lastUpdatedAt";
|
|
51
|
-
const _m = "message";
|
|
52
|
-
const _mLTM = "maxLifetimeTimeoutMinutes";
|
|
53
|
-
const _mR = "maxResults";
|
|
54
|
-
const _nT = "nextToken";
|
|
55
|
-
const _rA = "resourceArn";
|
|
56
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotsecuretunneling";
|
|
57
|
-
const _sAT = "sourceAccessToken";
|
|
58
|
-
const _sCS = "sourceConnectionState";
|
|
59
|
-
const _se = "services";
|
|
60
|
-
const _st = "status";
|
|
61
|
-
const _t = "tunnel";
|
|
62
|
-
const _tA = "tunnelArn";
|
|
63
|
-
const _tC = "timeoutConfig";
|
|
64
|
-
const _tI = "tunnelId";
|
|
65
|
-
const _tK = "tagKeys";
|
|
66
|
-
const _tN = "thingName";
|
|
67
|
-
const _tS = "tunnelSummaries";
|
|
68
|
-
const _ta = "tags";
|
|
69
|
-
const _v = "value";
|
|
70
|
-
const n0 = "com.amazonaws.iotsecuretunneling";
|
|
71
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
72
|
-
const { LimitExceededException, ResourceNotFoundException } = require("../models/errors");
|
|
73
|
-
const { IoTSecureTunnelingServiceException } = require("../models/IoTSecureTunnelingServiceException");
|
|
74
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
75
|
-
const IoTSecureTunnelingServiceException$ = [-3, _s, "IoTSecureTunnelingServiceException", 0, [], []];
|
|
76
|
-
exports.IoTSecureTunnelingServiceException$ = IoTSecureTunnelingServiceException$;
|
|
77
|
-
_s_registry.registerError(IoTSecureTunnelingServiceException$, IoTSecureTunnelingServiceException);
|
|
78
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
79
|
-
const LimitExceededException$ = [-3, n0, _LEE,
|
|
80
|
-
{ [_aQE]: [`LimitExceededException`, 403], [_e]: _c, [_hE]: 403 },
|
|
81
|
-
[_m],
|
|
82
|
-
[0]
|
|
83
|
-
];
|
|
84
|
-
exports.LimitExceededException$ = LimitExceededException$;
|
|
85
|
-
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
86
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
87
|
-
{ [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
|
|
88
|
-
[_m],
|
|
89
|
-
[0]
|
|
90
|
-
];
|
|
91
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
92
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
93
|
-
exports.errorTypeRegistries = [
|
|
94
|
-
_s_registry,
|
|
95
|
-
n0_registry,
|
|
96
|
-
];
|
|
97
|
-
var ClientAccessToken = [0, n0, _CAT, 8, 0];
|
|
98
|
-
const CloseTunnelRequest$ = [3, n0, _CTR,
|
|
99
|
-
0,
|
|
100
|
-
[_tI, _d],
|
|
101
|
-
[[0, 1], [2, { [_hQ]: _d }]], 1
|
|
102
|
-
];
|
|
103
|
-
exports.CloseTunnelRequest$ = CloseTunnelRequest$;
|
|
104
|
-
const CloseTunnelResponse$ = [3, n0, _CTRl,
|
|
105
|
-
0,
|
|
106
|
-
[],
|
|
107
|
-
[]
|
|
108
|
-
];
|
|
109
|
-
exports.CloseTunnelResponse$ = CloseTunnelResponse$;
|
|
110
|
-
const ConnectionState$ = [3, n0, _CS,
|
|
111
|
-
0,
|
|
112
|
-
[_st, _lUA],
|
|
113
|
-
[0, 4]
|
|
114
|
-
];
|
|
115
|
-
exports.ConnectionState$ = ConnectionState$;
|
|
116
|
-
const DescribeTunnelRequest$ = [3, n0, _DTR,
|
|
117
|
-
0,
|
|
118
|
-
[_tI],
|
|
119
|
-
[[0, 1]], 1
|
|
120
|
-
];
|
|
121
|
-
exports.DescribeTunnelRequest$ = DescribeTunnelRequest$;
|
|
122
|
-
const DescribeTunnelResponse$ = [3, n0, _DTRe,
|
|
123
|
-
0,
|
|
124
|
-
[_t],
|
|
125
|
-
[() => Tunnel$]
|
|
126
|
-
];
|
|
127
|
-
exports.DescribeTunnelResponse$ = DescribeTunnelResponse$;
|
|
128
|
-
const DestinationConfig$ = [3, n0, _DC,
|
|
129
|
-
0,
|
|
130
|
-
[_se, _tN],
|
|
131
|
-
[64 | 0, 0], 1
|
|
132
|
-
];
|
|
133
|
-
exports.DestinationConfig$ = DestinationConfig$;
|
|
134
|
-
const ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
135
|
-
0,
|
|
136
|
-
[_rA],
|
|
137
|
-
[[0, { [_hQ]: _rA }]], 1
|
|
138
|
-
];
|
|
139
|
-
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
140
|
-
const ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
141
|
-
0,
|
|
142
|
-
[_ta],
|
|
143
|
-
[() => TagList]
|
|
144
|
-
];
|
|
145
|
-
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
146
|
-
const ListTunnelsRequest$ = [3, n0, _LTR,
|
|
147
|
-
0,
|
|
148
|
-
[_tN, _mR, _nT],
|
|
149
|
-
[[0, { [_hQ]: _tN }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
|
|
150
|
-
];
|
|
151
|
-
exports.ListTunnelsRequest$ = ListTunnelsRequest$;
|
|
152
|
-
const ListTunnelsResponse$ = [3, n0, _LTRi,
|
|
153
|
-
0,
|
|
154
|
-
[_tS, _nT],
|
|
155
|
-
[() => TunnelSummaryList, 0]
|
|
156
|
-
];
|
|
157
|
-
exports.ListTunnelsResponse$ = ListTunnelsResponse$;
|
|
158
|
-
const OpenTunnelRequest$ = [3, n0, _OTR,
|
|
159
|
-
0,
|
|
160
|
-
[_de, _ta, _dC, _tC],
|
|
161
|
-
[0, () => TagList, () => DestinationConfig$, () => TimeoutConfig$]
|
|
162
|
-
];
|
|
163
|
-
exports.OpenTunnelRequest$ = OpenTunnelRequest$;
|
|
164
|
-
const OpenTunnelResponse$ = [3, n0, _OTRp,
|
|
165
|
-
0,
|
|
166
|
-
[_tI, _tA, _sAT, _dAT],
|
|
167
|
-
[0, 0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
|
|
168
|
-
];
|
|
169
|
-
exports.OpenTunnelResponse$ = OpenTunnelResponse$;
|
|
170
|
-
const RotateTunnelAccessTokenRequest$ = [3, n0, _RTATR,
|
|
171
|
-
0,
|
|
172
|
-
[_tI, _cM, _dC],
|
|
173
|
-
[[0, 1], 0, () => DestinationConfig$], 2
|
|
174
|
-
];
|
|
175
|
-
exports.RotateTunnelAccessTokenRequest$ = RotateTunnelAccessTokenRequest$;
|
|
176
|
-
const RotateTunnelAccessTokenResponse$ = [3, n0, _RTATRo,
|
|
177
|
-
0,
|
|
178
|
-
[_tA, _sAT, _dAT],
|
|
179
|
-
[0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
|
|
180
|
-
];
|
|
181
|
-
exports.RotateTunnelAccessTokenResponse$ = RotateTunnelAccessTokenResponse$;
|
|
182
|
-
const Tag$ = [3, n0, _T,
|
|
183
|
-
0,
|
|
184
|
-
[_k, _v],
|
|
185
|
-
[0, 0], 2
|
|
186
|
-
];
|
|
187
|
-
exports.Tag$ = Tag$;
|
|
188
|
-
const TagResourceRequest$ = [3, n0, _TRR,
|
|
189
|
-
0,
|
|
190
|
-
[_rA, _ta],
|
|
191
|
-
[0, () => TagList], 2
|
|
192
|
-
];
|
|
193
|
-
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
194
|
-
const TagResourceResponse$ = [3, n0, _TRRa,
|
|
195
|
-
0,
|
|
196
|
-
[],
|
|
197
|
-
[]
|
|
198
|
-
];
|
|
199
|
-
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
200
|
-
const TimeoutConfig$ = [3, n0, _TC,
|
|
201
|
-
0,
|
|
202
|
-
[_mLTM],
|
|
203
|
-
[1]
|
|
204
|
-
];
|
|
205
|
-
exports.TimeoutConfig$ = TimeoutConfig$;
|
|
206
|
-
const Tunnel$ = [3, n0, _Tu,
|
|
207
|
-
0,
|
|
208
|
-
[_tI, _tA, _st, _sCS, _dCS, _de, _dC, _tC, _ta, _cA, _lUA],
|
|
209
|
-
[0, 0, 0, () => ConnectionState$, () => ConnectionState$, 0, () => DestinationConfig$, () => TimeoutConfig$, () => TagList, 4, 4]
|
|
210
|
-
];
|
|
211
|
-
exports.Tunnel$ = Tunnel$;
|
|
212
|
-
const TunnelSummary$ = [3, n0, _TS,
|
|
213
|
-
0,
|
|
214
|
-
[_tI, _tA, _st, _de, _cA, _lUA],
|
|
215
|
-
[0, 0, 0, 0, 4, 4]
|
|
216
|
-
];
|
|
217
|
-
exports.TunnelSummary$ = TunnelSummary$;
|
|
218
|
-
const UntagResourceRequest$ = [3, n0, _URR,
|
|
219
|
-
0,
|
|
220
|
-
[_rA, _tK],
|
|
221
|
-
[0, 64 | 0], 2
|
|
222
|
-
];
|
|
223
|
-
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
224
|
-
const UntagResourceResponse$ = [3, n0, _URRn,
|
|
225
|
-
0,
|
|
226
|
-
[],
|
|
227
|
-
[]
|
|
228
|
-
];
|
|
229
|
-
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
230
|
-
var ServiceList = 64 | 0;
|
|
231
|
-
var TagKeyList = 64 | 0;
|
|
232
|
-
var TagList = [1, n0, _TL,
|
|
233
|
-
0, () => Tag$
|
|
234
|
-
];
|
|
235
|
-
var TunnelSummaryList = [1, n0, _TSL,
|
|
236
|
-
0, () => TunnelSummary$
|
|
237
|
-
];
|
|
238
|
-
exports.CloseTunnel$ = [9, n0, _CT,
|
|
239
|
-
{ [_h]: ["DELETE", "/tunnels/{tunnelId}", 200] }, () => CloseTunnelRequest$, () => CloseTunnelResponse$
|
|
240
|
-
];
|
|
241
|
-
exports.DescribeTunnel$ = [9, n0, _DT,
|
|
242
|
-
{ [_h]: ["GET", "/tunnels/{tunnelId}", 200] }, () => DescribeTunnelRequest$, () => DescribeTunnelResponse$
|
|
243
|
-
];
|
|
244
|
-
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
245
|
-
{ [_h]: ["GET", "/tags", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
246
|
-
];
|
|
247
|
-
exports.ListTunnels$ = [9, n0, _LT,
|
|
248
|
-
{ [_h]: ["GET", "/tunnels", 200] }, () => ListTunnelsRequest$, () => ListTunnelsResponse$
|
|
249
|
-
];
|
|
250
|
-
exports.OpenTunnel$ = [9, n0, _OT,
|
|
251
|
-
{ [_h]: ["POST", "/tunnels", 200] }, () => OpenTunnelRequest$, () => OpenTunnelResponse$
|
|
252
|
-
];
|
|
253
|
-
exports.RotateTunnelAccessToken$ = [9, n0, _RTAT,
|
|
254
|
-
{ [_h]: ["POST", "/tunnel/{tunnelId}/rotate", 200] }, () => RotateTunnelAccessTokenRequest$, () => RotateTunnelAccessTokenResponse$
|
|
255
|
-
];
|
|
256
|
-
exports.TagResource$ = [9, n0, _TR,
|
|
257
|
-
{ [_h]: ["POST", "/tags", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
258
|
-
];
|
|
259
|
-
exports.UntagResource$ = [9, n0, _UR,
|
|
260
|
-
{ [_h]: ["POST", "/untag", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
261
|
-
];
|