@aws-sdk/client-apigatewaymanagementapi 3.928.0 → 3.929.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 +211 -193
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ApiGatewayManagementApiClient.js +2 -0
- package/dist-es/commands/DeleteConnectionCommand.js +3 -9
- package/dist-es/commands/GetConnectionCommand.js +3 -9
- package/dist-es/commands/PostToConnectionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +191 -0
- package/dist-types/ApiGatewayManagementApiClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/ApiGatewayManagementApiClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -161
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -29
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -41
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class ApiGatewayManagementApiClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class ApiGatewayManagementApiClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class ApiGatewayManagementApiServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let ApiGatewayManagementApiServiceException$1 = class ApiGatewayManagementApiServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, ApiGatewayManagementApiServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class ForbiddenException extends ApiGatewayManagementApiServiceException {
|
|
120
|
+
let ForbiddenException$1 = class ForbiddenException extends ApiGatewayManagementApiServiceException$1 {
|
|
121
121
|
name = "ForbiddenException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ class ForbiddenException extends ApiGatewayManagementApiServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
class GoneException extends ApiGatewayManagementApiServiceException {
|
|
131
|
+
};
|
|
132
|
+
let GoneException$1 = class GoneException extends ApiGatewayManagementApiServiceException$1 {
|
|
133
133
|
name = "GoneException";
|
|
134
134
|
$fault = "client";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,8 +140,8 @@ class GoneException extends ApiGatewayManagementApiServiceException {
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, GoneException.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
class LimitExceededException extends ApiGatewayManagementApiServiceException {
|
|
143
|
+
};
|
|
144
|
+
let LimitExceededException$1 = class LimitExceededException extends ApiGatewayManagementApiServiceException$1 {
|
|
145
145
|
name = "LimitExceededException";
|
|
146
146
|
$fault = "client";
|
|
147
147
|
constructor(opts) {
|
|
@@ -152,8 +152,8 @@ class LimitExceededException extends ApiGatewayManagementApiServiceException {
|
|
|
152
152
|
});
|
|
153
153
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
class PayloadTooLargeException extends ApiGatewayManagementApiServiceException {
|
|
155
|
+
};
|
|
156
|
+
let PayloadTooLargeException$1 = class PayloadTooLargeException extends ApiGatewayManagementApiServiceException$1 {
|
|
157
157
|
name = "PayloadTooLargeException";
|
|
158
158
|
$fault = "client";
|
|
159
159
|
Message;
|
|
@@ -166,178 +166,206 @@ class PayloadTooLargeException extends ApiGatewayManagementApiServiceException {
|
|
|
166
166
|
Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
|
|
167
167
|
this.Message = opts.Message;
|
|
168
168
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const se_DeleteConnectionCommand = async (input, context) => {
|
|
172
|
-
const b = core.requestBuilder(input, context);
|
|
173
|
-
const headers = {};
|
|
174
|
-
b.bp("/@connections/{ConnectionId}");
|
|
175
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
176
|
-
let body;
|
|
177
|
-
b.m("DELETE").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
const se_GetConnectionCommand = async (input, context) => {
|
|
181
|
-
const b = core.requestBuilder(input, context);
|
|
182
|
-
const headers = {};
|
|
183
|
-
b.bp("/@connections/{ConnectionId}");
|
|
184
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
185
|
-
let body;
|
|
186
|
-
b.m("GET").h(headers).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
const se_PostToConnectionCommand = async (input, context) => {
|
|
190
|
-
const b = core.requestBuilder(input, context);
|
|
191
|
-
const headers = {
|
|
192
|
-
"content-type": "application/octet-stream",
|
|
193
|
-
};
|
|
194
|
-
b.bp("/@connections/{ConnectionId}");
|
|
195
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
196
|
-
let body;
|
|
197
|
-
if (input.Data !== undefined) {
|
|
198
|
-
body = input.Data;
|
|
199
|
-
}
|
|
200
|
-
b.m("POST").h(headers).b(body);
|
|
201
|
-
return b.build();
|
|
202
|
-
};
|
|
203
|
-
const de_DeleteConnectionCommand = async (output, context) => {
|
|
204
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
205
|
-
return de_CommandError(output, context);
|
|
206
|
-
}
|
|
207
|
-
const contents = smithyClient.map({
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
});
|
|
210
|
-
await smithyClient.collectBody(output.body, context);
|
|
211
|
-
return contents;
|
|
212
|
-
};
|
|
213
|
-
const de_GetConnectionCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
-
return de_CommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const contents = smithyClient.map({
|
|
218
|
-
$metadata: deserializeMetadata(output),
|
|
219
|
-
});
|
|
220
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
221
|
-
const doc = smithyClient.take(data, {
|
|
222
|
-
ConnectedAt: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `connectedAt`],
|
|
223
|
-
Identity: [, (_) => de_Identity(_), `identity`],
|
|
224
|
-
LastActiveAt: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `lastActiveAt`],
|
|
225
|
-
});
|
|
226
|
-
Object.assign(contents, doc);
|
|
227
|
-
return contents;
|
|
228
|
-
};
|
|
229
|
-
const de_PostToConnectionCommand = async (output, context) => {
|
|
230
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
-
return de_CommandError(output, context);
|
|
232
|
-
}
|
|
233
|
-
const contents = smithyClient.map({
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
});
|
|
236
|
-
await smithyClient.collectBody(output.body, context);
|
|
237
|
-
return contents;
|
|
238
|
-
};
|
|
239
|
-
const de_CommandError = async (output, context) => {
|
|
240
|
-
const parsedOutput = {
|
|
241
|
-
...output,
|
|
242
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
243
|
-
};
|
|
244
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
|
-
switch (errorCode) {
|
|
246
|
-
case "ForbiddenException":
|
|
247
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
248
|
-
throw await de_ForbiddenExceptionRes(parsedOutput);
|
|
249
|
-
case "GoneException":
|
|
250
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
251
|
-
throw await de_GoneExceptionRes(parsedOutput);
|
|
252
|
-
case "LimitExceededException":
|
|
253
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
254
|
-
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
255
|
-
case "PayloadTooLargeException":
|
|
256
|
-
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException":
|
|
257
|
-
throw await de_PayloadTooLargeExceptionRes(parsedOutput);
|
|
258
|
-
default:
|
|
259
|
-
const parsedBody = parsedOutput.body;
|
|
260
|
-
return throwDefaultError({
|
|
261
|
-
output,
|
|
262
|
-
parsedBody,
|
|
263
|
-
errorCode,
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
const throwDefaultError = smithyClient.withBaseException(ApiGatewayManagementApiServiceException);
|
|
268
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
269
|
-
const contents = smithyClient.map({});
|
|
270
|
-
const data = parsedOutput.body;
|
|
271
|
-
const doc = smithyClient.take(data, {});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
const exception = new ForbiddenException({
|
|
274
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
275
|
-
...contents,
|
|
276
|
-
});
|
|
277
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
278
|
-
};
|
|
279
|
-
const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
280
|
-
const contents = smithyClient.map({});
|
|
281
|
-
const data = parsedOutput.body;
|
|
282
|
-
const doc = smithyClient.take(data, {});
|
|
283
|
-
Object.assign(contents, doc);
|
|
284
|
-
const exception = new GoneException({
|
|
285
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
286
|
-
...contents,
|
|
287
|
-
});
|
|
288
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
289
|
-
};
|
|
290
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
291
|
-
const contents = smithyClient.map({});
|
|
292
|
-
const data = parsedOutput.body;
|
|
293
|
-
const doc = smithyClient.take(data, {});
|
|
294
|
-
Object.assign(contents, doc);
|
|
295
|
-
const exception = new LimitExceededException({
|
|
296
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
297
|
-
...contents,
|
|
298
|
-
});
|
|
299
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
300
|
-
};
|
|
301
|
-
const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
302
|
-
const contents = smithyClient.map({});
|
|
303
|
-
const data = parsedOutput.body;
|
|
304
|
-
const doc = smithyClient.take(data, {
|
|
305
|
-
Message: [, smithyClient.expectString, `message`],
|
|
306
|
-
});
|
|
307
|
-
Object.assign(contents, doc);
|
|
308
|
-
const exception = new PayloadTooLargeException({
|
|
309
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
310
|
-
...contents,
|
|
311
|
-
});
|
|
312
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
313
|
-
};
|
|
314
|
-
const de_Identity = (output, context) => {
|
|
315
|
-
return smithyClient.take(output, {
|
|
316
|
-
SourceIp: [, smithyClient.expectString, `sourceIp`],
|
|
317
|
-
UserAgent: [, smithyClient.expectString, `userAgent`],
|
|
318
|
-
});
|
|
319
169
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
170
|
+
|
|
171
|
+
const _CA = "ConnectedAt";
|
|
172
|
+
const _CI = "ConnectionId";
|
|
173
|
+
const _D = "Data";
|
|
174
|
+
const _DC = "DeleteConnection";
|
|
175
|
+
const _DCR = "DeleteConnectionRequest";
|
|
176
|
+
const _FE = "ForbiddenException";
|
|
177
|
+
const _GC = "GetConnection";
|
|
178
|
+
const _GCR = "GetConnectionRequest";
|
|
179
|
+
const _GCRe = "GetConnectionResponse";
|
|
180
|
+
const _GE = "GoneException";
|
|
181
|
+
const _I = "Identity";
|
|
182
|
+
const _LAA = "LastActiveAt";
|
|
183
|
+
const _LEE = "LimitExceededException";
|
|
184
|
+
const _M = "Message";
|
|
185
|
+
const _PTC = "PostToConnection";
|
|
186
|
+
const _PTCR = "PostToConnectionRequest";
|
|
187
|
+
const _PTLE = "PayloadTooLargeException";
|
|
188
|
+
const _SI = "SourceIp";
|
|
189
|
+
const _UA = "UserAgent";
|
|
190
|
+
const _c = "client";
|
|
191
|
+
const _cA = "connectedAt";
|
|
192
|
+
const _e = "error";
|
|
193
|
+
const _h = "http";
|
|
194
|
+
const _hE = "httpError";
|
|
195
|
+
const _i = "identity";
|
|
196
|
+
const _jN = "jsonName";
|
|
197
|
+
const _lAA = "lastActiveAt";
|
|
198
|
+
const _m = "message";
|
|
199
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.apigatewaymanagementapi";
|
|
200
|
+
const _sI = "sourceIp";
|
|
201
|
+
const _uA = "userAgent";
|
|
202
|
+
const n0 = "com.amazonaws.apigatewaymanagementapi";
|
|
203
|
+
var DeleteConnectionRequest = [3, n0, _DCR, 0, [_CI], [[0, 1]]];
|
|
204
|
+
var ForbiddenException = [
|
|
205
|
+
-3,
|
|
206
|
+
n0,
|
|
207
|
+
_FE,
|
|
208
|
+
{
|
|
209
|
+
[_e]: _c,
|
|
210
|
+
[_hE]: 403,
|
|
211
|
+
},
|
|
212
|
+
[],
|
|
213
|
+
[],
|
|
214
|
+
];
|
|
215
|
+
schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
|
|
216
|
+
var GetConnectionRequest = [3, n0, _GCR, 0, [_CI], [[0, 1]]];
|
|
217
|
+
var GetConnectionResponse = [
|
|
218
|
+
3,
|
|
219
|
+
n0,
|
|
220
|
+
_GCRe,
|
|
221
|
+
0,
|
|
222
|
+
[_CA, _I, _LAA],
|
|
223
|
+
[
|
|
224
|
+
[
|
|
225
|
+
5,
|
|
226
|
+
{
|
|
227
|
+
[_jN]: _cA,
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
[
|
|
231
|
+
() => Identity,
|
|
232
|
+
{
|
|
233
|
+
[_jN]: _i,
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
[
|
|
237
|
+
5,
|
|
238
|
+
{
|
|
239
|
+
[_jN]: _lAA,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
],
|
|
243
|
+
];
|
|
244
|
+
var GoneException = [
|
|
245
|
+
-3,
|
|
246
|
+
n0,
|
|
247
|
+
_GE,
|
|
248
|
+
{
|
|
249
|
+
[_e]: _c,
|
|
250
|
+
[_hE]: 410,
|
|
251
|
+
},
|
|
252
|
+
[],
|
|
253
|
+
[],
|
|
254
|
+
];
|
|
255
|
+
schema.TypeRegistry.for(n0).registerError(GoneException, GoneException$1);
|
|
256
|
+
var Identity = [
|
|
257
|
+
3,
|
|
258
|
+
n0,
|
|
259
|
+
_I,
|
|
260
|
+
0,
|
|
261
|
+
[_SI, _UA],
|
|
262
|
+
[
|
|
263
|
+
[
|
|
264
|
+
0,
|
|
265
|
+
{
|
|
266
|
+
[_jN]: _sI,
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
0,
|
|
271
|
+
{
|
|
272
|
+
[_jN]: _uA,
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
],
|
|
276
|
+
];
|
|
277
|
+
var LimitExceededException = [
|
|
278
|
+
-3,
|
|
279
|
+
n0,
|
|
280
|
+
_LEE,
|
|
281
|
+
{
|
|
282
|
+
[_e]: _c,
|
|
283
|
+
[_hE]: 429,
|
|
284
|
+
},
|
|
285
|
+
[],
|
|
286
|
+
[],
|
|
287
|
+
];
|
|
288
|
+
schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
|
|
289
|
+
var PayloadTooLargeException = [
|
|
290
|
+
-3,
|
|
291
|
+
n0,
|
|
292
|
+
_PTLE,
|
|
293
|
+
{
|
|
294
|
+
[_e]: _c,
|
|
295
|
+
[_hE]: 413,
|
|
296
|
+
},
|
|
297
|
+
[_M],
|
|
298
|
+
[
|
|
299
|
+
[
|
|
300
|
+
0,
|
|
301
|
+
{
|
|
302
|
+
[_jN]: _m,
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
],
|
|
306
|
+
];
|
|
307
|
+
schema.TypeRegistry.for(n0).registerError(PayloadTooLargeException, PayloadTooLargeException$1);
|
|
308
|
+
var PostToConnectionRequest = [
|
|
309
|
+
3,
|
|
310
|
+
n0,
|
|
311
|
+
_PTCR,
|
|
312
|
+
0,
|
|
313
|
+
[_D, _CI],
|
|
314
|
+
[
|
|
315
|
+
[21, 16],
|
|
316
|
+
[0, 1],
|
|
317
|
+
],
|
|
318
|
+
];
|
|
319
|
+
var __Unit = "unit";
|
|
320
|
+
var ApiGatewayManagementApiServiceException = [
|
|
321
|
+
-3,
|
|
322
|
+
_s,
|
|
323
|
+
"ApiGatewayManagementApiServiceException",
|
|
324
|
+
0,
|
|
325
|
+
[],
|
|
326
|
+
[],
|
|
327
|
+
];
|
|
328
|
+
schema.TypeRegistry.for(_s).registerError(ApiGatewayManagementApiServiceException, ApiGatewayManagementApiServiceException$1);
|
|
329
|
+
var DeleteConnection = [
|
|
330
|
+
9,
|
|
331
|
+
n0,
|
|
332
|
+
_DC,
|
|
333
|
+
{
|
|
334
|
+
[_h]: ["DELETE", "/@connections/{ConnectionId}", 204],
|
|
335
|
+
},
|
|
336
|
+
() => DeleteConnectionRequest,
|
|
337
|
+
() => __Unit,
|
|
338
|
+
];
|
|
339
|
+
var GetConnection = [
|
|
340
|
+
9,
|
|
341
|
+
n0,
|
|
342
|
+
_GC,
|
|
343
|
+
{
|
|
344
|
+
[_h]: ["GET", "/@connections/{ConnectionId}", 200],
|
|
345
|
+
},
|
|
346
|
+
() => GetConnectionRequest,
|
|
347
|
+
() => GetConnectionResponse,
|
|
348
|
+
];
|
|
349
|
+
var PostToConnection = [
|
|
350
|
+
9,
|
|
351
|
+
n0,
|
|
352
|
+
_PTC,
|
|
353
|
+
{
|
|
354
|
+
[_h]: ["POST", "/@connections/{ConnectionId}", 200],
|
|
355
|
+
},
|
|
356
|
+
() => PostToConnectionRequest,
|
|
357
|
+
() => __Unit,
|
|
358
|
+
];
|
|
326
359
|
|
|
327
360
|
class DeleteConnectionCommand extends smithyClient.Command
|
|
328
361
|
.classBuilder()
|
|
329
362
|
.ep(commonParams)
|
|
330
363
|
.m(function (Command, cs, config, o) {
|
|
331
|
-
return [
|
|
332
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
333
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
334
|
-
];
|
|
364
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
335
365
|
})
|
|
336
366
|
.s("ApiGatewayManagementApi", "DeleteConnection", {})
|
|
337
367
|
.n("ApiGatewayManagementApiClient", "DeleteConnectionCommand")
|
|
338
|
-
.
|
|
339
|
-
.ser(se_DeleteConnectionCommand)
|
|
340
|
-
.de(de_DeleteConnectionCommand)
|
|
368
|
+
.sc(DeleteConnection)
|
|
341
369
|
.build() {
|
|
342
370
|
}
|
|
343
371
|
|
|
@@ -345,16 +373,11 @@ class GetConnectionCommand extends smithyClient.Command
|
|
|
345
373
|
.classBuilder()
|
|
346
374
|
.ep(commonParams)
|
|
347
375
|
.m(function (Command, cs, config, o) {
|
|
348
|
-
return [
|
|
349
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
350
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
351
|
-
];
|
|
376
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
352
377
|
})
|
|
353
378
|
.s("ApiGatewayManagementApi", "GetConnection", {})
|
|
354
379
|
.n("ApiGatewayManagementApiClient", "GetConnectionCommand")
|
|
355
|
-
.
|
|
356
|
-
.ser(se_GetConnectionCommand)
|
|
357
|
-
.de(de_GetConnectionCommand)
|
|
380
|
+
.sc(GetConnection)
|
|
358
381
|
.build() {
|
|
359
382
|
}
|
|
360
383
|
|
|
@@ -362,16 +385,11 @@ class PostToConnectionCommand extends smithyClient.Command
|
|
|
362
385
|
.classBuilder()
|
|
363
386
|
.ep(commonParams)
|
|
364
387
|
.m(function (Command, cs, config, o) {
|
|
365
|
-
return [
|
|
366
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
367
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
368
|
-
];
|
|
388
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
369
389
|
})
|
|
370
390
|
.s("ApiGatewayManagementApi", "PostToConnection", {})
|
|
371
391
|
.n("ApiGatewayManagementApiClient", "PostToConnectionCommand")
|
|
372
|
-
.
|
|
373
|
-
.ser(se_PostToConnectionCommand)
|
|
374
|
-
.de(de_PostToConnectionCommand)
|
|
392
|
+
.sc(PostToConnection)
|
|
375
393
|
.build() {
|
|
376
394
|
}
|
|
377
395
|
|
|
@@ -394,11 +412,11 @@ Object.defineProperty(exports, "__Client", {
|
|
|
394
412
|
});
|
|
395
413
|
exports.ApiGatewayManagementApi = ApiGatewayManagementApi;
|
|
396
414
|
exports.ApiGatewayManagementApiClient = ApiGatewayManagementApiClient;
|
|
397
|
-
exports.ApiGatewayManagementApiServiceException = ApiGatewayManagementApiServiceException;
|
|
415
|
+
exports.ApiGatewayManagementApiServiceException = ApiGatewayManagementApiServiceException$1;
|
|
398
416
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
399
|
-
exports.ForbiddenException = ForbiddenException;
|
|
417
|
+
exports.ForbiddenException = ForbiddenException$1;
|
|
400
418
|
exports.GetConnectionCommand = GetConnectionCommand;
|
|
401
|
-
exports.GoneException = GoneException;
|
|
402
|
-
exports.LimitExceededException = LimitExceededException;
|
|
403
|
-
exports.PayloadTooLargeException = PayloadTooLargeException;
|
|
419
|
+
exports.GoneException = GoneException$1;
|
|
420
|
+
exports.LimitExceededException = LimitExceededException$1;
|
|
421
|
+
exports.PayloadTooLargeException = PayloadTooLargeException$1;
|
|
404
422
|
exports.PostToConnectionCommand = PostToConnectionCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.apigatewaymanagementapi" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "ApiGatewayManagementApi",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class ApiGatewayManagementApiClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DeleteConnection } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DeleteConnectionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ApiGatewayManagementApi", "DeleteConnection", {})
|
|
17
13
|
.n("ApiGatewayManagementApiClient", "DeleteConnectionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DeleteConnectionCommand)
|
|
20
|
-
.de(de_DeleteConnectionCommand)
|
|
14
|
+
.sc(DeleteConnection)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetConnection } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetConnectionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ApiGatewayManagementApi", "GetConnection", {})
|
|
17
13
|
.n("ApiGatewayManagementApiClient", "GetConnectionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetConnectionCommand)
|
|
20
|
-
.de(de_GetConnectionCommand)
|
|
14
|
+
.sc(GetConnection)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PostToConnection } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PostToConnectionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ApiGatewayManagementApi", "PostToConnection", {})
|
|
17
13
|
.n("ApiGatewayManagementApiClient", "PostToConnectionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PostToConnectionCommand)
|
|
20
|
-
.de(de_PostToConnectionCommand)
|
|
14
|
+
.sc(PostToConnection)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.apigatewaymanagementapi" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "ApiGatewayManagementApi",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
const _CA = "ConnectedAt";
|
|
2
|
+
const _CI = "ConnectionId";
|
|
3
|
+
const _D = "Data";
|
|
4
|
+
const _DC = "DeleteConnection";
|
|
5
|
+
const _DCR = "DeleteConnectionRequest";
|
|
6
|
+
const _FE = "ForbiddenException";
|
|
7
|
+
const _GC = "GetConnection";
|
|
8
|
+
const _GCR = "GetConnectionRequest";
|
|
9
|
+
const _GCRe = "GetConnectionResponse";
|
|
10
|
+
const _GE = "GoneException";
|
|
11
|
+
const _I = "Identity";
|
|
12
|
+
const _LAA = "LastActiveAt";
|
|
13
|
+
const _LEE = "LimitExceededException";
|
|
14
|
+
const _M = "Message";
|
|
15
|
+
const _PTC = "PostToConnection";
|
|
16
|
+
const _PTCR = "PostToConnectionRequest";
|
|
17
|
+
const _PTLE = "PayloadTooLargeException";
|
|
18
|
+
const _SI = "SourceIp";
|
|
19
|
+
const _UA = "UserAgent";
|
|
20
|
+
const _c = "client";
|
|
21
|
+
const _cA = "connectedAt";
|
|
22
|
+
const _e = "error";
|
|
23
|
+
const _h = "http";
|
|
24
|
+
const _hE = "httpError";
|
|
25
|
+
const _i = "identity";
|
|
26
|
+
const _jN = "jsonName";
|
|
27
|
+
const _lAA = "lastActiveAt";
|
|
28
|
+
const _m = "message";
|
|
29
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.apigatewaymanagementapi";
|
|
30
|
+
const _sI = "sourceIp";
|
|
31
|
+
const _uA = "userAgent";
|
|
32
|
+
const n0 = "com.amazonaws.apigatewaymanagementapi";
|
|
33
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
34
|
+
import { ApiGatewayManagementApiServiceException as __ApiGatewayManagementApiServiceException } from "../models/ApiGatewayManagementApiServiceException";
|
|
35
|
+
import { ForbiddenException as __ForbiddenException, GoneException as __GoneException, LimitExceededException as __LimitExceededException, PayloadTooLargeException as __PayloadTooLargeException, } from "../models/index";
|
|
36
|
+
export var DeleteConnectionRequest = [3, n0, _DCR, 0, [_CI], [[0, 1]]];
|
|
37
|
+
export var ForbiddenException = [
|
|
38
|
+
-3,
|
|
39
|
+
n0,
|
|
40
|
+
_FE,
|
|
41
|
+
{
|
|
42
|
+
[_e]: _c,
|
|
43
|
+
[_hE]: 403,
|
|
44
|
+
},
|
|
45
|
+
[],
|
|
46
|
+
[],
|
|
47
|
+
];
|
|
48
|
+
TypeRegistry.for(n0).registerError(ForbiddenException, __ForbiddenException);
|
|
49
|
+
export var GetConnectionRequest = [3, n0, _GCR, 0, [_CI], [[0, 1]]];
|
|
50
|
+
export var GetConnectionResponse = [
|
|
51
|
+
3,
|
|
52
|
+
n0,
|
|
53
|
+
_GCRe,
|
|
54
|
+
0,
|
|
55
|
+
[_CA, _I, _LAA],
|
|
56
|
+
[
|
|
57
|
+
[
|
|
58
|
+
5,
|
|
59
|
+
{
|
|
60
|
+
[_jN]: _cA,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
() => Identity,
|
|
65
|
+
{
|
|
66
|
+
[_jN]: _i,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
[
|
|
70
|
+
5,
|
|
71
|
+
{
|
|
72
|
+
[_jN]: _lAA,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
],
|
|
76
|
+
];
|
|
77
|
+
export var GoneException = [
|
|
78
|
+
-3,
|
|
79
|
+
n0,
|
|
80
|
+
_GE,
|
|
81
|
+
{
|
|
82
|
+
[_e]: _c,
|
|
83
|
+
[_hE]: 410,
|
|
84
|
+
},
|
|
85
|
+
[],
|
|
86
|
+
[],
|
|
87
|
+
];
|
|
88
|
+
TypeRegistry.for(n0).registerError(GoneException, __GoneException);
|
|
89
|
+
export var Identity = [
|
|
90
|
+
3,
|
|
91
|
+
n0,
|
|
92
|
+
_I,
|
|
93
|
+
0,
|
|
94
|
+
[_SI, _UA],
|
|
95
|
+
[
|
|
96
|
+
[
|
|
97
|
+
0,
|
|
98
|
+
{
|
|
99
|
+
[_jN]: _sI,
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
[
|
|
103
|
+
0,
|
|
104
|
+
{
|
|
105
|
+
[_jN]: _uA,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
],
|
|
109
|
+
];
|
|
110
|
+
export var LimitExceededException = [
|
|
111
|
+
-3,
|
|
112
|
+
n0,
|
|
113
|
+
_LEE,
|
|
114
|
+
{
|
|
115
|
+
[_e]: _c,
|
|
116
|
+
[_hE]: 429,
|
|
117
|
+
},
|
|
118
|
+
[],
|
|
119
|
+
[],
|
|
120
|
+
];
|
|
121
|
+
TypeRegistry.for(n0).registerError(LimitExceededException, __LimitExceededException);
|
|
122
|
+
export var PayloadTooLargeException = [
|
|
123
|
+
-3,
|
|
124
|
+
n0,
|
|
125
|
+
_PTLE,
|
|
126
|
+
{
|
|
127
|
+
[_e]: _c,
|
|
128
|
+
[_hE]: 413,
|
|
129
|
+
},
|
|
130
|
+
[_M],
|
|
131
|
+
[
|
|
132
|
+
[
|
|
133
|
+
0,
|
|
134
|
+
{
|
|
135
|
+
[_jN]: _m,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
],
|
|
139
|
+
];
|
|
140
|
+
TypeRegistry.for(n0).registerError(PayloadTooLargeException, __PayloadTooLargeException);
|
|
141
|
+
export var PostToConnectionRequest = [
|
|
142
|
+
3,
|
|
143
|
+
n0,
|
|
144
|
+
_PTCR,
|
|
145
|
+
0,
|
|
146
|
+
[_D, _CI],
|
|
147
|
+
[
|
|
148
|
+
[21, 16],
|
|
149
|
+
[0, 1],
|
|
150
|
+
],
|
|
151
|
+
];
|
|
152
|
+
export var __Unit = "unit";
|
|
153
|
+
export var ApiGatewayManagementApiServiceException = [
|
|
154
|
+
-3,
|
|
155
|
+
_s,
|
|
156
|
+
"ApiGatewayManagementApiServiceException",
|
|
157
|
+
0,
|
|
158
|
+
[],
|
|
159
|
+
[],
|
|
160
|
+
];
|
|
161
|
+
TypeRegistry.for(_s).registerError(ApiGatewayManagementApiServiceException, __ApiGatewayManagementApiServiceException);
|
|
162
|
+
export var DeleteConnection = [
|
|
163
|
+
9,
|
|
164
|
+
n0,
|
|
165
|
+
_DC,
|
|
166
|
+
{
|
|
167
|
+
[_h]: ["DELETE", "/@connections/{ConnectionId}", 204],
|
|
168
|
+
},
|
|
169
|
+
() => DeleteConnectionRequest,
|
|
170
|
+
() => __Unit,
|
|
171
|
+
];
|
|
172
|
+
export var GetConnection = [
|
|
173
|
+
9,
|
|
174
|
+
n0,
|
|
175
|
+
_GC,
|
|
176
|
+
{
|
|
177
|
+
[_h]: ["GET", "/@connections/{ConnectionId}", 200],
|
|
178
|
+
},
|
|
179
|
+
() => GetConnectionRequest,
|
|
180
|
+
() => GetConnectionResponse,
|
|
181
|
+
];
|
|
182
|
+
export var PostToConnection = [
|
|
183
|
+
9,
|
|
184
|
+
n0,
|
|
185
|
+
_PTC,
|
|
186
|
+
{
|
|
187
|
+
[_h]: ["POST", "/@connections/{ConnectionId}", 200],
|
|
188
|
+
},
|
|
189
|
+
() => PostToConnectionRequest,
|
|
190
|
+
() => __Unit,
|
|
191
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
11
11
|
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
@@ -144,6 +144,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
144
144
|
* Optional extensions
|
|
145
145
|
*/
|
|
146
146
|
extensions?: RuntimeExtension[];
|
|
147
|
+
/**
|
|
148
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
149
|
+
* may be overridden. A default will always be set by the client.
|
|
150
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
151
|
+
* the client.
|
|
152
|
+
* @alpha
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
147
156
|
/**
|
|
148
157
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
149
158
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientCon
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientCon
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientCon
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: ApiGatewayManagementApiClientCon
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ApiGatewayManagementApiHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var DeleteConnectionRequest: StaticStructureSchema;
|
|
3
|
+
export declare var ForbiddenException: StaticErrorSchema;
|
|
4
|
+
export declare var GetConnectionRequest: StaticStructureSchema;
|
|
5
|
+
export declare var GetConnectionResponse: StaticStructureSchema;
|
|
6
|
+
export declare var GoneException: StaticErrorSchema;
|
|
7
|
+
export declare var Identity: StaticStructureSchema;
|
|
8
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
9
|
+
export declare var PayloadTooLargeException: StaticErrorSchema;
|
|
10
|
+
export declare var PostToConnectionRequest: StaticStructureSchema;
|
|
11
|
+
export declare var __Unit: "unit";
|
|
12
|
+
export declare var ApiGatewayManagementApiServiceException: StaticErrorSchema;
|
|
13
|
+
export declare var DeleteConnection: StaticOperationSchema;
|
|
14
|
+
export declare var GetConnection: StaticOperationSchema;
|
|
15
|
+
export declare var PostToConnection: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -96,6 +99,7 @@ export interface ClientDefaults
|
|
|
96
99
|
retryMode?: string | __Provider<string>;
|
|
97
100
|
logger?: __Logger;
|
|
98
101
|
extensions?: RuntimeExtension[];
|
|
102
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
99
103
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
100
104
|
}
|
|
101
105
|
export type ApiGatewayManagementApiClientConfigType = Partial<
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
userAgentAppId?:
|
|
45
49
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ApiGatewayManagementApiHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticOperationSchema,
|
|
4
|
+
StaticStructureSchema,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
export declare var DeleteConnectionRequest: StaticStructureSchema;
|
|
7
|
+
export declare var ForbiddenException: StaticErrorSchema;
|
|
8
|
+
export declare var GetConnectionRequest: StaticStructureSchema;
|
|
9
|
+
export declare var GetConnectionResponse: StaticStructureSchema;
|
|
10
|
+
export declare var GoneException: StaticErrorSchema;
|
|
11
|
+
export declare var Identity: StaticStructureSchema;
|
|
12
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
13
|
+
export declare var PayloadTooLargeException: StaticErrorSchema;
|
|
14
|
+
export declare var PostToConnectionRequest: StaticStructureSchema;
|
|
15
|
+
export declare var __Unit: "unit";
|
|
16
|
+
export declare var ApiGatewayManagementApiServiceException: StaticErrorSchema;
|
|
17
|
+
export declare var DeleteConnection: StaticOperationSchema;
|
|
18
|
+
export declare var GetConnection: StaticOperationSchema;
|
|
19
|
+
export declare var PostToConnection: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-apigatewaymanagementapi",
|
|
3
3
|
"description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-apigatewaymanagementapi",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ApiGatewayManagementApiServiceException as __BaseException } from "../models/ApiGatewayManagementApiServiceException";
|
|
5
|
-
import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException, } from "../models/models_0";
|
|
6
|
-
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/@connections/{ConnectionId}");
|
|
10
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
11
|
-
let body;
|
|
12
|
-
b.m("DELETE").h(headers).b(body);
|
|
13
|
-
return b.build();
|
|
14
|
-
};
|
|
15
|
-
export const se_GetConnectionCommand = async (input, context) => {
|
|
16
|
-
const b = rb(input, context);
|
|
17
|
-
const headers = {};
|
|
18
|
-
b.bp("/@connections/{ConnectionId}");
|
|
19
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
20
|
-
let body;
|
|
21
|
-
b.m("GET").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
export const se_PostToConnectionCommand = async (input, context) => {
|
|
25
|
-
const b = rb(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/octet-stream",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/@connections/{ConnectionId}");
|
|
30
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
31
|
-
let body;
|
|
32
|
-
if (input.Data !== undefined) {
|
|
33
|
-
body = input.Data;
|
|
34
|
-
}
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
39
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
40
|
-
return de_CommandError(output, context);
|
|
41
|
-
}
|
|
42
|
-
const contents = map({
|
|
43
|
-
$metadata: deserializeMetadata(output),
|
|
44
|
-
});
|
|
45
|
-
await collectBody(output.body, context);
|
|
46
|
-
return contents;
|
|
47
|
-
};
|
|
48
|
-
export const de_GetConnectionCommand = async (output, context) => {
|
|
49
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
50
|
-
return de_CommandError(output, context);
|
|
51
|
-
}
|
|
52
|
-
const contents = map({
|
|
53
|
-
$metadata: deserializeMetadata(output),
|
|
54
|
-
});
|
|
55
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
56
|
-
const doc = take(data, {
|
|
57
|
-
ConnectedAt: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `connectedAt`],
|
|
58
|
-
Identity: [, (_) => de_Identity(_, context), `identity`],
|
|
59
|
-
LastActiveAt: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastActiveAt`],
|
|
60
|
-
});
|
|
61
|
-
Object.assign(contents, doc);
|
|
62
|
-
return contents;
|
|
63
|
-
};
|
|
64
|
-
export const de_PostToConnectionCommand = async (output, context) => {
|
|
65
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
66
|
-
return de_CommandError(output, context);
|
|
67
|
-
}
|
|
68
|
-
const contents = map({
|
|
69
|
-
$metadata: deserializeMetadata(output),
|
|
70
|
-
});
|
|
71
|
-
await collectBody(output.body, context);
|
|
72
|
-
return contents;
|
|
73
|
-
};
|
|
74
|
-
const de_CommandError = async (output, context) => {
|
|
75
|
-
const parsedOutput = {
|
|
76
|
-
...output,
|
|
77
|
-
body: await parseErrorBody(output.body, context),
|
|
78
|
-
};
|
|
79
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
80
|
-
switch (errorCode) {
|
|
81
|
-
case "ForbiddenException":
|
|
82
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
83
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
84
|
-
case "GoneException":
|
|
85
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
86
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
87
|
-
case "LimitExceededException":
|
|
88
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
89
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
90
|
-
case "PayloadTooLargeException":
|
|
91
|
-
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException":
|
|
92
|
-
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
93
|
-
default:
|
|
94
|
-
const parsedBody = parsedOutput.body;
|
|
95
|
-
return throwDefaultError({
|
|
96
|
-
output,
|
|
97
|
-
parsedBody,
|
|
98
|
-
errorCode,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
103
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
104
|
-
const contents = map({});
|
|
105
|
-
const data = parsedOutput.body;
|
|
106
|
-
const doc = take(data, {});
|
|
107
|
-
Object.assign(contents, doc);
|
|
108
|
-
const exception = new ForbiddenException({
|
|
109
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
110
|
-
...contents,
|
|
111
|
-
});
|
|
112
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
113
|
-
};
|
|
114
|
-
const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
115
|
-
const contents = map({});
|
|
116
|
-
const data = parsedOutput.body;
|
|
117
|
-
const doc = take(data, {});
|
|
118
|
-
Object.assign(contents, doc);
|
|
119
|
-
const exception = new GoneException({
|
|
120
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
121
|
-
...contents,
|
|
122
|
-
});
|
|
123
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
124
|
-
};
|
|
125
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
126
|
-
const contents = map({});
|
|
127
|
-
const data = parsedOutput.body;
|
|
128
|
-
const doc = take(data, {});
|
|
129
|
-
Object.assign(contents, doc);
|
|
130
|
-
const exception = new LimitExceededException({
|
|
131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
132
|
-
...contents,
|
|
133
|
-
});
|
|
134
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
135
|
-
};
|
|
136
|
-
const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
137
|
-
const contents = map({});
|
|
138
|
-
const data = parsedOutput.body;
|
|
139
|
-
const doc = take(data, {
|
|
140
|
-
Message: [, __expectString, `message`],
|
|
141
|
-
});
|
|
142
|
-
Object.assign(contents, doc);
|
|
143
|
-
const exception = new PayloadTooLargeException({
|
|
144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
145
|
-
...contents,
|
|
146
|
-
});
|
|
147
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
148
|
-
};
|
|
149
|
-
const de_Identity = (output, context) => {
|
|
150
|
-
return take(output, {
|
|
151
|
-
SourceIp: [, __expectString, `sourceIp`],
|
|
152
|
-
UserAgent: [, __expectString, `userAgent`],
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
const deserializeMetadata = (output) => ({
|
|
156
|
-
httpStatusCode: output.statusCode,
|
|
157
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
158
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
159
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
160
|
-
});
|
|
161
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "../commands/DeleteConnectionCommand";
|
|
4
|
-
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "../commands/GetConnectionCommand";
|
|
5
|
-
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "../commands/PostToConnectionCommand";
|
|
6
|
-
/**
|
|
7
|
-
* serializeAws_restJson1DeleteConnectionCommand
|
|
8
|
-
*/
|
|
9
|
-
export declare const se_DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
-
/**
|
|
11
|
-
* serializeAws_restJson1GetConnectionCommand
|
|
12
|
-
*/
|
|
13
|
-
export declare const se_GetConnectionCommand: (input: GetConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
-
/**
|
|
15
|
-
* serializeAws_restJson1PostToConnectionCommand
|
|
16
|
-
*/
|
|
17
|
-
export declare const se_PostToConnectionCommand: (input: PostToConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
-
/**
|
|
19
|
-
* deserializeAws_restJson1DeleteConnectionCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare const de_DeleteConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectionCommandOutput>;
|
|
22
|
-
/**
|
|
23
|
-
* deserializeAws_restJson1GetConnectionCommand
|
|
24
|
-
*/
|
|
25
|
-
export declare const de_GetConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConnectionCommandOutput>;
|
|
26
|
-
/**
|
|
27
|
-
* deserializeAws_restJson1PostToConnectionCommand
|
|
28
|
-
*/
|
|
29
|
-
export declare const de_PostToConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PostToConnectionCommandOutput>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
DeleteConnectionCommandInput,
|
|
8
|
-
DeleteConnectionCommandOutput,
|
|
9
|
-
} from "../commands/DeleteConnectionCommand";
|
|
10
|
-
import {
|
|
11
|
-
GetConnectionCommandInput,
|
|
12
|
-
GetConnectionCommandOutput,
|
|
13
|
-
} from "../commands/GetConnectionCommand";
|
|
14
|
-
import {
|
|
15
|
-
PostToConnectionCommandInput,
|
|
16
|
-
PostToConnectionCommandOutput,
|
|
17
|
-
} from "../commands/PostToConnectionCommand";
|
|
18
|
-
export declare const se_DeleteConnectionCommand: (
|
|
19
|
-
input: DeleteConnectionCommandInput,
|
|
20
|
-
context: __SerdeContext
|
|
21
|
-
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const se_GetConnectionCommand: (
|
|
23
|
-
input: GetConnectionCommandInput,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const se_PostToConnectionCommand: (
|
|
27
|
-
input: PostToConnectionCommandInput,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const de_DeleteConnectionCommand: (
|
|
31
|
-
output: __HttpResponse,
|
|
32
|
-
context: __SerdeContext
|
|
33
|
-
) => Promise<DeleteConnectionCommandOutput>;
|
|
34
|
-
export declare const de_GetConnectionCommand: (
|
|
35
|
-
output: __HttpResponse,
|
|
36
|
-
context: __SerdeContext
|
|
37
|
-
) => Promise<GetConnectionCommandOutput>;
|
|
38
|
-
export declare const de_PostToConnectionCommand: (
|
|
39
|
-
output: __HttpResponse,
|
|
40
|
-
context: __SerdeContext
|
|
41
|
-
) => Promise<PostToConnectionCommandOutput>;
|