@aws-sdk/client-apigatewaymanagementapi 3.987.0 → 3.988.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 +22 -173
- package/dist-cjs/models/ApiGatewayManagementApiServiceException.js +12 -0
- package/dist-cjs/models/errors.js +58 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +105 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +32 -26
- package/dist-types/schemas/schemas_0.d.ts +12 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var ApiGatewayManagementApiServiceException = require('./models/ApiGatewayManagementApiServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,158 +113,6 @@ class ApiGatewayManagementApiClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class ApiGatewayManagementApiServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, ApiGatewayManagementApiServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class ForbiddenException extends ApiGatewayManagementApiServiceException {
|
|
121
|
-
name = "ForbiddenException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
constructor(opts) {
|
|
124
|
-
super({
|
|
125
|
-
name: "ForbiddenException",
|
|
126
|
-
$fault: "client",
|
|
127
|
-
...opts,
|
|
128
|
-
});
|
|
129
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
class GoneException extends ApiGatewayManagementApiServiceException {
|
|
133
|
-
name = "GoneException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
constructor(opts) {
|
|
136
|
-
super({
|
|
137
|
-
name: "GoneException",
|
|
138
|
-
$fault: "client",
|
|
139
|
-
...opts,
|
|
140
|
-
});
|
|
141
|
-
Object.setPrototypeOf(this, GoneException.prototype);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
class LimitExceededException extends ApiGatewayManagementApiServiceException {
|
|
145
|
-
name = "LimitExceededException";
|
|
146
|
-
$fault = "client";
|
|
147
|
-
constructor(opts) {
|
|
148
|
-
super({
|
|
149
|
-
name: "LimitExceededException",
|
|
150
|
-
$fault: "client",
|
|
151
|
-
...opts,
|
|
152
|
-
});
|
|
153
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class PayloadTooLargeException extends ApiGatewayManagementApiServiceException {
|
|
157
|
-
name = "PayloadTooLargeException";
|
|
158
|
-
$fault = "client";
|
|
159
|
-
Message;
|
|
160
|
-
constructor(opts) {
|
|
161
|
-
super({
|
|
162
|
-
name: "PayloadTooLargeException",
|
|
163
|
-
$fault: "client",
|
|
164
|
-
...opts,
|
|
165
|
-
});
|
|
166
|
-
Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
|
|
167
|
-
this.Message = opts.Message;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
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,
|
|
204
|
-
0,
|
|
205
|
-
[_CI],
|
|
206
|
-
[[0, 1]], 1
|
|
207
|
-
];
|
|
208
|
-
var ForbiddenException$ = [-3, n0, _FE,
|
|
209
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
210
|
-
[],
|
|
211
|
-
[]
|
|
212
|
-
];
|
|
213
|
-
schema.TypeRegistry.for(n0).registerError(ForbiddenException$, ForbiddenException);
|
|
214
|
-
var GetConnectionRequest$ = [3, n0, _GCR,
|
|
215
|
-
0,
|
|
216
|
-
[_CI],
|
|
217
|
-
[[0, 1]], 1
|
|
218
|
-
];
|
|
219
|
-
var GetConnectionResponse$ = [3, n0, _GCRe,
|
|
220
|
-
0,
|
|
221
|
-
[_CA, _I, _LAA],
|
|
222
|
-
[[5, { [_jN]: _cA }], [() => Identity$, { [_jN]: _i }], [5, { [_jN]: _lAA }]]
|
|
223
|
-
];
|
|
224
|
-
var GoneException$ = [-3, n0, _GE,
|
|
225
|
-
{ [_e]: _c, [_hE]: 410 },
|
|
226
|
-
[],
|
|
227
|
-
[]
|
|
228
|
-
];
|
|
229
|
-
schema.TypeRegistry.for(n0).registerError(GoneException$, GoneException);
|
|
230
|
-
var Identity$ = [3, n0, _I,
|
|
231
|
-
0,
|
|
232
|
-
[_SI, _UA],
|
|
233
|
-
[[0, { [_jN]: _sI }], [0, { [_jN]: _uA }]], 2
|
|
234
|
-
];
|
|
235
|
-
var LimitExceededException$ = [-3, n0, _LEE,
|
|
236
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
237
|
-
[],
|
|
238
|
-
[]
|
|
239
|
-
];
|
|
240
|
-
schema.TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
|
|
241
|
-
var PayloadTooLargeException$ = [-3, n0, _PTLE,
|
|
242
|
-
{ [_e]: _c, [_hE]: 413 },
|
|
243
|
-
[_M],
|
|
244
|
-
[[0, { [_jN]: _m }]]
|
|
245
|
-
];
|
|
246
|
-
schema.TypeRegistry.for(n0).registerError(PayloadTooLargeException$, PayloadTooLargeException);
|
|
247
|
-
var PostToConnectionRequest$ = [3, n0, _PTCR,
|
|
248
|
-
0,
|
|
249
|
-
[_D, _CI],
|
|
250
|
-
[[21, 16], [0, 1]], 2
|
|
251
|
-
];
|
|
252
|
-
var __Unit = "unit";
|
|
253
|
-
var ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
|
|
254
|
-
schema.TypeRegistry.for(_s).registerError(ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException);
|
|
255
|
-
var DeleteConnection$ = [9, n0, _DC,
|
|
256
|
-
{ [_h]: ["DELETE", "/@connections/{ConnectionId}", 204] }, () => DeleteConnectionRequest$, () => __Unit
|
|
257
|
-
];
|
|
258
|
-
var GetConnection$ = [9, n0, _GC,
|
|
259
|
-
{ [_h]: ["GET", "/@connections/{ConnectionId}", 200] }, () => GetConnectionRequest$, () => GetConnectionResponse$
|
|
260
|
-
];
|
|
261
|
-
var PostToConnection$ = [9, n0, _PTC,
|
|
262
|
-
{ [_h]: ["POST", "/@connections/{ConnectionId}", 200] }, () => PostToConnectionRequest$, () => __Unit
|
|
263
|
-
];
|
|
264
|
-
|
|
265
116
|
class DeleteConnectionCommand extends smithyClient.Command
|
|
266
117
|
.classBuilder()
|
|
267
118
|
.ep(commonParams)
|
|
@@ -270,7 +121,7 @@ class DeleteConnectionCommand extends smithyClient.Command
|
|
|
270
121
|
})
|
|
271
122
|
.s("ApiGatewayManagementApi", "DeleteConnection", {})
|
|
272
123
|
.n("ApiGatewayManagementApiClient", "DeleteConnectionCommand")
|
|
273
|
-
.sc(DeleteConnection$)
|
|
124
|
+
.sc(schemas_0.DeleteConnection$)
|
|
274
125
|
.build() {
|
|
275
126
|
}
|
|
276
127
|
|
|
@@ -282,7 +133,7 @@ class GetConnectionCommand extends smithyClient.Command
|
|
|
282
133
|
})
|
|
283
134
|
.s("ApiGatewayManagementApi", "GetConnection", {})
|
|
284
135
|
.n("ApiGatewayManagementApiClient", "GetConnectionCommand")
|
|
285
|
-
.sc(GetConnection$)
|
|
136
|
+
.sc(schemas_0.GetConnection$)
|
|
286
137
|
.build() {
|
|
287
138
|
}
|
|
288
139
|
|
|
@@ -294,7 +145,7 @@ class PostToConnectionCommand extends smithyClient.Command
|
|
|
294
145
|
})
|
|
295
146
|
.s("ApiGatewayManagementApi", "PostToConnection", {})
|
|
296
147
|
.n("ApiGatewayManagementApiClient", "PostToConnectionCommand")
|
|
297
|
-
.sc(PostToConnection$)
|
|
148
|
+
.sc(schemas_0.PostToConnection$)
|
|
298
149
|
.build() {
|
|
299
150
|
}
|
|
300
151
|
|
|
@@ -315,26 +166,24 @@ Object.defineProperty(exports, "__Client", {
|
|
|
315
166
|
enumerable: true,
|
|
316
167
|
get: function () { return smithyClient.Client; }
|
|
317
168
|
});
|
|
169
|
+
Object.defineProperty(exports, "ApiGatewayManagementApiServiceException", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () { return ApiGatewayManagementApiServiceException.ApiGatewayManagementApiServiceException; }
|
|
172
|
+
});
|
|
318
173
|
exports.ApiGatewayManagementApi = ApiGatewayManagementApi;
|
|
319
174
|
exports.ApiGatewayManagementApiClient = ApiGatewayManagementApiClient;
|
|
320
|
-
exports.ApiGatewayManagementApiServiceException = ApiGatewayManagementApiServiceException;
|
|
321
|
-
exports.ApiGatewayManagementApiServiceException$ = ApiGatewayManagementApiServiceException$;
|
|
322
|
-
exports.DeleteConnection$ = DeleteConnection$;
|
|
323
175
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
324
|
-
exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;
|
|
325
|
-
exports.ForbiddenException = ForbiddenException;
|
|
326
|
-
exports.ForbiddenException$ = ForbiddenException$;
|
|
327
|
-
exports.GetConnection$ = GetConnection$;
|
|
328
176
|
exports.GetConnectionCommand = GetConnectionCommand;
|
|
329
|
-
exports.GetConnectionRequest$ = GetConnectionRequest$;
|
|
330
|
-
exports.GetConnectionResponse$ = GetConnectionResponse$;
|
|
331
|
-
exports.GoneException = GoneException;
|
|
332
|
-
exports.GoneException$ = GoneException$;
|
|
333
|
-
exports.Identity$ = Identity$;
|
|
334
|
-
exports.LimitExceededException = LimitExceededException;
|
|
335
|
-
exports.LimitExceededException$ = LimitExceededException$;
|
|
336
|
-
exports.PayloadTooLargeException = PayloadTooLargeException;
|
|
337
|
-
exports.PayloadTooLargeException$ = PayloadTooLargeException$;
|
|
338
|
-
exports.PostToConnection$ = PostToConnection$;
|
|
339
177
|
exports.PostToConnectionCommand = PostToConnectionCommand;
|
|
340
|
-
|
|
178
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
179
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return schemas_0[k]; }
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
Object.keys(errors).forEach(function (k) {
|
|
185
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () { return errors[k]; }
|
|
188
|
+
});
|
|
189
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiGatewayManagementApiServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class ApiGatewayManagementApiServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, ApiGatewayManagementApiServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ApiGatewayManagementApiServiceException = ApiGatewayManagementApiServiceException;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayloadTooLargeException = exports.LimitExceededException = exports.GoneException = exports.ForbiddenException = void 0;
|
|
4
|
+
const ApiGatewayManagementApiServiceException_1 = require("./ApiGatewayManagementApiServiceException");
|
|
5
|
+
class ForbiddenException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ForbiddenException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
|
+
class GoneException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
19
|
+
name = "GoneException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "GoneException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, GoneException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.GoneException = GoneException;
|
|
31
|
+
class LimitExceededException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
32
|
+
name = "LimitExceededException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "LimitExceededException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.LimitExceededException = LimitExceededException;
|
|
44
|
+
class PayloadTooLargeException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
45
|
+
name = "PayloadTooLargeException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
Message;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "PayloadTooLargeException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.PayloadTooLargeException = PayloadTooLargeException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2018-11-29",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.apigatewaymanagementapi",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2018-11-29",
|
|
33
35
|
serviceTarget: "ApiGatewayManagementApi",
|
|
34
36
|
},
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostToConnection$ = exports.GetConnection$ = exports.DeleteConnection$ = exports.PostToConnectionRequest$ = exports.Identity$ = exports.GetConnectionResponse$ = exports.GetConnectionRequest$ = exports.DeleteConnectionRequest$ = exports.errorTypeRegistries = exports.PayloadTooLargeException$ = exports.LimitExceededException$ = exports.GoneException$ = exports.ForbiddenException$ = exports.ApiGatewayManagementApiServiceException$ = void 0;
|
|
4
|
+
const _CA = "ConnectedAt";
|
|
5
|
+
const _CI = "ConnectionId";
|
|
6
|
+
const _D = "Data";
|
|
7
|
+
const _DC = "DeleteConnection";
|
|
8
|
+
const _DCR = "DeleteConnectionRequest";
|
|
9
|
+
const _FE = "ForbiddenException";
|
|
10
|
+
const _GC = "GetConnection";
|
|
11
|
+
const _GCR = "GetConnectionRequest";
|
|
12
|
+
const _GCRe = "GetConnectionResponse";
|
|
13
|
+
const _GE = "GoneException";
|
|
14
|
+
const _I = "Identity";
|
|
15
|
+
const _LAA = "LastActiveAt";
|
|
16
|
+
const _LEE = "LimitExceededException";
|
|
17
|
+
const _M = "Message";
|
|
18
|
+
const _PTC = "PostToConnection";
|
|
19
|
+
const _PTCR = "PostToConnectionRequest";
|
|
20
|
+
const _PTLE = "PayloadTooLargeException";
|
|
21
|
+
const _SI = "SourceIp";
|
|
22
|
+
const _UA = "UserAgent";
|
|
23
|
+
const _c = "client";
|
|
24
|
+
const _cA = "connectedAt";
|
|
25
|
+
const _e = "error";
|
|
26
|
+
const _h = "http";
|
|
27
|
+
const _hE = "httpError";
|
|
28
|
+
const _i = "identity";
|
|
29
|
+
const _jN = "jsonName";
|
|
30
|
+
const _lAA = "lastActiveAt";
|
|
31
|
+
const _m = "message";
|
|
32
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.apigatewaymanagementapi";
|
|
33
|
+
const _sI = "sourceIp";
|
|
34
|
+
const _uA = "userAgent";
|
|
35
|
+
const n0 = "com.amazonaws.apigatewaymanagementapi";
|
|
36
|
+
const schema_1 = require("@smithy/core/schema");
|
|
37
|
+
const ApiGatewayManagementApiServiceException_1 = require("../models/ApiGatewayManagementApiServiceException");
|
|
38
|
+
const errors_1 = require("../models/errors");
|
|
39
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
40
|
+
exports.ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
|
|
41
|
+
_s_registry.registerError(exports.ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException);
|
|
42
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
43
|
+
exports.ForbiddenException$ = [-3, n0, _FE,
|
|
44
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
45
|
+
[],
|
|
46
|
+
[]
|
|
47
|
+
];
|
|
48
|
+
n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
|
|
49
|
+
exports.GoneException$ = [-3, n0, _GE,
|
|
50
|
+
{ [_e]: _c, [_hE]: 410 },
|
|
51
|
+
[],
|
|
52
|
+
[]
|
|
53
|
+
];
|
|
54
|
+
n0_registry.registerError(exports.GoneException$, errors_1.GoneException);
|
|
55
|
+
exports.LimitExceededException$ = [-3, n0, _LEE,
|
|
56
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
57
|
+
[],
|
|
58
|
+
[]
|
|
59
|
+
];
|
|
60
|
+
n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
|
|
61
|
+
exports.PayloadTooLargeException$ = [-3, n0, _PTLE,
|
|
62
|
+
{ [_e]: _c, [_hE]: 413 },
|
|
63
|
+
[_M],
|
|
64
|
+
[[0, { [_jN]: _m }]]
|
|
65
|
+
];
|
|
66
|
+
n0_registry.registerError(exports.PayloadTooLargeException$, errors_1.PayloadTooLargeException);
|
|
67
|
+
exports.errorTypeRegistries = [
|
|
68
|
+
_s_registry,
|
|
69
|
+
n0_registry,
|
|
70
|
+
];
|
|
71
|
+
exports.DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
72
|
+
0,
|
|
73
|
+
[_CI],
|
|
74
|
+
[[0, 1]], 1
|
|
75
|
+
];
|
|
76
|
+
exports.GetConnectionRequest$ = [3, n0, _GCR,
|
|
77
|
+
0,
|
|
78
|
+
[_CI],
|
|
79
|
+
[[0, 1]], 1
|
|
80
|
+
];
|
|
81
|
+
exports.GetConnectionResponse$ = [3, n0, _GCRe,
|
|
82
|
+
0,
|
|
83
|
+
[_CA, _I, _LAA],
|
|
84
|
+
[[5, { [_jN]: _cA }], [() => exports.Identity$, { [_jN]: _i }], [5, { [_jN]: _lAA }]]
|
|
85
|
+
];
|
|
86
|
+
exports.Identity$ = [3, n0, _I,
|
|
87
|
+
0,
|
|
88
|
+
[_SI, _UA],
|
|
89
|
+
[[0, { [_jN]: _sI }], [0, { [_jN]: _uA }]], 2
|
|
90
|
+
];
|
|
91
|
+
exports.PostToConnectionRequest$ = [3, n0, _PTCR,
|
|
92
|
+
0,
|
|
93
|
+
[_D, _CI],
|
|
94
|
+
[[21, 16], [0, 1]], 2
|
|
95
|
+
];
|
|
96
|
+
var __Unit = "unit";
|
|
97
|
+
exports.DeleteConnection$ = [9, n0, _DC,
|
|
98
|
+
{ [_h]: ["DELETE", "/@connections/{ConnectionId}", 204] }, () => exports.DeleteConnectionRequest$, () => __Unit
|
|
99
|
+
];
|
|
100
|
+
exports.GetConnection$ = [9, n0, _GC,
|
|
101
|
+
{ [_h]: ["GET", "/@connections/{ConnectionId}", 200] }, () => exports.GetConnectionRequest$, () => exports.GetConnectionResponse$
|
|
102
|
+
];
|
|
103
|
+
exports.PostToConnection$ = [9, n0, _PTC,
|
|
104
|
+
{ [_h]: ["POST", "/@connections/{ConnectionId}", 200] }, () => exports.PostToConnectionRequest$, () => __Unit
|
|
105
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultApiGatewayManagementApiHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2018-11-29",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.apigatewaymanagementapi",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2018-11-29",
|
|
30
32
|
serviceTarget: "ApiGatewayManagementApi",
|
|
31
33
|
},
|
|
@@ -33,58 +33,64 @@ const n0 = "com.amazonaws.apigatewaymanagementapi";
|
|
|
33
33
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
34
34
|
import { ApiGatewayManagementApiServiceException } from "../models/ApiGatewayManagementApiServiceException";
|
|
35
35
|
import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "../models/errors";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
];
|
|
36
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
37
|
+
export var ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
|
|
38
|
+
_s_registry.registerError(ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException);
|
|
39
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
41
40
|
export var ForbiddenException$ = [-3, n0, _FE,
|
|
42
41
|
{ [_e]: _c, [_hE]: 403 },
|
|
43
42
|
[],
|
|
44
43
|
[]
|
|
45
44
|
];
|
|
46
|
-
|
|
47
|
-
export var GetConnectionRequest$ = [3, n0, _GCR,
|
|
48
|
-
0,
|
|
49
|
-
[_CI],
|
|
50
|
-
[[0, 1]], 1
|
|
51
|
-
];
|
|
52
|
-
export var GetConnectionResponse$ = [3, n0, _GCRe,
|
|
53
|
-
0,
|
|
54
|
-
[_CA, _I, _LAA],
|
|
55
|
-
[[5, { [_jN]: _cA }], [() => Identity$, { [_jN]: _i }], [5, { [_jN]: _lAA }]]
|
|
56
|
-
];
|
|
45
|
+
n0_registry.registerError(ForbiddenException$, ForbiddenException);
|
|
57
46
|
export var GoneException$ = [-3, n0, _GE,
|
|
58
47
|
{ [_e]: _c, [_hE]: 410 },
|
|
59
48
|
[],
|
|
60
49
|
[]
|
|
61
50
|
];
|
|
62
|
-
|
|
63
|
-
export var Identity$ = [3, n0, _I,
|
|
64
|
-
0,
|
|
65
|
-
[_SI, _UA],
|
|
66
|
-
[[0, { [_jN]: _sI }], [0, { [_jN]: _uA }]], 2
|
|
67
|
-
];
|
|
51
|
+
n0_registry.registerError(GoneException$, GoneException);
|
|
68
52
|
export var LimitExceededException$ = [-3, n0, _LEE,
|
|
69
53
|
{ [_e]: _c, [_hE]: 429 },
|
|
70
54
|
[],
|
|
71
55
|
[]
|
|
72
56
|
];
|
|
73
|
-
|
|
57
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
74
58
|
export var PayloadTooLargeException$ = [-3, n0, _PTLE,
|
|
75
59
|
{ [_e]: _c, [_hE]: 413 },
|
|
76
60
|
[_M],
|
|
77
61
|
[[0, { [_jN]: _m }]]
|
|
78
62
|
];
|
|
79
|
-
|
|
63
|
+
n0_registry.registerError(PayloadTooLargeException$, PayloadTooLargeException);
|
|
64
|
+
export const errorTypeRegistries = [
|
|
65
|
+
_s_registry,
|
|
66
|
+
n0_registry,
|
|
67
|
+
];
|
|
68
|
+
export var DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
69
|
+
0,
|
|
70
|
+
[_CI],
|
|
71
|
+
[[0, 1]], 1
|
|
72
|
+
];
|
|
73
|
+
export var GetConnectionRequest$ = [3, n0, _GCR,
|
|
74
|
+
0,
|
|
75
|
+
[_CI],
|
|
76
|
+
[[0, 1]], 1
|
|
77
|
+
];
|
|
78
|
+
export var GetConnectionResponse$ = [3, n0, _GCRe,
|
|
79
|
+
0,
|
|
80
|
+
[_CA, _I, _LAA],
|
|
81
|
+
[[5, { [_jN]: _cA }], [() => Identity$, { [_jN]: _i }], [5, { [_jN]: _lAA }]]
|
|
82
|
+
];
|
|
83
|
+
export var Identity$ = [3, n0, _I,
|
|
84
|
+
0,
|
|
85
|
+
[_SI, _UA],
|
|
86
|
+
[[0, { [_jN]: _sI }], [0, { [_jN]: _uA }]], 2
|
|
87
|
+
];
|
|
80
88
|
export var PostToConnectionRequest$ = [3, n0, _PTCR,
|
|
81
89
|
0,
|
|
82
90
|
[_D, _CI],
|
|
83
91
|
[[21, 16], [0, 1]], 2
|
|
84
92
|
];
|
|
85
93
|
var __Unit = "unit";
|
|
86
|
-
export var ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
|
|
87
|
-
TypeRegistry.for(_s).registerError(ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException);
|
|
88
94
|
export var DeleteConnection$ = [9, n0, _DC,
|
|
89
95
|
{ [_h]: ["DELETE", "/@connections/{ConnectionId}", 204] }, () => DeleteConnectionRequest$, () => __Unit
|
|
90
96
|
];
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
-
export declare var
|
|
3
|
+
export declare var ApiGatewayManagementApiServiceException$: StaticErrorSchema;
|
|
3
4
|
export declare var ForbiddenException$: StaticErrorSchema;
|
|
4
|
-
export declare var GetConnectionRequest$: StaticStructureSchema;
|
|
5
|
-
export declare var GetConnectionResponse$: StaticStructureSchema;
|
|
6
5
|
export declare var GoneException$: StaticErrorSchema;
|
|
7
|
-
export declare var Identity$: StaticStructureSchema;
|
|
8
6
|
export declare var LimitExceededException$: StaticErrorSchema;
|
|
9
7
|
export declare var PayloadTooLargeException$: StaticErrorSchema;
|
|
8
|
+
/**
|
|
9
|
+
* TypeRegistry instances containing modeled errors.
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
14
|
+
export declare var DeleteConnectionRequest$: StaticStructureSchema;
|
|
15
|
+
export declare var GetConnectionRequest$: StaticStructureSchema;
|
|
16
|
+
export declare var GetConnectionResponse$: StaticStructureSchema;
|
|
17
|
+
export declare var Identity$: StaticStructureSchema;
|
|
10
18
|
export declare var PostToConnectionRequest$: StaticStructureSchema;
|
|
11
|
-
export declare var ApiGatewayManagementApiServiceException$: StaticErrorSchema;
|
|
12
19
|
export declare var DeleteConnection$: StaticOperationSchema;
|
|
13
20
|
export declare var GetConnection$: StaticOperationSchema;
|
|
14
21
|
export declare var PostToConnection$: StaticOperationSchema;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
6
|
-
export declare var
|
|
7
|
+
export declare var ApiGatewayManagementApiServiceException$: StaticErrorSchema;
|
|
7
8
|
export declare var ForbiddenException$: StaticErrorSchema;
|
|
8
|
-
export declare var GetConnectionRequest$: StaticStructureSchema;
|
|
9
|
-
export declare var GetConnectionResponse$: StaticStructureSchema;
|
|
10
9
|
export declare var GoneException$: StaticErrorSchema;
|
|
11
|
-
export declare var Identity$: StaticStructureSchema;
|
|
12
10
|
export declare var LimitExceededException$: StaticErrorSchema;
|
|
13
11
|
export declare var PayloadTooLargeException$: StaticErrorSchema;
|
|
12
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
13
|
+
export declare var DeleteConnectionRequest$: StaticStructureSchema;
|
|
14
|
+
export declare var GetConnectionRequest$: StaticStructureSchema;
|
|
15
|
+
export declare var GetConnectionResponse$: StaticStructureSchema;
|
|
16
|
+
export declare var Identity$: StaticStructureSchema;
|
|
14
17
|
export declare var PostToConnectionRequest$: StaticStructureSchema;
|
|
15
|
-
export declare var ApiGatewayManagementApiServiceException$: StaticErrorSchema;
|
|
16
18
|
export declare var DeleteConnection$: StaticOperationSchema;
|
|
17
19
|
export declare var GetConnection$: StaticOperationSchema;
|
|
18
20
|
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.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-apigatewaymanagementapi",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.8",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|