@aws-sdk/client-apigatewaymanagementapi 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ApiGatewayManagementApiServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +55 -1
- package/dist-cjs/protocols/Aws_restJson1.js +48 -115
- package/dist-es/index.js +1 -0
- package/dist-es/models/ApiGatewayManagementApiServiceException.js +12 -0
- package/dist-es/models/models_0.js +51 -1
- package/dist-es/protocols/Aws_restJson1.js +75 -132
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ApiGatewayManagementApiServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -13
- package/dist-types/ts3.4/ApiGatewayManagementApi.d.ts +20 -0
- package/dist-types/ts3.4/ApiGatewayManagementApiClient.d.ts +76 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PostToConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/ApiGatewayManagementApiServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-apigatewaymanagementapi
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-apigatewaymanagementapi
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-apigatewaymanagementapi
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiGatewayManagementApiServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./ApiGatewayManagementApi"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ApiGatewayManagementApiClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var ApiGatewayManagementApiServiceException_1 = require("./models/ApiGatewayManagementApiServiceException");
|
|
10
|
+
Object.defineProperty(exports, "ApiGatewayManagementApiServiceException", { enumerable: true, get: function () { return ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiGatewayManagementApiServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class ApiGatewayManagementApiServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, ApiGatewayManagementApiServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ApiGatewayManagementApiServiceException = ApiGatewayManagementApiServiceException;
|
|
@@ -1,12 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostToConnectionRequest = exports.GetConnectionResponse = exports.Identity = exports.GetConnectionRequest = exports.DeleteConnectionRequest = void 0;
|
|
3
|
+
exports.PostToConnectionRequest = exports.PayloadTooLargeException = exports.GetConnectionResponse = exports.Identity = exports.GetConnectionRequest = exports.LimitExceededException = exports.GoneException = exports.ForbiddenException = exports.DeleteConnectionRequest = void 0;
|
|
4
|
+
const ApiGatewayManagementApiServiceException_1 = require("./ApiGatewayManagementApiServiceException");
|
|
4
5
|
var DeleteConnectionRequest;
|
|
5
6
|
(function (DeleteConnectionRequest) {
|
|
6
7
|
DeleteConnectionRequest.filterSensitiveLog = (obj) => ({
|
|
7
8
|
...obj,
|
|
8
9
|
});
|
|
9
10
|
})(DeleteConnectionRequest = exports.DeleteConnectionRequest || (exports.DeleteConnectionRequest = {}));
|
|
11
|
+
class ForbiddenException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
12
|
+
constructor(opts) {
|
|
13
|
+
super({
|
|
14
|
+
name: "ForbiddenException",
|
|
15
|
+
$fault: "client",
|
|
16
|
+
...opts,
|
|
17
|
+
});
|
|
18
|
+
this.name = "ForbiddenException";
|
|
19
|
+
this.$fault = "client";
|
|
20
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.ForbiddenException = ForbiddenException;
|
|
24
|
+
class GoneException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "GoneException",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
this.name = "GoneException";
|
|
32
|
+
this.$fault = "client";
|
|
33
|
+
Object.setPrototypeOf(this, GoneException.prototype);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GoneException = GoneException;
|
|
37
|
+
class LimitExceededException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "LimitExceededException",
|
|
41
|
+
$fault: "client",
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
this.name = "LimitExceededException";
|
|
45
|
+
this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.LimitExceededException = LimitExceededException;
|
|
10
50
|
var GetConnectionRequest;
|
|
11
51
|
(function (GetConnectionRequest) {
|
|
12
52
|
GetConnectionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -25,6 +65,20 @@ var GetConnectionResponse;
|
|
|
25
65
|
...obj,
|
|
26
66
|
});
|
|
27
67
|
})(GetConnectionResponse = exports.GetConnectionResponse || (exports.GetConnectionResponse = {}));
|
|
68
|
+
class PayloadTooLargeException extends ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException {
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "PayloadTooLargeException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
this.name = "PayloadTooLargeException";
|
|
76
|
+
this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
|
|
78
|
+
this.Message = opts.Message;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.PayloadTooLargeException = PayloadTooLargeException;
|
|
28
82
|
var PostToConnectionRequest;
|
|
29
83
|
(function (PostToConnectionRequest) {
|
|
30
84
|
PostToConnectionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1PostToConnectionCommand = exports.deserializeAws_restJson1GetConnectionCommand = exports.deserializeAws_restJson1DeleteConnectionCommand = exports.serializeAws_restJson1PostToConnectionCommand = exports.serializeAws_restJson1GetConnectionCommand = exports.serializeAws_restJson1DeleteConnectionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const ApiGatewayManagementApiServiceException_1 = require("../models/ApiGatewayManagementApiServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1DeleteConnectionCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {};
|
|
@@ -108,43 +110,22 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
|
|
|
108
110
|
switch (errorCode) {
|
|
109
111
|
case "ForbiddenException":
|
|
110
112
|
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
111
|
-
|
|
112
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
113
|
-
name: errorCode,
|
|
114
|
-
$metadata: deserializeMetadata(output),
|
|
115
|
-
};
|
|
116
|
-
break;
|
|
113
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
117
114
|
case "GoneException":
|
|
118
115
|
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
119
|
-
|
|
120
|
-
...(await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)),
|
|
121
|
-
name: errorCode,
|
|
122
|
-
$metadata: deserializeMetadata(output),
|
|
123
|
-
};
|
|
124
|
-
break;
|
|
116
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
125
117
|
case "LimitExceededException":
|
|
126
118
|
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
127
|
-
|
|
128
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
129
|
-
name: errorCode,
|
|
130
|
-
$metadata: deserializeMetadata(output),
|
|
131
|
-
};
|
|
132
|
-
break;
|
|
119
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
133
120
|
default:
|
|
134
121
|
const parsedBody = parsedOutput.body;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
...parsedBody,
|
|
138
|
-
name: `${errorCode}`,
|
|
139
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
122
|
+
response = new ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException({
|
|
123
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
140
124
|
$fault: "client",
|
|
141
125
|
$metadata: deserializeMetadata(output),
|
|
142
|
-
};
|
|
126
|
+
});
|
|
127
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
143
128
|
}
|
|
144
|
-
const message = response.message || response.Message || errorCode;
|
|
145
|
-
response.message = message;
|
|
146
|
-
delete response.Message;
|
|
147
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
148
129
|
};
|
|
149
130
|
const deserializeAws_restJson1GetConnectionCommand = async (output, context) => {
|
|
150
131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -180,43 +161,22 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
|
|
|
180
161
|
switch (errorCode) {
|
|
181
162
|
case "ForbiddenException":
|
|
182
163
|
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
183
|
-
|
|
184
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
185
|
-
name: errorCode,
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
};
|
|
188
|
-
break;
|
|
164
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
189
165
|
case "GoneException":
|
|
190
166
|
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
191
|
-
|
|
192
|
-
...(await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)),
|
|
193
|
-
name: errorCode,
|
|
194
|
-
$metadata: deserializeMetadata(output),
|
|
195
|
-
};
|
|
196
|
-
break;
|
|
167
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
197
168
|
case "LimitExceededException":
|
|
198
169
|
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
199
|
-
|
|
200
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
201
|
-
name: errorCode,
|
|
202
|
-
$metadata: deserializeMetadata(output),
|
|
203
|
-
};
|
|
204
|
-
break;
|
|
170
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
205
171
|
default:
|
|
206
172
|
const parsedBody = parsedOutput.body;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
...parsedBody,
|
|
210
|
-
name: `${errorCode}`,
|
|
211
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
173
|
+
response = new ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException({
|
|
174
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
212
175
|
$fault: "client",
|
|
213
176
|
$metadata: deserializeMetadata(output),
|
|
214
|
-
};
|
|
177
|
+
});
|
|
178
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
215
179
|
}
|
|
216
|
-
const message = response.message || response.Message || errorCode;
|
|
217
|
-
response.message = message;
|
|
218
|
-
delete response.Message;
|
|
219
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
220
180
|
};
|
|
221
181
|
const deserializeAws_restJson1PostToConnectionCommand = async (output, context) => {
|
|
222
182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -240,91 +200,64 @@ const deserializeAws_restJson1PostToConnectionCommandError = async (output, cont
|
|
|
240
200
|
switch (errorCode) {
|
|
241
201
|
case "ForbiddenException":
|
|
242
202
|
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
243
|
-
|
|
244
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
245
|
-
name: errorCode,
|
|
246
|
-
$metadata: deserializeMetadata(output),
|
|
247
|
-
};
|
|
248
|
-
break;
|
|
203
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
249
204
|
case "GoneException":
|
|
250
205
|
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
251
|
-
|
|
252
|
-
...(await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context)),
|
|
253
|
-
name: errorCode,
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
206
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
257
207
|
case "LimitExceededException":
|
|
258
208
|
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
259
|
-
|
|
260
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
261
|
-
name: errorCode,
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
};
|
|
264
|
-
break;
|
|
209
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
265
210
|
case "PayloadTooLargeException":
|
|
266
211
|
case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException":
|
|
267
|
-
|
|
268
|
-
...(await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)),
|
|
269
|
-
name: errorCode,
|
|
270
|
-
$metadata: deserializeMetadata(output),
|
|
271
|
-
};
|
|
272
|
-
break;
|
|
212
|
+
throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
|
|
273
213
|
default:
|
|
274
214
|
const parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
...parsedBody,
|
|
278
|
-
name: `${errorCode}`,
|
|
279
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
215
|
+
response = new ApiGatewayManagementApiServiceException_1.ApiGatewayManagementApiServiceException({
|
|
216
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
280
217
|
$fault: "client",
|
|
281
218
|
$metadata: deserializeMetadata(output),
|
|
282
|
-
};
|
|
219
|
+
});
|
|
220
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
283
221
|
}
|
|
284
|
-
const message = response.message || response.Message || errorCode;
|
|
285
|
-
response.message = message;
|
|
286
|
-
delete response.Message;
|
|
287
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
288
222
|
};
|
|
289
223
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
290
|
-
const contents = {
|
|
291
|
-
name: "ForbiddenException",
|
|
292
|
-
$fault: "client",
|
|
293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
294
|
-
};
|
|
224
|
+
const contents = {};
|
|
295
225
|
const data = parsedOutput.body;
|
|
296
|
-
|
|
226
|
+
const exception = new models_0_1.ForbiddenException({
|
|
227
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
228
|
+
...contents,
|
|
229
|
+
});
|
|
230
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
297
231
|
};
|
|
298
232
|
const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, context) => {
|
|
299
|
-
const contents = {
|
|
300
|
-
name: "GoneException",
|
|
301
|
-
$fault: "client",
|
|
302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
303
|
-
};
|
|
233
|
+
const contents = {};
|
|
304
234
|
const data = parsedOutput.body;
|
|
305
|
-
|
|
235
|
+
const exception = new models_0_1.GoneException({
|
|
236
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
237
|
+
...contents,
|
|
238
|
+
});
|
|
239
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
306
240
|
};
|
|
307
241
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
308
|
-
const contents = {
|
|
309
|
-
name: "LimitExceededException",
|
|
310
|
-
$fault: "client",
|
|
311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
312
|
-
};
|
|
242
|
+
const contents = {};
|
|
313
243
|
const data = parsedOutput.body;
|
|
314
|
-
|
|
244
|
+
const exception = new models_0_1.LimitExceededException({
|
|
245
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
246
|
+
...contents,
|
|
247
|
+
});
|
|
248
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
315
249
|
};
|
|
316
250
|
const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOutput, context) => {
|
|
317
|
-
const contents = {
|
|
318
|
-
name: "PayloadTooLargeException",
|
|
319
|
-
$fault: "client",
|
|
320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
321
|
-
Message: undefined,
|
|
322
|
-
};
|
|
251
|
+
const contents = {};
|
|
323
252
|
const data = parsedOutput.body;
|
|
324
253
|
if (data.message !== undefined && data.message !== null) {
|
|
325
254
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
326
255
|
}
|
|
327
|
-
|
|
256
|
+
const exception = new models_0_1.PayloadTooLargeException({
|
|
257
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
258
|
+
...contents,
|
|
259
|
+
});
|
|
260
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
328
261
|
};
|
|
329
262
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
330
263
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var ApiGatewayManagementApiServiceException = (function (_super) {
|
|
4
|
+
__extends(ApiGatewayManagementApiServiceException, _super);
|
|
5
|
+
function ApiGatewayManagementApiServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ApiGatewayManagementApiServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return ApiGatewayManagementApiServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ApiGatewayManagementApiServiceException };
|
|
@@ -1,8 +1,45 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { ApiGatewayManagementApiServiceException as __BaseException } from "./ApiGatewayManagementApiServiceException";
|
|
2
3
|
export var DeleteConnectionRequest;
|
|
3
4
|
(function (DeleteConnectionRequest) {
|
|
4
5
|
DeleteConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
6
|
})(DeleteConnectionRequest || (DeleteConnectionRequest = {}));
|
|
7
|
+
var ForbiddenException = (function (_super) {
|
|
8
|
+
__extends(ForbiddenException, _super);
|
|
9
|
+
function ForbiddenException(opts) {
|
|
10
|
+
var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
|
|
11
|
+
_this.name = "ForbiddenException";
|
|
12
|
+
_this.$fault = "client";
|
|
13
|
+
Object.setPrototypeOf(_this, ForbiddenException.prototype);
|
|
14
|
+
return _this;
|
|
15
|
+
}
|
|
16
|
+
return ForbiddenException;
|
|
17
|
+
}(__BaseException));
|
|
18
|
+
export { ForbiddenException };
|
|
19
|
+
var GoneException = (function (_super) {
|
|
20
|
+
__extends(GoneException, _super);
|
|
21
|
+
function GoneException(opts) {
|
|
22
|
+
var _this = _super.call(this, __assign({ name: "GoneException", $fault: "client" }, opts)) || this;
|
|
23
|
+
_this.name = "GoneException";
|
|
24
|
+
_this.$fault = "client";
|
|
25
|
+
Object.setPrototypeOf(_this, GoneException.prototype);
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return GoneException;
|
|
29
|
+
}(__BaseException));
|
|
30
|
+
export { GoneException };
|
|
31
|
+
var LimitExceededException = (function (_super) {
|
|
32
|
+
__extends(LimitExceededException, _super);
|
|
33
|
+
function LimitExceededException(opts) {
|
|
34
|
+
var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
|
|
35
|
+
_this.name = "LimitExceededException";
|
|
36
|
+
_this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(_this, LimitExceededException.prototype);
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
return LimitExceededException;
|
|
41
|
+
}(__BaseException));
|
|
42
|
+
export { LimitExceededException };
|
|
6
43
|
export var GetConnectionRequest;
|
|
7
44
|
(function (GetConnectionRequest) {
|
|
8
45
|
GetConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,6 +52,19 @@ export var GetConnectionResponse;
|
|
|
15
52
|
(function (GetConnectionResponse) {
|
|
16
53
|
GetConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
54
|
})(GetConnectionResponse || (GetConnectionResponse = {}));
|
|
55
|
+
var PayloadTooLargeException = (function (_super) {
|
|
56
|
+
__extends(PayloadTooLargeException, _super);
|
|
57
|
+
function PayloadTooLargeException(opts) {
|
|
58
|
+
var _this = _super.call(this, __assign({ name: "PayloadTooLargeException", $fault: "client" }, opts)) || this;
|
|
59
|
+
_this.name = "PayloadTooLargeException";
|
|
60
|
+
_this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(_this, PayloadTooLargeException.prototype);
|
|
62
|
+
_this.Message = opts.Message;
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
return PayloadTooLargeException;
|
|
66
|
+
}(__BaseException));
|
|
67
|
+
export { PayloadTooLargeException };
|
|
18
68
|
export var PostToConnectionRequest;
|
|
19
69
|
(function (PostToConnectionRequest) {
|
|
20
70
|
PostToConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|