@aws-sdk/client-apigatewaymanagementapi 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/ApiGatewayManagementApi.js +0 -1
- package/{dist/cjs → dist-cjs}/ApiGatewayManagementApiClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/DeleteConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PostToConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ApiGatewayManagementApi.js +1 -5
- package/{dist/es → dist-es}/ApiGatewayManagementApiClient.js +2 -11
- package/{dist/es → dist-es}/commands/DeleteConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PostToConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -28
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +68 -74
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ApiGatewayManagementApi.d.ts +1 -1
- package/{dist/types → dist-types}/ApiGatewayManagementApiClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/DeleteConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PostToConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +40 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ApiGatewayManagementApi.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/ApiGatewayManagementApiClient.d.ts +4 -4
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PostToConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +40 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ApiGatewayManagementApi.ts +0 -118
- package/ApiGatewayManagementApiClient.ts +0 -241
- package/commands/DeleteConnectionCommand.ts +0 -98
- package/commands/GetConnectionCommand.ts +0 -98
- package/commands/PostToConnectionCommand.ts +0 -98
- package/dist/cjs/ApiGatewayManagementApi.js.map +0 -1
- package/dist/cjs/ApiGatewayManagementApiClient.js.map +0 -1
- package/dist/cjs/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/GetConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/PostToConnectionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ApiGatewayManagementApi.js.map +0 -1
- package/dist/es/ApiGatewayManagementApiClient.js.map +0 -1
- package/dist/es/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/es/commands/GetConnectionCommand.js.map +0 -1
- package/dist/es/commands/PostToConnectionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -7
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -160
- package/protocols/Aws_restJson1.ts +0 -468
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1DeleteConnectionCommand = function (input, cont
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {};
|
|
@@ -20,7 +20,7 @@ export var serializeAws_restJson1DeleteConnectionCommand = function (input, cont
|
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
22
22
|
}
|
|
23
|
-
return [2
|
|
23
|
+
return [2, new __HttpRequest({
|
|
24
24
|
protocol: protocol,
|
|
25
25
|
hostname: hostname,
|
|
26
26
|
port: port,
|
|
@@ -36,7 +36,7 @@ export var serializeAws_restJson1GetConnectionCommand = function (input, context
|
|
|
36
36
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
37
37
|
return __generator(this, function (_c) {
|
|
38
38
|
switch (_c.label) {
|
|
39
|
-
case 0: return [4
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
40
|
case 1:
|
|
41
41
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
42
|
headers = {};
|
|
@@ -51,7 +51,7 @@ export var serializeAws_restJson1GetConnectionCommand = function (input, context
|
|
|
51
51
|
else {
|
|
52
52
|
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
53
53
|
}
|
|
54
|
-
return [2
|
|
54
|
+
return [2, new __HttpRequest({
|
|
55
55
|
protocol: protocol,
|
|
56
56
|
hostname: hostname,
|
|
57
57
|
port: port,
|
|
@@ -67,7 +67,7 @@ export var serializeAws_restJson1PostToConnectionCommand = function (input, cont
|
|
|
67
67
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
68
68
|
return __generator(this, function (_c) {
|
|
69
69
|
switch (_c.label) {
|
|
70
|
-
case 0: return [4
|
|
70
|
+
case 0: return [4, context.endpoint()];
|
|
71
71
|
case 1:
|
|
72
72
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
73
73
|
headers = {
|
|
@@ -87,7 +87,7 @@ export var serializeAws_restJson1PostToConnectionCommand = function (input, cont
|
|
|
87
87
|
if (input.Data !== undefined) {
|
|
88
88
|
body = input.Data;
|
|
89
89
|
}
|
|
90
|
-
return [2
|
|
90
|
+
return [2, new __HttpRequest({
|
|
91
91
|
protocol: protocol,
|
|
92
92
|
hostname: hostname,
|
|
93
93
|
port: port,
|
|
@@ -105,15 +105,15 @@ export var deserializeAws_restJson1DeleteConnectionCommand = function (output, c
|
|
|
105
105
|
switch (_a.label) {
|
|
106
106
|
case 0:
|
|
107
107
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
108
|
-
return [2
|
|
108
|
+
return [2, deserializeAws_restJson1DeleteConnectionCommandError(output, context)];
|
|
109
109
|
}
|
|
110
110
|
contents = {
|
|
111
111
|
$metadata: deserializeMetadata(output),
|
|
112
112
|
};
|
|
113
|
-
return [4
|
|
113
|
+
return [4, collectBody(output.body, context)];
|
|
114
114
|
case 1:
|
|
115
115
|
_a.sent();
|
|
116
|
-
return [2
|
|
116
|
+
return [2, Promise.resolve(contents)];
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
}); };
|
|
@@ -125,39 +125,39 @@ var deserializeAws_restJson1DeleteConnectionCommandError = function (output, con
|
|
|
125
125
|
case 0:
|
|
126
126
|
_a = [__assign({}, output)];
|
|
127
127
|
_f = {};
|
|
128
|
-
return [4
|
|
128
|
+
return [4, parseBody(output.body, context)];
|
|
129
129
|
case 1:
|
|
130
130
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
131
131
|
errorCode = "UnknownError";
|
|
132
132
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
133
133
|
_b = errorCode;
|
|
134
134
|
switch (_b) {
|
|
135
|
-
case "ForbiddenException": return [3
|
|
136
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3
|
|
137
|
-
case "GoneException": return [3
|
|
138
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3
|
|
139
|
-
case "LimitExceededException": return [3
|
|
140
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3
|
|
135
|
+
case "ForbiddenException": return [3, 2];
|
|
136
|
+
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3, 2];
|
|
137
|
+
case "GoneException": return [3, 4];
|
|
138
|
+
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3, 4];
|
|
139
|
+
case "LimitExceededException": return [3, 6];
|
|
140
|
+
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3, 6];
|
|
141
141
|
}
|
|
142
|
-
return [3
|
|
142
|
+
return [3, 8];
|
|
143
143
|
case 2:
|
|
144
144
|
_c = [{}];
|
|
145
|
-
return [4
|
|
145
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
146
146
|
case 3:
|
|
147
147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
148
|
-
return [3
|
|
148
|
+
return [3, 9];
|
|
149
149
|
case 4:
|
|
150
150
|
_d = [{}];
|
|
151
|
-
return [4
|
|
151
|
+
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
152
152
|
case 5:
|
|
153
153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
154
|
-
return [3
|
|
154
|
+
return [3, 9];
|
|
155
155
|
case 6:
|
|
156
156
|
_e = [{}];
|
|
157
|
-
return [4
|
|
157
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
158
158
|
case 7:
|
|
159
159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
160
|
-
return [3
|
|
160
|
+
return [3, 9];
|
|
161
161
|
case 8:
|
|
162
162
|
parsedBody = parsedOutput.body;
|
|
163
163
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -167,7 +167,7 @@ var deserializeAws_restJson1DeleteConnectionCommandError = function (output, con
|
|
|
167
167
|
message = response.message || response.Message || errorCode;
|
|
168
168
|
response.message = message;
|
|
169
169
|
delete response.Message;
|
|
170
|
-
return [2
|
|
170
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}); };
|
|
@@ -177,7 +177,7 @@ export var deserializeAws_restJson1GetConnectionCommand = function (output, cont
|
|
|
177
177
|
switch (_c.label) {
|
|
178
178
|
case 0:
|
|
179
179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
|
-
return [2
|
|
180
|
+
return [2, deserializeAws_restJson1GetConnectionCommandError(output, context)];
|
|
181
181
|
}
|
|
182
182
|
contents = {
|
|
183
183
|
$metadata: deserializeMetadata(output),
|
|
@@ -187,7 +187,7 @@ export var deserializeAws_restJson1GetConnectionCommand = function (output, cont
|
|
|
187
187
|
};
|
|
188
188
|
_a = __expectNonNull;
|
|
189
189
|
_b = __expectObject;
|
|
190
|
-
return [4
|
|
190
|
+
return [4, parseBody(output.body, context)];
|
|
191
191
|
case 1:
|
|
192
192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
193
193
|
if (data.connectedAt !== undefined && data.connectedAt !== null) {
|
|
@@ -199,7 +199,7 @@ export var deserializeAws_restJson1GetConnectionCommand = function (output, cont
|
|
|
199
199
|
if (data.lastActiveAt !== undefined && data.lastActiveAt !== null) {
|
|
200
200
|
contents.LastActiveAt = __expectNonNull(__parseRfc3339DateTime(data.lastActiveAt));
|
|
201
201
|
}
|
|
202
|
-
return [2
|
|
202
|
+
return [2, Promise.resolve(contents)];
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
}); };
|
|
@@ -211,39 +211,39 @@ var deserializeAws_restJson1GetConnectionCommandError = function (output, contex
|
|
|
211
211
|
case 0:
|
|
212
212
|
_a = [__assign({}, output)];
|
|
213
213
|
_f = {};
|
|
214
|
-
return [4
|
|
214
|
+
return [4, parseBody(output.body, context)];
|
|
215
215
|
case 1:
|
|
216
216
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
217
217
|
errorCode = "UnknownError";
|
|
218
218
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
219
|
_b = errorCode;
|
|
220
220
|
switch (_b) {
|
|
221
|
-
case "ForbiddenException": return [3
|
|
222
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3
|
|
223
|
-
case "GoneException": return [3
|
|
224
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3
|
|
225
|
-
case "LimitExceededException": return [3
|
|
226
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3
|
|
221
|
+
case "ForbiddenException": return [3, 2];
|
|
222
|
+
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3, 2];
|
|
223
|
+
case "GoneException": return [3, 4];
|
|
224
|
+
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3, 4];
|
|
225
|
+
case "LimitExceededException": return [3, 6];
|
|
226
|
+
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3, 6];
|
|
227
227
|
}
|
|
228
|
-
return [3
|
|
228
|
+
return [3, 8];
|
|
229
229
|
case 2:
|
|
230
230
|
_c = [{}];
|
|
231
|
-
return [4
|
|
231
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
232
232
|
case 3:
|
|
233
233
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
234
|
-
return [3
|
|
234
|
+
return [3, 9];
|
|
235
235
|
case 4:
|
|
236
236
|
_d = [{}];
|
|
237
|
-
return [4
|
|
237
|
+
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
238
238
|
case 5:
|
|
239
239
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
240
|
-
return [3
|
|
240
|
+
return [3, 9];
|
|
241
241
|
case 6:
|
|
242
242
|
_e = [{}];
|
|
243
|
-
return [4
|
|
243
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
244
244
|
case 7:
|
|
245
245
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
246
|
-
return [3
|
|
246
|
+
return [3, 9];
|
|
247
247
|
case 8:
|
|
248
248
|
parsedBody = parsedOutput.body;
|
|
249
249
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -253,7 +253,7 @@ var deserializeAws_restJson1GetConnectionCommandError = function (output, contex
|
|
|
253
253
|
message = response.message || response.Message || errorCode;
|
|
254
254
|
response.message = message;
|
|
255
255
|
delete response.Message;
|
|
256
|
-
return [2
|
|
256
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
}); };
|
|
@@ -263,15 +263,15 @@ export var deserializeAws_restJson1PostToConnectionCommand = function (output, c
|
|
|
263
263
|
switch (_a.label) {
|
|
264
264
|
case 0:
|
|
265
265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
266
|
-
return [2
|
|
266
|
+
return [2, deserializeAws_restJson1PostToConnectionCommandError(output, context)];
|
|
267
267
|
}
|
|
268
268
|
contents = {
|
|
269
269
|
$metadata: deserializeMetadata(output),
|
|
270
270
|
};
|
|
271
|
-
return [4
|
|
271
|
+
return [4, collectBody(output.body, context)];
|
|
272
272
|
case 1:
|
|
273
273
|
_a.sent();
|
|
274
|
-
return [2
|
|
274
|
+
return [2, Promise.resolve(contents)];
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
}); };
|
|
@@ -283,47 +283,47 @@ var deserializeAws_restJson1PostToConnectionCommandError = function (output, con
|
|
|
283
283
|
case 0:
|
|
284
284
|
_a = [__assign({}, output)];
|
|
285
285
|
_g = {};
|
|
286
|
-
return [4
|
|
286
|
+
return [4, parseBody(output.body, context)];
|
|
287
287
|
case 1:
|
|
288
288
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
289
289
|
errorCode = "UnknownError";
|
|
290
290
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
291
|
_b = errorCode;
|
|
292
292
|
switch (_b) {
|
|
293
|
-
case "ForbiddenException": return [3
|
|
294
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3
|
|
295
|
-
case "GoneException": return [3
|
|
296
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3
|
|
297
|
-
case "LimitExceededException": return [3
|
|
298
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3
|
|
299
|
-
case "PayloadTooLargeException": return [3
|
|
300
|
-
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException": return [3
|
|
293
|
+
case "ForbiddenException": return [3, 2];
|
|
294
|
+
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException": return [3, 2];
|
|
295
|
+
case "GoneException": return [3, 4];
|
|
296
|
+
case "com.amazonaws.apigatewaymanagementapi#GoneException": return [3, 4];
|
|
297
|
+
case "LimitExceededException": return [3, 6];
|
|
298
|
+
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException": return [3, 6];
|
|
299
|
+
case "PayloadTooLargeException": return [3, 8];
|
|
300
|
+
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException": return [3, 8];
|
|
301
301
|
}
|
|
302
|
-
return [3
|
|
302
|
+
return [3, 10];
|
|
303
303
|
case 2:
|
|
304
304
|
_c = [{}];
|
|
305
|
-
return [4
|
|
305
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
306
306
|
case 3:
|
|
307
307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
308
|
-
return [3
|
|
308
|
+
return [3, 11];
|
|
309
309
|
case 4:
|
|
310
310
|
_d = [{}];
|
|
311
|
-
return [4
|
|
311
|
+
return [4, deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)];
|
|
312
312
|
case 5:
|
|
313
313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
314
|
-
return [3
|
|
314
|
+
return [3, 11];
|
|
315
315
|
case 6:
|
|
316
316
|
_e = [{}];
|
|
317
|
-
return [4
|
|
317
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
318
318
|
case 7:
|
|
319
319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
320
|
-
return [3
|
|
320
|
+
return [3, 11];
|
|
321
321
|
case 8:
|
|
322
322
|
_f = [{}];
|
|
323
|
-
return [4
|
|
323
|
+
return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
|
|
324
324
|
case 9:
|
|
325
325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
326
|
-
return [3
|
|
326
|
+
return [3, 11];
|
|
327
327
|
case 10:
|
|
328
328
|
parsedBody = parsedOutput.body;
|
|
329
329
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -333,7 +333,7 @@ var deserializeAws_restJson1PostToConnectionCommandError = function (output, con
|
|
|
333
333
|
message = response.message || response.Message || errorCode;
|
|
334
334
|
response.message = message;
|
|
335
335
|
delete response.Message;
|
|
336
|
-
return [2
|
|
336
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
}); };
|
|
@@ -346,7 +346,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
346
346
|
$metadata: deserializeMetadata(parsedOutput),
|
|
347
347
|
};
|
|
348
348
|
data = parsedOutput.body;
|
|
349
|
-
return [2
|
|
349
|
+
return [2, contents];
|
|
350
350
|
});
|
|
351
351
|
}); };
|
|
352
352
|
var deserializeAws_restJson1GoneExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -358,7 +358,7 @@ var deserializeAws_restJson1GoneExceptionResponse = function (parsedOutput, cont
|
|
|
358
358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
359
359
|
};
|
|
360
360
|
data = parsedOutput.body;
|
|
361
|
-
return [2
|
|
361
|
+
return [2, contents];
|
|
362
362
|
});
|
|
363
363
|
}); };
|
|
364
364
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -370,7 +370,7 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
370
370
|
$metadata: deserializeMetadata(parsedOutput),
|
|
371
371
|
};
|
|
372
372
|
data = parsedOutput.body;
|
|
373
|
-
return [2
|
|
373
|
+
return [2, contents];
|
|
374
374
|
});
|
|
375
375
|
}); };
|
|
376
376
|
var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -386,7 +386,7 @@ var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedO
|
|
|
386
386
|
if (data.message !== undefined && data.message !== null) {
|
|
387
387
|
contents.Message = __expectString(data.message);
|
|
388
388
|
}
|
|
389
|
-
return [2
|
|
389
|
+
return [2, contents];
|
|
390
390
|
});
|
|
391
391
|
}); };
|
|
392
392
|
var deserializeAws_restJson1Identity = function (output, context) {
|
|
@@ -404,7 +404,6 @@ var deserializeMetadata = function (output) {
|
|
|
404
404
|
cfId: output.headers["x-amz-cf-id"],
|
|
405
405
|
});
|
|
406
406
|
};
|
|
407
|
-
// Collect low-level response body stream to Uint8Array.
|
|
408
407
|
var collectBody = function (streamBody, context) {
|
|
409
408
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
410
409
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -412,7 +411,6 @@ var collectBody = function (streamBody, context) {
|
|
|
412
411
|
}
|
|
413
412
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
414
413
|
};
|
|
415
|
-
// Encode Uint8Array data into string with utf-8.
|
|
416
414
|
var collectBodyString = function (streamBody, context) {
|
|
417
415
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
418
416
|
};
|
|
@@ -431,9 +429,6 @@ var parseBody = function (streamBody, context) {
|
|
|
431
429
|
return {};
|
|
432
430
|
});
|
|
433
431
|
};
|
|
434
|
-
/**
|
|
435
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
436
|
-
*/
|
|
437
432
|
var loadRestJsonErrorCode = function (output, data) {
|
|
438
433
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
439
434
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -458,4 +453,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
458
453
|
}
|
|
459
454
|
return "";
|
|
460
455
|
};
|
|
461
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
9
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
12
|
export var getRuntimeConfig = function (config) {
|
|
16
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
19
16
|
};
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -13,13 +13,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
16
|
export var getRuntimeConfig = function (config) {
|
|
20
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
22
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
23
20
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
24
21
|
};
|
|
25
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
export var getRuntimeConfig = function (config) {
|
|
8
5
|
var _a;
|
|
9
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
7
|
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
11
8
|
};
|
|
12
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
6
3
|
export var getRuntimeConfig = function (config) {
|
|
7
4
|
var _a, _b, _c, _d, _e;
|
|
8
5
|
return ({
|
|
@@ -14,4 +11,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
14
11
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
15
12
|
});
|
|
16
13
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
1
2
|
import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
|
|
2
3
|
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
3
4
|
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
4
5
|
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
|
|
5
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
6
6
|
/**
|
|
7
7
|
* <p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>
|
|
8
8
|
*/
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
2
|
-
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
3
|
-
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
|
|
4
1
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
5
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
6
3
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
@@ -8,7 +5,10 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
8
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
9
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
10
7
|
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
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
12
|
export declare type ServiceInputTypes = DeleteConnectionCommandInput | GetConnectionCommandInput | PostToConnectionCommandInput;
|
|
13
13
|
export declare type ServiceOutputTypes = DeleteConnectionCommandOutput | GetConnectionCommandOutput | PostToConnectionCommandOutput;
|
|
14
14
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
1
3
|
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
2
4
|
import { DeleteConnectionRequest } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
5
|
export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteConnectionCommandOutput extends __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
1
3
|
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
2
4
|
import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
5
|
export interface GetConnectionCommandInput extends GetConnectionRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
1
3
|
import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
|
|
2
4
|
import { PostToConnectionRequest } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
5
|
export interface PostToConnectionCommandInput extends PostToConnectionRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface PostToConnectionCommandOutput extends __MetadataBearer {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
1
3
|
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "../commands/DeleteConnectionCommand";
|
|
2
4
|
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "../commands/GetConnectionCommand";
|
|
3
5
|
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "../commands/PostToConnectionCommand";
|
|
4
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
6
6
|
export declare const serializeAws_restJson1DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const serializeAws_restJson1GetConnectionCommand: (input: GetConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
8
|
export declare const serializeAws_restJson1PostToConnectionCommand: (input: PostToConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
-
import { ApiGatewayManagementApiClientConfig } from "./ApiGatewayManagementApiClient";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientConfig) => {
|
|
7
|
-
runtime: string;
|
|
8
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
-
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
|
-
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
-
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
|
|
16
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
-
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
-
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
-
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
-
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
-
apiVersion: string;
|
|
22
|
-
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
-
disableHostPrefix: boolean;
|
|
24
|
-
logger: import("@aws-sdk/types").Logger;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
-
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
-
tls?: boolean | undefined;
|
|
29
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
-
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
-
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
-
signingEscapePath?: boolean | undefined;
|
|
33
|
-
systemClockOffset?: number | undefined;
|
|
34
|
-
signingRegion?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { ApiGatewayManagementApiClientConfig } from "./ApiGatewayManagementApiClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
|
|
16
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
39
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
40
|
+
};
|