1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class IoTSecureTunneling extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: IoTSecureTunneling.Types.ClientConfiguration)
|
13 | config: Config & IoTSecureTunneling.Types.ClientConfiguration;
|
14 | /**
|
15 | * Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request is received, we close the WebSocket connections between the client and proxy server so no data can be transmitted.
|
16 | */
|
17 | closeTunnel(params: IoTSecureTunneling.Types.CloseTunnelRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.CloseTunnelResponse) => void): Request<IoTSecureTunneling.Types.CloseTunnelResponse, AWSError>;
|
18 | /**
|
19 | * Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request is received, we close the WebSocket connections between the client and proxy server so no data can be transmitted.
|
20 | */
|
21 | closeTunnel(callback?: (err: AWSError, data: IoTSecureTunneling.Types.CloseTunnelResponse) => void): Request<IoTSecureTunneling.Types.CloseTunnelResponse, AWSError>;
|
22 | /**
|
23 | * Gets information about a tunnel identified by the unique tunnel id.
|
24 | */
|
25 | describeTunnel(params: IoTSecureTunneling.Types.DescribeTunnelRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.DescribeTunnelResponse) => void): Request<IoTSecureTunneling.Types.DescribeTunnelResponse, AWSError>;
|
26 | /**
|
27 | * Gets information about a tunnel identified by the unique tunnel id.
|
28 | */
|
29 | describeTunnel(callback?: (err: AWSError, data: IoTSecureTunneling.Types.DescribeTunnelResponse) => void): Request<IoTSecureTunneling.Types.DescribeTunnelResponse, AWSError>;
|
30 | /**
|
31 | * Lists the tags for the specified resource.
|
32 | */
|
33 | listTagsForResource(params: IoTSecureTunneling.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.ListTagsForResourceResponse) => void): Request<IoTSecureTunneling.Types.ListTagsForResourceResponse, AWSError>;
|
34 | /**
|
35 | * Lists the tags for the specified resource.
|
36 | */
|
37 | listTagsForResource(callback?: (err: AWSError, data: IoTSecureTunneling.Types.ListTagsForResourceResponse) => void): Request<IoTSecureTunneling.Types.ListTagsForResourceResponse, AWSError>;
|
38 | /**
|
39 | * List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer tunnels will be listed before older tunnels.
|
40 | */
|
41 | listTunnels(params: IoTSecureTunneling.Types.ListTunnelsRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.ListTunnelsResponse) => void): Request<IoTSecureTunneling.Types.ListTunnelsResponse, AWSError>;
|
42 | /**
|
43 | * List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer tunnels will be listed before older tunnels.
|
44 | */
|
45 | listTunnels(callback?: (err: AWSError, data: IoTSecureTunneling.Types.ListTunnelsResponse) => void): Request<IoTSecureTunneling.Types.ListTunnelsResponse, AWSError>;
|
46 | /**
|
47 | * Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT Secure Tunneling proxy server. .
|
48 | */
|
49 | openTunnel(params: IoTSecureTunneling.Types.OpenTunnelRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.OpenTunnelResponse) => void): Request<IoTSecureTunneling.Types.OpenTunnelResponse, AWSError>;
|
50 | /**
|
51 | * Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT Secure Tunneling proxy server. .
|
52 | */
|
53 | openTunnel(callback?: (err: AWSError, data: IoTSecureTunneling.Types.OpenTunnelResponse) => void): Request<IoTSecureTunneling.Types.OpenTunnelResponse, AWSError>;
|
54 | /**
|
55 | * A resource tag.
|
56 | */
|
57 | tagResource(params: IoTSecureTunneling.Types.TagResourceRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.TagResourceResponse) => void): Request<IoTSecureTunneling.Types.TagResourceResponse, AWSError>;
|
58 | /**
|
59 | * A resource tag.
|
60 | */
|
61 | tagResource(callback?: (err: AWSError, data: IoTSecureTunneling.Types.TagResourceResponse) => void): Request<IoTSecureTunneling.Types.TagResourceResponse, AWSError>;
|
62 | /**
|
63 | * Removes a tag from a resource.
|
64 | */
|
65 | untagResource(params: IoTSecureTunneling.Types.UntagResourceRequest, callback?: (err: AWSError, data: IoTSecureTunneling.Types.UntagResourceResponse) => void): Request<IoTSecureTunneling.Types.UntagResourceResponse, AWSError>;
|
66 | /**
|
67 | * Removes a tag from a resource.
|
68 | */
|
69 | untagResource(callback?: (err: AWSError, data: IoTSecureTunneling.Types.UntagResourceResponse) => void): Request<IoTSecureTunneling.Types.UntagResourceResponse, AWSError>;
|
70 | }
|
71 | declare namespace IoTSecureTunneling {
|
72 | export type AmazonResourceName = string;
|
73 | export type ClientAccessToken = string;
|
74 | export interface CloseTunnelRequest {
|
75 | |
76 |
|
77 |
|
78 | tunnelId: TunnelId;
|
79 | |
80 |
|
81 |
|
82 | delete?: DeleteFlag;
|
83 | }
|
84 | export interface CloseTunnelResponse {
|
85 | }
|
86 | export interface ConnectionState {
|
87 | |
88 |
|
89 |
|
90 | status?: ConnectionStatus;
|
91 | |
92 |
|
93 |
|
94 | lastUpdatedAt?: DateType;
|
95 | }
|
96 | export type ConnectionStatus = "CONNECTED"|"DISCONNECTED"|string;
|
97 | export type DateType = Date;
|
98 | export type DeleteFlag = boolean;
|
99 | export interface DescribeTunnelRequest {
|
100 | |
101 |
|
102 |
|
103 | tunnelId: TunnelId;
|
104 | }
|
105 | export interface DescribeTunnelResponse {
|
106 | |
107 |
|
108 |
|
109 | tunnel?: Tunnel;
|
110 | }
|
111 | export type Description = string;
|
112 | export interface DestinationConfig {
|
113 | |
114 |
|
115 |
|
116 | thingName: ThingName;
|
117 | |
118 |
|
119 |
|
120 | services: ServiceList;
|
121 | }
|
122 | export interface ListTagsForResourceRequest {
|
123 | |
124 |
|
125 |
|
126 | resourceArn: AmazonResourceName;
|
127 | }
|
128 | export interface ListTagsForResourceResponse {
|
129 | |
130 |
|
131 |
|
132 | tags?: TagList;
|
133 | }
|
134 | export interface ListTunnelsRequest {
|
135 | |
136 |
|
137 |
|
138 | thingName?: ThingName;
|
139 | |
140 |
|
141 |
|
142 | maxResults?: MaxResults;
|
143 | |
144 |
|
145 |
|
146 | nextToken?: NextToken;
|
147 | }
|
148 | export interface ListTunnelsResponse {
|
149 | |
150 |
|
151 |
|
152 | tunnelSummaries?: TunnelSummaryList;
|
153 | |
154 |
|
155 |
|
156 | nextToken?: NextToken;
|
157 | }
|
158 | export type MaxResults = number;
|
159 | export type NextToken = string;
|
160 | export interface OpenTunnelRequest {
|
161 | |
162 |
|
163 |
|
164 | description?: Description;
|
165 | |
166 |
|
167 |
|
168 | tags?: TagList;
|
169 | |
170 |
|
171 |
|
172 | destinationConfig?: DestinationConfig;
|
173 | |
174 |
|
175 |
|
176 | timeoutConfig?: TimeoutConfig;
|
177 | }
|
178 | export interface OpenTunnelResponse {
|
179 | |
180 |
|
181 |
|
182 | tunnelId?: TunnelId;
|
183 | |
184 |
|
185 |
|
186 | tunnelArn?: TunnelArn;
|
187 | |
188 |
|
189 |
|
190 | sourceAccessToken?: ClientAccessToken;
|
191 | |
192 |
|
193 |
|
194 | destinationAccessToken?: ClientAccessToken;
|
195 | }
|
196 | export type Service = string;
|
197 | export type ServiceList = Service[];
|
198 | export interface Tag {
|
199 | |
200 |
|
201 |
|
202 | key: TagKey;
|
203 | |
204 |
|
205 |
|
206 | value: TagValue;
|
207 | }
|
208 | export type TagKey = string;
|
209 | export type TagKeyList = TagKey[];
|
210 | export type TagList = Tag[];
|
211 | export interface TagResourceRequest {
|
212 | |
213 |
|
214 |
|
215 | resourceArn: AmazonResourceName;
|
216 | |
217 |
|
218 |
|
219 | tags: TagList;
|
220 | }
|
221 | export interface TagResourceResponse {
|
222 | }
|
223 | export type TagValue = string;
|
224 | export type ThingName = string;
|
225 | export interface TimeoutConfig {
|
226 | |
227 |
|
228 |
|
229 | maxLifetimeTimeoutMinutes?: TimeoutInMin;
|
230 | }
|
231 | export type TimeoutInMin = number;
|
232 | export interface Tunnel {
|
233 | |
234 |
|
235 |
|
236 | tunnelId?: TunnelId;
|
237 | |
238 |
|
239 |
|
240 | tunnelArn?: TunnelArn;
|
241 | |
242 |
|
243 |
|
244 | status?: TunnelStatus;
|
245 | |
246 |
|
247 |
|
248 | sourceConnectionState?: ConnectionState;
|
249 | |
250 |
|
251 |
|
252 | destinationConnectionState?: ConnectionState;
|
253 | |
254 |
|
255 |
|
256 | description?: Description;
|
257 | |
258 |
|
259 |
|
260 | destinationConfig?: DestinationConfig;
|
261 | |
262 |
|
263 |
|
264 | timeoutConfig?: TimeoutConfig;
|
265 | |
266 |
|
267 |
|
268 | tags?: TagList;
|
269 | |
270 |
|
271 |
|
272 | createdAt?: DateType;
|
273 | |
274 |
|
275 |
|
276 | lastUpdatedAt?: DateType;
|
277 | }
|
278 | export type TunnelArn = string;
|
279 | export type TunnelId = string;
|
280 | export type TunnelStatus = "OPEN"|"CLOSED"|string;
|
281 | export interface TunnelSummary {
|
282 | |
283 |
|
284 |
|
285 | tunnelId?: TunnelId;
|
286 | |
287 |
|
288 |
|
289 | tunnelArn?: TunnelArn;
|
290 | |
291 |
|
292 |
|
293 | status?: TunnelStatus;
|
294 | |
295 |
|
296 |
|
297 | description?: Description;
|
298 | |
299 |
|
300 |
|
301 | createdAt?: DateType;
|
302 | |
303 |
|
304 |
|
305 | lastUpdatedAt?: DateType;
|
306 | }
|
307 | export type TunnelSummaryList = TunnelSummary[];
|
308 | export interface UntagResourceRequest {
|
309 | |
310 |
|
311 |
|
312 | resourceArn: AmazonResourceName;
|
313 | |
314 |
|
315 |
|
316 | tagKeys: TagKeyList;
|
317 | }
|
318 | export interface UntagResourceResponse {
|
319 | }
|
320 | |
321 |
|
322 |
|
323 | export type apiVersion = "2018-10-05"|"latest"|string;
|
324 | export interface ClientApiVersions {
|
325 | |
326 |
|
327 |
|
328 | apiVersion?: apiVersion;
|
329 | }
|
330 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
331 | |
332 |
|
333 |
|
334 | export import Types = IoTSecureTunneling;
|
335 | }
|
336 | export = IoTSecureTunneling;
|