@aws-sdk/client-iotsecuretunneling 3.899.0 → 3.906.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 +587 -685
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,715 +1,617 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
33
|
-
ListTunnelsCommand: () => ListTunnelsCommand,
|
|
34
|
-
OpenTunnelCommand: () => OpenTunnelCommand,
|
|
35
|
-
OpenTunnelResponseFilterSensitiveLog: () => OpenTunnelResponseFilterSensitiveLog,
|
|
36
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
37
|
-
RotateTunnelAccessTokenCommand: () => RotateTunnelAccessTokenCommand,
|
|
38
|
-
RotateTunnelAccessTokenResponseFilterSensitiveLog: () => RotateTunnelAccessTokenResponseFilterSensitiveLog,
|
|
39
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
40
|
-
TunnelStatus: () => TunnelStatus,
|
|
41
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
42
|
-
__Client: () => import_smithy_client.Client,
|
|
43
|
-
paginateListTunnels: () => paginateListTunnels
|
|
44
|
-
});
|
|
45
|
-
module.exports = __toCommonJS(index_exports);
|
|
46
|
-
|
|
47
|
-
// src/IoTSecureTunnelingClient.ts
|
|
48
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
49
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
50
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
51
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
52
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
53
|
-
var import_core = require("@smithy/core");
|
|
54
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
55
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
56
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
57
|
-
|
|
58
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
59
|
-
|
|
60
|
-
// src/endpoint/EndpointParameters.ts
|
|
61
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
62
|
-
return Object.assign(options, {
|
|
63
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
64
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
65
|
-
defaultSigningName: "IoTSecuredTunneling"
|
|
66
|
-
});
|
|
67
|
-
}, "resolveClientEndpointParameters");
|
|
68
|
-
var commonParams = {
|
|
69
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
70
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
71
|
-
Region: { type: "builtInParams", name: "region" },
|
|
72
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "IoTSecuredTunneling",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
73
32
|
};
|
|
74
33
|
|
|
75
|
-
|
|
76
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
77
72
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
82
78
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
79
|
+
class IoTSecureTunnelingClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
114
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
115
|
-
return {
|
|
116
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
117
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
118
|
-
credentials: config.credentials()
|
|
119
|
-
};
|
|
120
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
121
112
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
129
|
-
);
|
|
130
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
131
|
-
return Object.assign(
|
|
132
|
-
runtimeConfig,
|
|
133
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
134
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
135
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
136
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
137
|
-
);
|
|
138
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class IoTSecureTunnelingServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
139
119
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The resolved configuration of IoTSecureTunnelingClient class. This is resolved and normalized from the {@link IoTSecureTunnelingClientConfig | constructor configuration interface}.
|
|
147
|
-
*/
|
|
148
|
-
config;
|
|
149
|
-
constructor(...[configuration]) {
|
|
150
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
151
|
-
super(_config_0);
|
|
152
|
-
this.initConfig = _config_0;
|
|
153
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
154
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
155
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
156
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
157
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
158
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
159
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
160
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
161
|
-
this.config = _config_8;
|
|
162
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
163
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
164
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
165
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
166
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
167
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
168
|
-
this.middlewareStack.use(
|
|
169
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
170
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider,
|
|
171
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
172
|
-
"aws.auth#sigv4": config.credentials
|
|
173
|
-
}), "identityProviderConfigProvider")
|
|
174
|
-
})
|
|
175
|
-
);
|
|
176
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
180
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
181
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
182
|
-
*/
|
|
183
|
-
destroy() {
|
|
184
|
-
super.destroy();
|
|
185
|
-
}
|
|
120
|
+
const ClientMode = {
|
|
121
|
+
ALL: "ALL",
|
|
122
|
+
DESTINATION: "DESTINATION",
|
|
123
|
+
SOURCE: "SOURCE",
|
|
186
124
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
var IoTSecureTunnelingServiceException = class _IoTSecureTunnelingServiceException extends import_smithy_client.ServiceException {
|
|
204
|
-
static {
|
|
205
|
-
__name(this, "IoTSecureTunnelingServiceException");
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
constructor(options) {
|
|
211
|
-
super(options);
|
|
212
|
-
Object.setPrototypeOf(this, _IoTSecureTunnelingServiceException.prototype);
|
|
213
|
-
}
|
|
125
|
+
class ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
126
|
+
name = "ResourceNotFoundException";
|
|
127
|
+
$fault = "client";
|
|
128
|
+
constructor(opts) {
|
|
129
|
+
super({
|
|
130
|
+
name: "ResourceNotFoundException",
|
|
131
|
+
$fault: "client",
|
|
132
|
+
...opts,
|
|
133
|
+
});
|
|
134
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const ConnectionStatus = {
|
|
138
|
+
CONNECTED: "CONNECTED",
|
|
139
|
+
DISCONNECTED: "DISCONNECTED",
|
|
214
140
|
};
|
|
141
|
+
const TunnelStatus = {
|
|
142
|
+
CLOSED: "CLOSED",
|
|
143
|
+
OPEN: "OPEN",
|
|
144
|
+
};
|
|
145
|
+
class LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
146
|
+
name = "LimitExceededException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "LimitExceededException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const OpenTunnelResponseFilterSensitiveLog = (obj) => ({
|
|
158
|
+
...obj,
|
|
159
|
+
...(obj.sourceAccessToken && { sourceAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
160
|
+
...(obj.destinationAccessToken && { destinationAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
161
|
+
});
|
|
162
|
+
const RotateTunnelAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
163
|
+
...obj,
|
|
164
|
+
...(obj.sourceAccessToken && { sourceAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
165
|
+
...(obj.destinationAccessToken && { destinationAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
166
|
+
});
|
|
215
167
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
168
|
+
const se_CloseTunnelCommand = async (input, context) => {
|
|
169
|
+
const headers = sharedHeaders("CloseTunnel");
|
|
170
|
+
let body;
|
|
171
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
172
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
+
};
|
|
174
|
+
const se_DescribeTunnelCommand = async (input, context) => {
|
|
175
|
+
const headers = sharedHeaders("DescribeTunnel");
|
|
176
|
+
let body;
|
|
177
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
178
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
+
};
|
|
180
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
181
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
184
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
+
};
|
|
186
|
+
const se_ListTunnelsCommand = async (input, context) => {
|
|
187
|
+
const headers = sharedHeaders("ListTunnels");
|
|
188
|
+
let body;
|
|
189
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
190
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
+
};
|
|
192
|
+
const se_OpenTunnelCommand = async (input, context) => {
|
|
193
|
+
const headers = sharedHeaders("OpenTunnel");
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
const se_RotateTunnelAccessTokenCommand = async (input, context) => {
|
|
199
|
+
const headers = sharedHeaders("RotateTunnelAccessToken");
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
204
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
205
|
+
const headers = sharedHeaders("TagResource");
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
208
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
+
};
|
|
210
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
211
|
+
const headers = sharedHeaders("UntagResource");
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
214
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
+
};
|
|
216
|
+
const de_CloseTunnelCommand = async (output, context) => {
|
|
217
|
+
if (output.statusCode >= 300) {
|
|
218
|
+
return de_CommandError(output, context);
|
|
219
|
+
}
|
|
220
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
221
|
+
let contents = {};
|
|
222
|
+
contents = smithyClient._json(data);
|
|
223
|
+
const response = {
|
|
224
|
+
$metadata: deserializeMetadata(output),
|
|
225
|
+
...contents,
|
|
226
|
+
};
|
|
227
|
+
return response;
|
|
228
|
+
};
|
|
229
|
+
const de_DescribeTunnelCommand = async (output, context) => {
|
|
230
|
+
if (output.statusCode >= 300) {
|
|
231
|
+
return de_CommandError(output, context);
|
|
232
|
+
}
|
|
233
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
234
|
+
let contents = {};
|
|
235
|
+
contents = de_DescribeTunnelResponse(data);
|
|
236
|
+
const response = {
|
|
237
|
+
$metadata: deserializeMetadata(output),
|
|
238
|
+
...contents,
|
|
239
|
+
};
|
|
240
|
+
return response;
|
|
241
|
+
};
|
|
242
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
243
|
+
if (output.statusCode >= 300) {
|
|
244
|
+
return de_CommandError(output, context);
|
|
245
|
+
}
|
|
246
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
247
|
+
let contents = {};
|
|
248
|
+
contents = smithyClient._json(data);
|
|
249
|
+
const response = {
|
|
250
|
+
$metadata: deserializeMetadata(output),
|
|
251
|
+
...contents,
|
|
252
|
+
};
|
|
253
|
+
return response;
|
|
254
|
+
};
|
|
255
|
+
const de_ListTunnelsCommand = async (output, context) => {
|
|
256
|
+
if (output.statusCode >= 300) {
|
|
257
|
+
return de_CommandError(output, context);
|
|
258
|
+
}
|
|
259
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
260
|
+
let contents = {};
|
|
261
|
+
contents = de_ListTunnelsResponse(data);
|
|
262
|
+
const response = {
|
|
263
|
+
$metadata: deserializeMetadata(output),
|
|
264
|
+
...contents,
|
|
265
|
+
};
|
|
266
|
+
return response;
|
|
267
|
+
};
|
|
268
|
+
const de_OpenTunnelCommand = async (output, context) => {
|
|
269
|
+
if (output.statusCode >= 300) {
|
|
270
|
+
return de_CommandError(output, context);
|
|
271
|
+
}
|
|
272
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
273
|
+
let contents = {};
|
|
274
|
+
contents = smithyClient._json(data);
|
|
275
|
+
const response = {
|
|
276
|
+
$metadata: deserializeMetadata(output),
|
|
277
|
+
...contents,
|
|
278
|
+
};
|
|
279
|
+
return response;
|
|
280
|
+
};
|
|
281
|
+
const de_RotateTunnelAccessTokenCommand = async (output, context) => {
|
|
282
|
+
if (output.statusCode >= 300) {
|
|
283
|
+
return de_CommandError(output, context);
|
|
284
|
+
}
|
|
285
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
286
|
+
let contents = {};
|
|
287
|
+
contents = smithyClient._json(data);
|
|
288
|
+
const response = {
|
|
289
|
+
$metadata: deserializeMetadata(output),
|
|
290
|
+
...contents,
|
|
291
|
+
};
|
|
292
|
+
return response;
|
|
293
|
+
};
|
|
294
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
295
|
+
if (output.statusCode >= 300) {
|
|
296
|
+
return de_CommandError(output, context);
|
|
297
|
+
}
|
|
298
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
299
|
+
let contents = {};
|
|
300
|
+
contents = smithyClient._json(data);
|
|
301
|
+
const response = {
|
|
302
|
+
$metadata: deserializeMetadata(output),
|
|
303
|
+
...contents,
|
|
304
|
+
};
|
|
305
|
+
return response;
|
|
306
|
+
};
|
|
307
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
308
|
+
if (output.statusCode >= 300) {
|
|
309
|
+
return de_CommandError(output, context);
|
|
310
|
+
}
|
|
311
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
312
|
+
let contents = {};
|
|
313
|
+
contents = smithyClient._json(data);
|
|
314
|
+
const response = {
|
|
315
|
+
$metadata: deserializeMetadata(output),
|
|
316
|
+
...contents,
|
|
317
|
+
};
|
|
318
|
+
return response;
|
|
319
|
+
};
|
|
320
|
+
const de_CommandError = async (output, context) => {
|
|
321
|
+
const parsedOutput = {
|
|
322
|
+
...output,
|
|
323
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
324
|
+
};
|
|
325
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
326
|
+
switch (errorCode) {
|
|
327
|
+
case "ResourceNotFoundException":
|
|
328
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
329
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
330
|
+
case "LimitExceededException":
|
|
331
|
+
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
332
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
333
|
+
default:
|
|
334
|
+
const parsedBody = parsedOutput.body;
|
|
335
|
+
return throwDefaultError({
|
|
336
|
+
output,
|
|
337
|
+
parsedBody,
|
|
338
|
+
errorCode,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
343
|
+
const body = parsedOutput.body;
|
|
344
|
+
const deserialized = smithyClient._json(body);
|
|
345
|
+
const exception = new LimitExceededException({
|
|
346
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
+
...deserialized,
|
|
237
348
|
});
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
CLOSED: "CLOSED",
|
|
247
|
-
OPEN: "OPEN"
|
|
248
|
-
};
|
|
249
|
-
var LimitExceededException = class _LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
250
|
-
static {
|
|
251
|
-
__name(this, "LimitExceededException");
|
|
252
|
-
}
|
|
253
|
-
name = "LimitExceededException";
|
|
254
|
-
$fault = "client";
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
|
-
constructor(opts) {
|
|
259
|
-
super({
|
|
260
|
-
name: "LimitExceededException",
|
|
261
|
-
$fault: "client",
|
|
262
|
-
...opts
|
|
349
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
350
|
+
};
|
|
351
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
352
|
+
const body = parsedOutput.body;
|
|
353
|
+
const deserialized = smithyClient._json(body);
|
|
354
|
+
const exception = new ResourceNotFoundException({
|
|
355
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
356
|
+
...deserialized,
|
|
263
357
|
});
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
var OpenTunnelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
268
|
-
...obj,
|
|
269
|
-
...obj.sourceAccessToken && { sourceAccessToken: import_smithy_client.SENSITIVE_STRING },
|
|
270
|
-
...obj.destinationAccessToken && { destinationAccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
271
|
-
}), "OpenTunnelResponseFilterSensitiveLog");
|
|
272
|
-
var RotateTunnelAccessTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
...obj.sourceAccessToken && { sourceAccessToken: import_smithy_client.SENSITIVE_STRING },
|
|
275
|
-
...obj.destinationAccessToken && { destinationAccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
276
|
-
}), "RotateTunnelAccessTokenResponseFilterSensitiveLog");
|
|
277
|
-
|
|
278
|
-
// src/protocols/Aws_json1_1.ts
|
|
279
|
-
var se_CloseTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
280
|
-
const headers = sharedHeaders("CloseTunnel");
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
283
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
284
|
-
}, "se_CloseTunnelCommand");
|
|
285
|
-
var se_DescribeTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
286
|
-
const headers = sharedHeaders("DescribeTunnel");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
289
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
290
|
-
}, "se_DescribeTunnelCommand");
|
|
291
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
296
|
-
}, "se_ListTagsForResourceCommand");
|
|
297
|
-
var se_ListTunnelsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("ListTunnels");
|
|
299
|
-
let body;
|
|
300
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
302
|
-
}, "se_ListTunnelsCommand");
|
|
303
|
-
var se_OpenTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
304
|
-
const headers = sharedHeaders("OpenTunnel");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
308
|
-
}, "se_OpenTunnelCommand");
|
|
309
|
-
var se_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
310
|
-
const headers = sharedHeaders("RotateTunnelAccessToken");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
313
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
314
|
-
}, "se_RotateTunnelAccessTokenCommand");
|
|
315
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
316
|
-
const headers = sharedHeaders("TagResource");
|
|
317
|
-
let body;
|
|
318
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
319
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
320
|
-
}, "se_TagResourceCommand");
|
|
321
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
322
|
-
const headers = sharedHeaders("UntagResource");
|
|
323
|
-
let body;
|
|
324
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
325
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
326
|
-
}, "se_UntagResourceCommand");
|
|
327
|
-
var de_CloseTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
328
|
-
if (output.statusCode >= 300) {
|
|
329
|
-
return de_CommandError(output, context);
|
|
330
|
-
}
|
|
331
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
332
|
-
let contents = {};
|
|
333
|
-
contents = (0, import_smithy_client._json)(data);
|
|
334
|
-
const response = {
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
...contents
|
|
337
|
-
};
|
|
338
|
-
return response;
|
|
339
|
-
}, "de_CloseTunnelCommand");
|
|
340
|
-
var de_DescribeTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
341
|
-
if (output.statusCode >= 300) {
|
|
342
|
-
return de_CommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
345
|
-
let contents = {};
|
|
346
|
-
contents = de_DescribeTunnelResponse(data, context);
|
|
347
|
-
const response = {
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
...contents
|
|
350
|
-
};
|
|
351
|
-
return response;
|
|
352
|
-
}, "de_DescribeTunnelCommand");
|
|
353
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
354
|
-
if (output.statusCode >= 300) {
|
|
355
|
-
return de_CommandError(output, context);
|
|
356
|
-
}
|
|
357
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
358
|
-
let contents = {};
|
|
359
|
-
contents = (0, import_smithy_client._json)(data);
|
|
360
|
-
const response = {
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
...contents
|
|
363
|
-
};
|
|
364
|
-
return response;
|
|
365
|
-
}, "de_ListTagsForResourceCommand");
|
|
366
|
-
var de_ListTunnelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
367
|
-
if (output.statusCode >= 300) {
|
|
368
|
-
return de_CommandError(output, context);
|
|
369
|
-
}
|
|
370
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
371
|
-
let contents = {};
|
|
372
|
-
contents = de_ListTunnelsResponse(data, context);
|
|
373
|
-
const response = {
|
|
374
|
-
$metadata: deserializeMetadata(output),
|
|
375
|
-
...contents
|
|
376
|
-
};
|
|
377
|
-
return response;
|
|
378
|
-
}, "de_ListTunnelsCommand");
|
|
379
|
-
var de_OpenTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
|
-
if (output.statusCode >= 300) {
|
|
381
|
-
return de_CommandError(output, context);
|
|
382
|
-
}
|
|
383
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
384
|
-
let contents = {};
|
|
385
|
-
contents = (0, import_smithy_client._json)(data);
|
|
386
|
-
const response = {
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
...contents
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
}, "de_OpenTunnelCommand");
|
|
392
|
-
var de_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = (0, import_smithy_client._json)(data);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
}, "de_RotateTunnelAccessTokenCommand");
|
|
405
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
406
|
-
if (output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
410
|
-
let contents = {};
|
|
411
|
-
contents = (0, import_smithy_client._json)(data);
|
|
412
|
-
const response = {
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
...contents
|
|
415
|
-
};
|
|
416
|
-
return response;
|
|
417
|
-
}, "de_TagResourceCommand");
|
|
418
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
419
|
-
if (output.statusCode >= 300) {
|
|
420
|
-
return de_CommandError(output, context);
|
|
421
|
-
}
|
|
422
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
423
|
-
let contents = {};
|
|
424
|
-
contents = (0, import_smithy_client._json)(data);
|
|
425
|
-
const response = {
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
...contents
|
|
428
|
-
};
|
|
429
|
-
return response;
|
|
430
|
-
}, "de_UntagResourceCommand");
|
|
431
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
432
|
-
const parsedOutput = {
|
|
433
|
-
...output,
|
|
434
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
435
|
-
};
|
|
436
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
437
|
-
switch (errorCode) {
|
|
438
|
-
case "ResourceNotFoundException":
|
|
439
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
441
|
-
case "LimitExceededException":
|
|
442
|
-
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
443
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
}, "de_CommandError");
|
|
453
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
454
|
-
const body = parsedOutput.body;
|
|
455
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
456
|
-
const exception = new LimitExceededException({
|
|
457
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
458
|
-
...deserialized
|
|
459
|
-
});
|
|
460
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
461
|
-
}, "de_LimitExceededExceptionRes");
|
|
462
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
463
|
-
const body = parsedOutput.body;
|
|
464
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
465
|
-
const exception = new ResourceNotFoundException({
|
|
466
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
467
|
-
...deserialized
|
|
468
|
-
});
|
|
469
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
470
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
471
|
-
var de_ConnectionState = /* @__PURE__ */ __name((output, context) => {
|
|
472
|
-
return (0, import_smithy_client.take)(output, {
|
|
473
|
-
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
|
|
474
|
-
status: import_smithy_client.expectString
|
|
475
|
-
});
|
|
476
|
-
}, "de_ConnectionState");
|
|
477
|
-
var de_DescribeTunnelResponse = /* @__PURE__ */ __name((output, context) => {
|
|
478
|
-
return (0, import_smithy_client.take)(output, {
|
|
479
|
-
tunnel: /* @__PURE__ */ __name((_) => de_Tunnel(_, context), "tunnel")
|
|
480
|
-
});
|
|
481
|
-
}, "de_DescribeTunnelResponse");
|
|
482
|
-
var de_ListTunnelsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
483
|
-
return (0, import_smithy_client.take)(output, {
|
|
484
|
-
nextToken: import_smithy_client.expectString,
|
|
485
|
-
tunnelSummaries: /* @__PURE__ */ __name((_) => de_TunnelSummaryList(_, context), "tunnelSummaries")
|
|
486
|
-
});
|
|
487
|
-
}, "de_ListTunnelsResponse");
|
|
488
|
-
var de_Tunnel = /* @__PURE__ */ __name((output, context) => {
|
|
489
|
-
return (0, import_smithy_client.take)(output, {
|
|
490
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
491
|
-
description: import_smithy_client.expectString,
|
|
492
|
-
destinationConfig: import_smithy_client._json,
|
|
493
|
-
destinationConnectionState: /* @__PURE__ */ __name((_) => de_ConnectionState(_, context), "destinationConnectionState"),
|
|
494
|
-
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
|
|
495
|
-
sourceConnectionState: /* @__PURE__ */ __name((_) => de_ConnectionState(_, context), "sourceConnectionState"),
|
|
496
|
-
status: import_smithy_client.expectString,
|
|
497
|
-
tags: import_smithy_client._json,
|
|
498
|
-
timeoutConfig: import_smithy_client._json,
|
|
499
|
-
tunnelArn: import_smithy_client.expectString,
|
|
500
|
-
tunnelId: import_smithy_client.expectString
|
|
501
|
-
});
|
|
502
|
-
}, "de_Tunnel");
|
|
503
|
-
var de_TunnelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
504
|
-
return (0, import_smithy_client.take)(output, {
|
|
505
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
506
|
-
description: import_smithy_client.expectString,
|
|
507
|
-
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
|
|
508
|
-
status: import_smithy_client.expectString,
|
|
509
|
-
tunnelArn: import_smithy_client.expectString,
|
|
510
|
-
tunnelId: import_smithy_client.expectString
|
|
511
|
-
});
|
|
512
|
-
}, "de_TunnelSummary");
|
|
513
|
-
var de_TunnelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
514
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
515
|
-
return de_TunnelSummary(entry, context);
|
|
516
|
-
});
|
|
517
|
-
return retVal;
|
|
518
|
-
}, "de_TunnelSummaryList");
|
|
519
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
520
|
-
httpStatusCode: output.statusCode,
|
|
521
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
522
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
523
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
524
|
-
}), "deserializeMetadata");
|
|
525
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTSecureTunnelingServiceException);
|
|
526
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
527
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
528
|
-
const contents = {
|
|
529
|
-
protocol,
|
|
530
|
-
hostname,
|
|
531
|
-
port,
|
|
532
|
-
method: "POST",
|
|
533
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
534
|
-
headers
|
|
535
|
-
};
|
|
536
|
-
if (resolvedHostname !== void 0) {
|
|
537
|
-
contents.hostname = resolvedHostname;
|
|
538
|
-
}
|
|
539
|
-
if (body !== void 0) {
|
|
540
|
-
contents.body = body;
|
|
541
|
-
}
|
|
542
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
543
|
-
}, "buildHttpRpcRequest");
|
|
544
|
-
function sharedHeaders(operation) {
|
|
545
|
-
return {
|
|
546
|
-
"content-type": "application/x-amz-json-1.1",
|
|
547
|
-
"x-amz-target": `IoTSecuredTunneling.${operation}`
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
551
|
-
|
|
552
|
-
// src/commands/CloseTunnelCommand.ts
|
|
553
|
-
var CloseTunnelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
554
|
-
return [
|
|
555
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
556
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
557
|
-
];
|
|
558
|
-
}).s("IoTSecuredTunneling", "CloseTunnel", {}).n("IoTSecureTunnelingClient", "CloseTunnelCommand").f(void 0, void 0).ser(se_CloseTunnelCommand).de(de_CloseTunnelCommand).build() {
|
|
559
|
-
static {
|
|
560
|
-
__name(this, "CloseTunnelCommand");
|
|
561
|
-
}
|
|
358
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
562
359
|
};
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
var DescribeTunnelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
569
|
-
return [
|
|
570
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
571
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
572
|
-
];
|
|
573
|
-
}).s("IoTSecuredTunneling", "DescribeTunnel", {}).n("IoTSecureTunnelingClient", "DescribeTunnelCommand").f(void 0, void 0).ser(se_DescribeTunnelCommand).de(de_DescribeTunnelCommand).build() {
|
|
574
|
-
static {
|
|
575
|
-
__name(this, "DescribeTunnelCommand");
|
|
576
|
-
}
|
|
360
|
+
const de_ConnectionState = (output, context) => {
|
|
361
|
+
return smithyClient.take(output, {
|
|
362
|
+
lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
363
|
+
status: smithyClient.expectString,
|
|
364
|
+
});
|
|
577
365
|
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
584
|
-
return [
|
|
585
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
586
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
587
|
-
];
|
|
588
|
-
}).s("IoTSecuredTunneling", "ListTagsForResource", {}).n("IoTSecureTunnelingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
589
|
-
static {
|
|
590
|
-
__name(this, "ListTagsForResourceCommand");
|
|
591
|
-
}
|
|
366
|
+
const de_DescribeTunnelResponse = (output, context) => {
|
|
367
|
+
return smithyClient.take(output, {
|
|
368
|
+
tunnel: (_) => de_Tunnel(_),
|
|
369
|
+
});
|
|
592
370
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
var ListTunnelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
599
|
-
return [
|
|
600
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
601
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
602
|
-
];
|
|
603
|
-
}).s("IoTSecuredTunneling", "ListTunnels", {}).n("IoTSecureTunnelingClient", "ListTunnelsCommand").f(void 0, void 0).ser(se_ListTunnelsCommand).de(de_ListTunnelsCommand).build() {
|
|
604
|
-
static {
|
|
605
|
-
__name(this, "ListTunnelsCommand");
|
|
606
|
-
}
|
|
371
|
+
const de_ListTunnelsResponse = (output, context) => {
|
|
372
|
+
return smithyClient.take(output, {
|
|
373
|
+
nextToken: smithyClient.expectString,
|
|
374
|
+
tunnelSummaries: (_) => de_TunnelSummaryList(_),
|
|
375
|
+
});
|
|
607
376
|
};
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
377
|
+
const de_Tunnel = (output, context) => {
|
|
378
|
+
return smithyClient.take(output, {
|
|
379
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
380
|
+
description: smithyClient.expectString,
|
|
381
|
+
destinationConfig: smithyClient._json,
|
|
382
|
+
destinationConnectionState: (_) => de_ConnectionState(_),
|
|
383
|
+
lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
384
|
+
sourceConnectionState: (_) => de_ConnectionState(_),
|
|
385
|
+
status: smithyClient.expectString,
|
|
386
|
+
tags: smithyClient._json,
|
|
387
|
+
timeoutConfig: smithyClient._json,
|
|
388
|
+
tunnelArn: smithyClient.expectString,
|
|
389
|
+
tunnelId: smithyClient.expectString,
|
|
390
|
+
});
|
|
622
391
|
};
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
];
|
|
633
|
-
}).s("IoTSecuredTunneling", "RotateTunnelAccessToken", {}).n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand").f(void 0, RotateTunnelAccessTokenResponseFilterSensitiveLog).ser(se_RotateTunnelAccessTokenCommand).de(de_RotateTunnelAccessTokenCommand).build() {
|
|
634
|
-
static {
|
|
635
|
-
__name(this, "RotateTunnelAccessTokenCommand");
|
|
636
|
-
}
|
|
392
|
+
const de_TunnelSummary = (output, context) => {
|
|
393
|
+
return smithyClient.take(output, {
|
|
394
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
395
|
+
description: smithyClient.expectString,
|
|
396
|
+
lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
397
|
+
status: smithyClient.expectString,
|
|
398
|
+
tunnelArn: smithyClient.expectString,
|
|
399
|
+
tunnelId: smithyClient.expectString,
|
|
400
|
+
});
|
|
637
401
|
};
|
|
402
|
+
const de_TunnelSummaryList = (output, context) => {
|
|
403
|
+
const retVal = (output || [])
|
|
404
|
+
.filter((e) => e != null)
|
|
405
|
+
.map((entry) => {
|
|
406
|
+
return de_TunnelSummary(entry);
|
|
407
|
+
});
|
|
408
|
+
return retVal;
|
|
409
|
+
};
|
|
410
|
+
const deserializeMetadata = (output) => ({
|
|
411
|
+
httpStatusCode: output.statusCode,
|
|
412
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
413
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
414
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
415
|
+
});
|
|
416
|
+
const throwDefaultError = smithyClient.withBaseException(IoTSecureTunnelingServiceException);
|
|
417
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
418
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
419
|
+
const contents = {
|
|
420
|
+
protocol,
|
|
421
|
+
hostname,
|
|
422
|
+
port,
|
|
423
|
+
method: "POST",
|
|
424
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
425
|
+
headers,
|
|
426
|
+
};
|
|
427
|
+
if (body !== undefined) {
|
|
428
|
+
contents.body = body;
|
|
429
|
+
}
|
|
430
|
+
return new protocolHttp.HttpRequest(contents);
|
|
431
|
+
};
|
|
432
|
+
function sharedHeaders(operation) {
|
|
433
|
+
return {
|
|
434
|
+
"content-type": "application/x-amz-json-1.1",
|
|
435
|
+
"x-amz-target": `IoTSecuredTunneling.${operation}`,
|
|
436
|
+
};
|
|
437
|
+
}
|
|
638
438
|
|
|
639
|
-
|
|
640
|
-
|
|
439
|
+
class CloseTunnelCommand extends smithyClient.Command
|
|
440
|
+
.classBuilder()
|
|
441
|
+
.ep(commonParams)
|
|
442
|
+
.m(function (Command, cs, config, o) {
|
|
443
|
+
return [
|
|
444
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
445
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
446
|
+
];
|
|
447
|
+
})
|
|
448
|
+
.s("IoTSecuredTunneling", "CloseTunnel", {})
|
|
449
|
+
.n("IoTSecureTunnelingClient", "CloseTunnelCommand")
|
|
450
|
+
.f(void 0, void 0)
|
|
451
|
+
.ser(se_CloseTunnelCommand)
|
|
452
|
+
.de(de_CloseTunnelCommand)
|
|
453
|
+
.build() {
|
|
454
|
+
}
|
|
641
455
|
|
|
456
|
+
class DescribeTunnelCommand extends smithyClient.Command
|
|
457
|
+
.classBuilder()
|
|
458
|
+
.ep(commonParams)
|
|
459
|
+
.m(function (Command, cs, config, o) {
|
|
460
|
+
return [
|
|
461
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
462
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
463
|
+
];
|
|
464
|
+
})
|
|
465
|
+
.s("IoTSecuredTunneling", "DescribeTunnel", {})
|
|
466
|
+
.n("IoTSecureTunnelingClient", "DescribeTunnelCommand")
|
|
467
|
+
.f(void 0, void 0)
|
|
468
|
+
.ser(se_DescribeTunnelCommand)
|
|
469
|
+
.de(de_DescribeTunnelCommand)
|
|
470
|
+
.build() {
|
|
471
|
+
}
|
|
642
472
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
(
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
473
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
474
|
+
.classBuilder()
|
|
475
|
+
.ep(commonParams)
|
|
476
|
+
.m(function (Command, cs, config, o) {
|
|
477
|
+
return [
|
|
478
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
479
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
480
|
+
];
|
|
481
|
+
})
|
|
482
|
+
.s("IoTSecuredTunneling", "ListTagsForResource", {})
|
|
483
|
+
.n("IoTSecureTunnelingClient", "ListTagsForResourceCommand")
|
|
484
|
+
.f(void 0, void 0)
|
|
485
|
+
.ser(se_ListTagsForResourceCommand)
|
|
486
|
+
.de(de_ListTagsForResourceCommand)
|
|
487
|
+
.build() {
|
|
488
|
+
}
|
|
653
489
|
|
|
654
|
-
|
|
490
|
+
class ListTunnelsCommand extends smithyClient.Command
|
|
491
|
+
.classBuilder()
|
|
492
|
+
.ep(commonParams)
|
|
493
|
+
.m(function (Command, cs, config, o) {
|
|
494
|
+
return [
|
|
495
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
496
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
497
|
+
];
|
|
498
|
+
})
|
|
499
|
+
.s("IoTSecuredTunneling", "ListTunnels", {})
|
|
500
|
+
.n("IoTSecureTunnelingClient", "ListTunnelsCommand")
|
|
501
|
+
.f(void 0, void 0)
|
|
502
|
+
.ser(se_ListTunnelsCommand)
|
|
503
|
+
.de(de_ListTunnelsCommand)
|
|
504
|
+
.build() {
|
|
505
|
+
}
|
|
655
506
|
|
|
507
|
+
class OpenTunnelCommand extends smithyClient.Command
|
|
508
|
+
.classBuilder()
|
|
509
|
+
.ep(commonParams)
|
|
510
|
+
.m(function (Command, cs, config, o) {
|
|
511
|
+
return [
|
|
512
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
513
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
514
|
+
];
|
|
515
|
+
})
|
|
516
|
+
.s("IoTSecuredTunneling", "OpenTunnel", {})
|
|
517
|
+
.n("IoTSecureTunnelingClient", "OpenTunnelCommand")
|
|
518
|
+
.f(void 0, OpenTunnelResponseFilterSensitiveLog)
|
|
519
|
+
.ser(se_OpenTunnelCommand)
|
|
520
|
+
.de(de_OpenTunnelCommand)
|
|
521
|
+
.build() {
|
|
522
|
+
}
|
|
656
523
|
|
|
524
|
+
class RotateTunnelAccessTokenCommand extends smithyClient.Command
|
|
525
|
+
.classBuilder()
|
|
526
|
+
.ep(commonParams)
|
|
527
|
+
.m(function (Command, cs, config, o) {
|
|
528
|
+
return [
|
|
529
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
530
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
531
|
+
];
|
|
532
|
+
})
|
|
533
|
+
.s("IoTSecuredTunneling", "RotateTunnelAccessToken", {})
|
|
534
|
+
.n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand")
|
|
535
|
+
.f(void 0, RotateTunnelAccessTokenResponseFilterSensitiveLog)
|
|
536
|
+
.ser(se_RotateTunnelAccessTokenCommand)
|
|
537
|
+
.de(de_RotateTunnelAccessTokenCommand)
|
|
538
|
+
.build() {
|
|
539
|
+
}
|
|
657
540
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
(
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}
|
|
541
|
+
class TagResourceCommand extends smithyClient.Command
|
|
542
|
+
.classBuilder()
|
|
543
|
+
.ep(commonParams)
|
|
544
|
+
.m(function (Command, cs, config, o) {
|
|
545
|
+
return [
|
|
546
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
547
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
548
|
+
];
|
|
549
|
+
})
|
|
550
|
+
.s("IoTSecuredTunneling", "TagResource", {})
|
|
551
|
+
.n("IoTSecureTunnelingClient", "TagResourceCommand")
|
|
552
|
+
.f(void 0, void 0)
|
|
553
|
+
.ser(se_TagResourceCommand)
|
|
554
|
+
.de(de_TagResourceCommand)
|
|
555
|
+
.build() {
|
|
556
|
+
}
|
|
668
557
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
(0, import_smithy_client.createAggregatedClient)(commands, IoTSecureTunneling);
|
|
558
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
559
|
+
.classBuilder()
|
|
560
|
+
.ep(commonParams)
|
|
561
|
+
.m(function (Command, cs, config, o) {
|
|
562
|
+
return [
|
|
563
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
564
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
565
|
+
];
|
|
566
|
+
})
|
|
567
|
+
.s("IoTSecuredTunneling", "UntagResource", {})
|
|
568
|
+
.n("IoTSecureTunnelingClient", "UntagResourceCommand")
|
|
569
|
+
.f(void 0, void 0)
|
|
570
|
+
.ser(se_UntagResourceCommand)
|
|
571
|
+
.de(de_UntagResourceCommand)
|
|
572
|
+
.build() {
|
|
573
|
+
}
|
|
686
574
|
|
|
687
|
-
|
|
575
|
+
const commands = {
|
|
576
|
+
CloseTunnelCommand,
|
|
577
|
+
DescribeTunnelCommand,
|
|
578
|
+
ListTagsForResourceCommand,
|
|
579
|
+
ListTunnelsCommand,
|
|
580
|
+
OpenTunnelCommand,
|
|
581
|
+
RotateTunnelAccessTokenCommand,
|
|
582
|
+
TagResourceCommand,
|
|
583
|
+
UntagResourceCommand,
|
|
584
|
+
};
|
|
585
|
+
class IoTSecureTunneling extends IoTSecureTunnelingClient {
|
|
586
|
+
}
|
|
587
|
+
smithyClient.createAggregatedClient(commands, IoTSecureTunneling);
|
|
688
588
|
|
|
689
|
-
|
|
690
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
589
|
+
const paginateListTunnels = core.createPaginator(IoTSecureTunnelingClient, ListTunnelsCommand, "nextToken", "nextToken", "maxResults");
|
|
691
590
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
IoTSecureTunnelingClient,
|
|
696
|
-
IoTSecureTunneling,
|
|
697
|
-
$Command,
|
|
698
|
-
CloseTunnelCommand,
|
|
699
|
-
DescribeTunnelCommand,
|
|
700
|
-
ListTagsForResourceCommand,
|
|
701
|
-
ListTunnelsCommand,
|
|
702
|
-
OpenTunnelCommand,
|
|
703
|
-
RotateTunnelAccessTokenCommand,
|
|
704
|
-
TagResourceCommand,
|
|
705
|
-
UntagResourceCommand,
|
|
706
|
-
paginateListTunnels,
|
|
707
|
-
ClientMode,
|
|
708
|
-
ResourceNotFoundException,
|
|
709
|
-
ConnectionStatus,
|
|
710
|
-
TunnelStatus,
|
|
711
|
-
LimitExceededException,
|
|
712
|
-
OpenTunnelResponseFilterSensitiveLog,
|
|
713
|
-
RotateTunnelAccessTokenResponseFilterSensitiveLog
|
|
591
|
+
Object.defineProperty(exports, "$Command", {
|
|
592
|
+
enumerable: true,
|
|
593
|
+
get: function () { return smithyClient.Command; }
|
|
714
594
|
});
|
|
715
|
-
|
|
595
|
+
Object.defineProperty(exports, "__Client", {
|
|
596
|
+
enumerable: true,
|
|
597
|
+
get: function () { return smithyClient.Client; }
|
|
598
|
+
});
|
|
599
|
+
exports.ClientMode = ClientMode;
|
|
600
|
+
exports.CloseTunnelCommand = CloseTunnelCommand;
|
|
601
|
+
exports.ConnectionStatus = ConnectionStatus;
|
|
602
|
+
exports.DescribeTunnelCommand = DescribeTunnelCommand;
|
|
603
|
+
exports.IoTSecureTunneling = IoTSecureTunneling;
|
|
604
|
+
exports.IoTSecureTunnelingClient = IoTSecureTunnelingClient;
|
|
605
|
+
exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
|
|
606
|
+
exports.LimitExceededException = LimitExceededException;
|
|
607
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
608
|
+
exports.ListTunnelsCommand = ListTunnelsCommand;
|
|
609
|
+
exports.OpenTunnelCommand = OpenTunnelCommand;
|
|
610
|
+
exports.OpenTunnelResponseFilterSensitiveLog = OpenTunnelResponseFilterSensitiveLog;
|
|
611
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
612
|
+
exports.RotateTunnelAccessTokenCommand = RotateTunnelAccessTokenCommand;
|
|
613
|
+
exports.RotateTunnelAccessTokenResponseFilterSensitiveLog = RotateTunnelAccessTokenResponseFilterSensitiveLog;
|
|
614
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
615
|
+
exports.TunnelStatus = TunnelStatus;
|
|
616
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
617
|
+
exports.paginateListTunnels = paginateListTunnels;
|