@aws-sdk/client-apigatewaymanagementapi 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ApiGatewayManagementApiServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +55 -1
- package/dist-cjs/protocols/Aws_restJson1.js +48 -115
- package/dist-es/index.js +1 -0
- package/dist-es/models/ApiGatewayManagementApiServiceException.js +12 -0
- package/dist-es/models/models_0.js +51 -1
- package/dist-es/protocols/Aws_restJson1.js +75 -132
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ApiGatewayManagementApiServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -13
- package/dist-types/ts3.4/ApiGatewayManagementApi.d.ts +20 -0
- package/dist-types/ts3.4/ApiGatewayManagementApiClient.d.ts +76 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PostToConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/ApiGatewayManagementApiServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ApiGatewayManagementApiServiceException as __BaseException } from "../models/ApiGatewayManagementApiServiceException";
|
|
5
|
+
import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1DeleteConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -118,16 +120,16 @@ export var deserializeAws_restJson1DeleteConnectionCommand = function (output, c
|
|
|
118
120
|
});
|
|
119
121
|
}); };
|
|
120
122
|
var deserializeAws_restJson1DeleteConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
121
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
122
|
-
var
|
|
123
|
-
return __generator(this, function (
|
|
124
|
-
switch (
|
|
123
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
124
|
+
var _c;
|
|
125
|
+
return __generator(this, function (_d) {
|
|
126
|
+
switch (_d.label) {
|
|
125
127
|
case 0:
|
|
126
128
|
_a = [__assign({}, output)];
|
|
127
|
-
|
|
129
|
+
_c = {};
|
|
128
130
|
return [4, parseBody(output.body, context)];
|
|
129
131
|
case 1:
|
|
130
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
132
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
131
133
|
errorCode = "UnknownError";
|
|
132
134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
133
135
|
_b = errorCode;
|
|
@@ -140,34 +142,20 @@ var deserializeAws_restJson1DeleteConnectionCommandError = function (output, con
|
|
|
140
142
|
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3, 6];
|
|
141
143
|
}
|
|
142
144
|
return [3, 8];
|
|
143
|
-
case 2:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
case
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
case 4:
|
|
150
|
-
_d = [{}];
|
|
151
|
-
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
152
|
-
case 5:
|
|
153
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
154
|
-
return [3, 9];
|
|
155
|
-
case 6:
|
|
156
|
-
_e = [{}];
|
|
157
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
158
|
-
case 7:
|
|
159
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
160
|
-
return [3, 9];
|
|
145
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
146
|
+
case 3: throw _d.sent();
|
|
147
|
+
case 4: return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
148
|
+
case 5: throw _d.sent();
|
|
149
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
150
|
+
case 7: throw _d.sent();
|
|
161
151
|
case 8:
|
|
162
152
|
parsedBody = parsedOutput.body;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
response
|
|
169
|
-
delete response.Message;
|
|
170
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
153
|
+
response = new __BaseException({
|
|
154
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
155
|
+
$fault: "client",
|
|
156
|
+
$metadata: deserializeMetadata(output),
|
|
157
|
+
});
|
|
158
|
+
throw __decorateServiceException(response, parsedBody);
|
|
171
159
|
}
|
|
172
160
|
});
|
|
173
161
|
}); };
|
|
@@ -204,16 +192,16 @@ export var deserializeAws_restJson1GetConnectionCommand = function (output, cont
|
|
|
204
192
|
});
|
|
205
193
|
}); };
|
|
206
194
|
var deserializeAws_restJson1GetConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
207
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
208
|
-
var
|
|
209
|
-
return __generator(this, function (
|
|
210
|
-
switch (
|
|
195
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
196
|
+
var _c;
|
|
197
|
+
return __generator(this, function (_d) {
|
|
198
|
+
switch (_d.label) {
|
|
211
199
|
case 0:
|
|
212
200
|
_a = [__assign({}, output)];
|
|
213
|
-
|
|
201
|
+
_c = {};
|
|
214
202
|
return [4, parseBody(output.body, context)];
|
|
215
203
|
case 1:
|
|
216
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
204
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
217
205
|
errorCode = "UnknownError";
|
|
218
206
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
207
|
_b = errorCode;
|
|
@@ -226,34 +214,20 @@ var deserializeAws_restJson1GetConnectionCommandError = function (output, contex
|
|
|
226
214
|
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3, 6];
|
|
227
215
|
}
|
|
228
216
|
return [3, 8];
|
|
229
|
-
case 2:
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
case
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
case 4:
|
|
236
|
-
_d = [{}];
|
|
237
|
-
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
238
|
-
case 5:
|
|
239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
240
|
-
return [3, 9];
|
|
241
|
-
case 6:
|
|
242
|
-
_e = [{}];
|
|
243
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
244
|
-
case 7:
|
|
245
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
246
|
-
return [3, 9];
|
|
217
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
218
|
+
case 3: throw _d.sent();
|
|
219
|
+
case 4: return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
220
|
+
case 5: throw _d.sent();
|
|
221
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
222
|
+
case 7: throw _d.sent();
|
|
247
223
|
case 8:
|
|
248
224
|
parsedBody = parsedOutput.body;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
response
|
|
255
|
-
delete response.Message;
|
|
256
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
225
|
+
response = new __BaseException({
|
|
226
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
227
|
+
$fault: "client",
|
|
228
|
+
$metadata: deserializeMetadata(output),
|
|
229
|
+
});
|
|
230
|
+
throw __decorateServiceException(response, parsedBody);
|
|
257
231
|
}
|
|
258
232
|
});
|
|
259
233
|
}); };
|
|
@@ -276,16 +250,16 @@ export var deserializeAws_restJson1PostToConnectionCommand = function (output, c
|
|
|
276
250
|
});
|
|
277
251
|
}); };
|
|
278
252
|
var deserializeAws_restJson1PostToConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
280
|
-
var
|
|
281
|
-
return __generator(this, function (
|
|
282
|
-
switch (
|
|
253
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
254
|
+
var _c;
|
|
255
|
+
return __generator(this, function (_d) {
|
|
256
|
+
switch (_d.label) {
|
|
283
257
|
case 0:
|
|
284
258
|
_a = [__assign({}, output)];
|
|
285
|
-
|
|
259
|
+
_c = {};
|
|
286
260
|
return [4, parseBody(output.body, context)];
|
|
287
261
|
case 1:
|
|
288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
262
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
289
263
|
errorCode = "UnknownError";
|
|
290
264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
265
|
_b = errorCode;
|
|
@@ -300,93 +274,62 @@ var deserializeAws_restJson1PostToConnectionCommandError = function (output, con
|
|
|
300
274
|
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException": return [3, 8];
|
|
301
275
|
}
|
|
302
276
|
return [3, 10];
|
|
303
|
-
case 2:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
case
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
case 4
|
|
310
|
-
|
|
311
|
-
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
312
|
-
case 5:
|
|
313
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
314
|
-
return [3, 11];
|
|
315
|
-
case 6:
|
|
316
|
-
_e = [{}];
|
|
317
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
318
|
-
case 7:
|
|
319
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
320
|
-
return [3, 11];
|
|
321
|
-
case 8:
|
|
322
|
-
_f = [{}];
|
|
323
|
-
return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
|
|
324
|
-
case 9:
|
|
325
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
326
|
-
return [3, 11];
|
|
277
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
278
|
+
case 3: throw _d.sent();
|
|
279
|
+
case 4: return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
280
|
+
case 5: throw _d.sent();
|
|
281
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
282
|
+
case 7: throw _d.sent();
|
|
283
|
+
case 8: return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
|
|
284
|
+
case 9: throw _d.sent();
|
|
327
285
|
case 10:
|
|
328
286
|
parsedBody = parsedOutput.body;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
response
|
|
335
|
-
delete response.Message;
|
|
336
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
287
|
+
response = new __BaseException({
|
|
288
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
289
|
+
$fault: "client",
|
|
290
|
+
$metadata: deserializeMetadata(output),
|
|
291
|
+
});
|
|
292
|
+
throw __decorateServiceException(response, parsedBody);
|
|
337
293
|
}
|
|
338
294
|
});
|
|
339
295
|
}); };
|
|
340
296
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
-
var contents, data;
|
|
297
|
+
var contents, data, exception;
|
|
342
298
|
return __generator(this, function (_a) {
|
|
343
|
-
contents = {
|
|
344
|
-
name: "ForbiddenException",
|
|
345
|
-
$fault: "client",
|
|
346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
-
};
|
|
299
|
+
contents = {};
|
|
348
300
|
data = parsedOutput.body;
|
|
349
|
-
|
|
301
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
302
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
350
303
|
});
|
|
351
304
|
}); };
|
|
352
305
|
var deserializeAws_restJson1GoneExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
353
|
-
var contents, data;
|
|
306
|
+
var contents, data, exception;
|
|
354
307
|
return __generator(this, function (_a) {
|
|
355
|
-
contents = {
|
|
356
|
-
name: "GoneException",
|
|
357
|
-
$fault: "client",
|
|
358
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
359
|
-
};
|
|
308
|
+
contents = {};
|
|
360
309
|
data = parsedOutput.body;
|
|
361
|
-
|
|
310
|
+
exception = new GoneException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
311
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
362
312
|
});
|
|
363
313
|
}); };
|
|
364
314
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
365
|
-
var contents, data;
|
|
315
|
+
var contents, data, exception;
|
|
366
316
|
return __generator(this, function (_a) {
|
|
367
|
-
contents = {
|
|
368
|
-
name: "LimitExceededException",
|
|
369
|
-
$fault: "client",
|
|
370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
371
|
-
};
|
|
317
|
+
contents = {};
|
|
372
318
|
data = parsedOutput.body;
|
|
373
|
-
|
|
319
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
320
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
374
321
|
});
|
|
375
322
|
}); };
|
|
376
323
|
var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
377
|
-
var contents, data;
|
|
324
|
+
var contents, data, exception;
|
|
378
325
|
return __generator(this, function (_a) {
|
|
379
|
-
contents = {
|
|
380
|
-
name: "PayloadTooLargeException",
|
|
381
|
-
$fault: "client",
|
|
382
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
383
|
-
Message: undefined,
|
|
384
|
-
};
|
|
326
|
+
contents = {};
|
|
385
327
|
data = parsedOutput.body;
|
|
386
328
|
if (data.message !== undefined && data.message !== null) {
|
|
387
329
|
contents.Message = __expectString(data.message);
|
|
388
330
|
}
|
|
389
|
-
|
|
331
|
+
exception = new PayloadTooLargeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
332
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
390
333
|
});
|
|
391
334
|
}); };
|
|
392
335
|
var deserializeAws_restJson1Identity = function (output, context) {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from ApiGatewayManagementApi service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ApiGatewayManagementApiServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ApiGatewayManagementApiServiceException as __BaseException } from "./ApiGatewayManagementApiServiceException";
|
|
2
3
|
export interface DeleteConnectionRequest {
|
|
3
4
|
ConnectionId: string | undefined;
|
|
4
5
|
}
|
|
@@ -11,23 +12,35 @@ export declare namespace DeleteConnectionRequest {
|
|
|
11
12
|
/**
|
|
12
13
|
* <p>The caller is not authorized to invoke this operation.</p>
|
|
13
14
|
*/
|
|
14
|
-
export
|
|
15
|
-
name: "ForbiddenException";
|
|
16
|
-
$fault: "client";
|
|
15
|
+
export declare class ForbiddenException extends __BaseException {
|
|
16
|
+
readonly name: "ForbiddenException";
|
|
17
|
+
readonly $fault: "client";
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* <p>The connection with the provided id no longer exists.</p>
|
|
20
25
|
*/
|
|
21
|
-
export
|
|
22
|
-
name: "GoneException";
|
|
23
|
-
$fault: "client";
|
|
26
|
+
export declare class GoneException extends __BaseException {
|
|
27
|
+
readonly name: "GoneException";
|
|
28
|
+
readonly $fault: "client";
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
constructor(opts: __ExceptionOptionType<GoneException, __BaseException>);
|
|
24
33
|
}
|
|
25
34
|
/**
|
|
26
35
|
* <p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>
|
|
27
36
|
*/
|
|
28
|
-
export
|
|
29
|
-
name: "LimitExceededException";
|
|
30
|
-
$fault: "client";
|
|
37
|
+
export declare class LimitExceededException extends __BaseException {
|
|
38
|
+
readonly name: "LimitExceededException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
31
44
|
}
|
|
32
45
|
export interface GetConnectionRequest {
|
|
33
46
|
ConnectionId: string | undefined;
|
|
@@ -74,10 +87,14 @@ export declare namespace GetConnectionResponse {
|
|
|
74
87
|
/**
|
|
75
88
|
* <p>The data has exceeded the maximum size allowed.</p>
|
|
76
89
|
*/
|
|
77
|
-
export
|
|
78
|
-
name: "PayloadTooLargeException";
|
|
79
|
-
$fault: "client";
|
|
90
|
+
export declare class PayloadTooLargeException extends __BaseException {
|
|
91
|
+
readonly name: "PayloadTooLargeException";
|
|
92
|
+
readonly $fault: "client";
|
|
80
93
|
Message?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
constructor(opts: __ExceptionOptionType<PayloadTooLargeException, __BaseException>);
|
|
81
98
|
}
|
|
82
99
|
export interface PostToConnectionRequest {
|
|
83
100
|
/**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
|
|
3
|
+
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
4
|
+
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
5
|
+
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
|
|
6
|
+
|
|
7
|
+
export declare class ApiGatewayManagementApi extends ApiGatewayManagementApiClient {
|
|
8
|
+
|
|
9
|
+
deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
|
|
10
|
+
deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
11
|
+
deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
12
|
+
|
|
13
|
+
getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
|
|
14
|
+
getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
15
|
+
getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
16
|
+
|
|
17
|
+
postToConnection(args: PostToConnectionCommandInput, options?: __HttpHandlerOptions): Promise<PostToConnectionCommandOutput>;
|
|
18
|
+
postToConnection(args: PostToConnectionCommandInput, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
|
|
19
|
+
postToConnection(args: PostToConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
10
|
+
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
11
|
+
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
|
|
12
|
+
export declare type ServiceInputTypes = DeleteConnectionCommandInput | GetConnectionCommandInput | PostToConnectionCommandInput;
|
|
13
|
+
export declare type ServiceOutputTypes = DeleteConnectionCommandOutput | GetConnectionCommandOutput | PostToConnectionCommandOutput;
|
|
14
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
|
+
|
|
16
|
+
requestHandler?: __HttpHandler;
|
|
17
|
+
|
|
18
|
+
sha256?: __HashConstructor;
|
|
19
|
+
|
|
20
|
+
urlParser?: __UrlParser;
|
|
21
|
+
|
|
22
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
23
|
+
|
|
24
|
+
streamCollector?: __StreamCollector;
|
|
25
|
+
|
|
26
|
+
base64Decoder?: __Decoder;
|
|
27
|
+
|
|
28
|
+
base64Encoder?: __Encoder;
|
|
29
|
+
|
|
30
|
+
utf8Decoder?: __Decoder;
|
|
31
|
+
|
|
32
|
+
utf8Encoder?: __Encoder;
|
|
33
|
+
|
|
34
|
+
runtime?: string;
|
|
35
|
+
|
|
36
|
+
disableHostPrefix?: boolean;
|
|
37
|
+
|
|
38
|
+
maxAttempts?: number | __Provider<number>;
|
|
39
|
+
|
|
40
|
+
retryMode?: string | __Provider<string>;
|
|
41
|
+
|
|
42
|
+
logger?: __Logger;
|
|
43
|
+
|
|
44
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
45
|
+
|
|
46
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
47
|
+
|
|
48
|
+
serviceId?: string;
|
|
49
|
+
|
|
50
|
+
region?: string | __Provider<string>;
|
|
51
|
+
|
|
52
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
53
|
+
|
|
54
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
55
|
+
|
|
56
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
57
|
+
|
|
58
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
59
|
+
}
|
|
60
|
+
declare type ApiGatewayManagementApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
61
|
+
|
|
62
|
+
export interface ApiGatewayManagementApiClientConfig extends ApiGatewayManagementApiClientConfigType {
|
|
63
|
+
}
|
|
64
|
+
declare type ApiGatewayManagementApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
65
|
+
|
|
66
|
+
export interface ApiGatewayManagementApiClientResolvedConfig extends ApiGatewayManagementApiClientResolvedConfigType {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare class ApiGatewayManagementApiClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ApiGatewayManagementApiClientResolvedConfig> {
|
|
70
|
+
|
|
71
|
+
readonly config: ApiGatewayManagementApiClientResolvedConfig;
|
|
72
|
+
constructor(configuration: ApiGatewayManagementApiClientConfig);
|
|
73
|
+
|
|
74
|
+
destroy(): void;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
4
|
+
import { DeleteConnectionRequest } from "../models/models_0";
|
|
5
|
+
export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteConnectionCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class DeleteConnectionCommand extends $Command<DeleteConnectionCommandInput, DeleteConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
|
|
11
|
+
readonly input: DeleteConnectionCommandInput;
|
|
12
|
+
constructor(input: DeleteConnectionCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteConnectionCommandInput, DeleteConnectionCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
4
|
+
import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
|
|
5
|
+
export interface GetConnectionCommandInput extends GetConnectionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetConnectionCommand extends $Command<GetConnectionCommandInput, GetConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
|
|
11
|
+
readonly input: GetConnectionCommandInput;
|
|
12
|
+
constructor(input: GetConnectionCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetConnectionCommandInput, GetConnectionCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
4
|
+
import { PostToConnectionRequest } from "../models/models_0";
|
|
5
|
+
export interface PostToConnectionCommandInput extends PostToConnectionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PostToConnectionCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class PostToConnectionCommand extends $Command<PostToConnectionCommandInput, PostToConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
|
|
11
|
+
readonly input: PostToConnectionCommandInput;
|
|
12
|
+
constructor(input: PostToConnectionCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PostToConnectionCommandInput, PostToConnectionCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class ApiGatewayManagementApiServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ApiGatewayManagementApiServiceException as __BaseException } from "./ApiGatewayManagementApiServiceException";
|
|
3
|
+
export interface DeleteConnectionRequest {
|
|
4
|
+
ConnectionId: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace DeleteConnectionRequest {
|
|
7
|
+
|
|
8
|
+
const filterSensitiveLog: (obj: DeleteConnectionRequest) => any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare class ForbiddenException extends __BaseException {
|
|
12
|
+
readonly name: "ForbiddenException";
|
|
13
|
+
readonly $fault: "client";
|
|
14
|
+
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare class GoneException extends __BaseException {
|
|
19
|
+
readonly name: "GoneException";
|
|
20
|
+
readonly $fault: "client";
|
|
21
|
+
|
|
22
|
+
constructor(opts: __ExceptionOptionType<GoneException, __BaseException>);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare class LimitExceededException extends __BaseException {
|
|
26
|
+
readonly name: "LimitExceededException";
|
|
27
|
+
readonly $fault: "client";
|
|
28
|
+
|
|
29
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
30
|
+
}
|
|
31
|
+
export interface GetConnectionRequest {
|
|
32
|
+
ConnectionId: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace GetConnectionRequest {
|
|
35
|
+
|
|
36
|
+
const filterSensitiveLog: (obj: GetConnectionRequest) => any;
|
|
37
|
+
}
|
|
38
|
+
export interface Identity {
|
|
39
|
+
|
|
40
|
+
SourceIp: string | undefined;
|
|
41
|
+
|
|
42
|
+
UserAgent: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Identity {
|
|
45
|
+
|
|
46
|
+
const filterSensitiveLog: (obj: Identity) => any;
|
|
47
|
+
}
|
|
48
|
+
export interface GetConnectionResponse {
|
|
49
|
+
|
|
50
|
+
ConnectedAt?: Date;
|
|
51
|
+
Identity?: Identity;
|
|
52
|
+
|
|
53
|
+
LastActiveAt?: Date;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace GetConnectionResponse {
|
|
56
|
+
|
|
57
|
+
const filterSensitiveLog: (obj: GetConnectionResponse) => any;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare class PayloadTooLargeException extends __BaseException {
|
|
61
|
+
readonly name: "PayloadTooLargeException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
Message?: string;
|
|
64
|
+
|
|
65
|
+
constructor(opts: __ExceptionOptionType<PayloadTooLargeException, __BaseException>);
|
|
66
|
+
}
|
|
67
|
+
export interface PostToConnectionRequest {
|
|
68
|
+
|
|
69
|
+
Data: Uint8Array | undefined;
|
|
70
|
+
|
|
71
|
+
ConnectionId: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace PostToConnectionRequest {
|
|
74
|
+
|
|
75
|
+
const filterSensitiveLog: (obj: PostToConnectionRequest) => any;
|
|
76
|
+
}
|