@aws-sdk/client-apigatewaymanagementapi 3.503.1 → 3.507.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 +5 -55
- package/dist-es/protocols/Aws_restJson1.js +4 -54
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -253,7 +253,7 @@ var se_PostToConnectionCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
253
253
|
}, "se_PostToConnectionCommand");
|
|
254
254
|
var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
255
255
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
256
|
-
return
|
|
256
|
+
return de_CommandError(output, context);
|
|
257
257
|
}
|
|
258
258
|
const contents = (0, import_smithy_client.map)({
|
|
259
259
|
$metadata: deserializeMetadata(output)
|
|
@@ -261,34 +261,9 @@ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
261
261
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
262
262
|
return contents;
|
|
263
263
|
}, "de_DeleteConnectionCommand");
|
|
264
|
-
var de_DeleteConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
265
|
-
const parsedOutput = {
|
|
266
|
-
...output,
|
|
267
|
-
body: await parseErrorBody(output.body, context)
|
|
268
|
-
};
|
|
269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
|
-
switch (errorCode) {
|
|
271
|
-
case "ForbiddenException":
|
|
272
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
273
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
274
|
-
case "GoneException":
|
|
275
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
276
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
277
|
-
case "LimitExceededException":
|
|
278
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
279
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
280
|
-
default:
|
|
281
|
-
const parsedBody = parsedOutput.body;
|
|
282
|
-
return throwDefaultError({
|
|
283
|
-
output,
|
|
284
|
-
parsedBody,
|
|
285
|
-
errorCode
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
}, "de_DeleteConnectionCommandError");
|
|
289
264
|
var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
290
265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
291
|
-
return
|
|
266
|
+
return de_CommandError(output, context);
|
|
292
267
|
}
|
|
293
268
|
const contents = (0, import_smithy_client.map)({
|
|
294
269
|
$metadata: deserializeMetadata(output)
|
|
@@ -302,34 +277,9 @@ var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
302
277
|
Object.assign(contents, doc);
|
|
303
278
|
return contents;
|
|
304
279
|
}, "de_GetConnectionCommand");
|
|
305
|
-
var de_GetConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
306
|
-
const parsedOutput = {
|
|
307
|
-
...output,
|
|
308
|
-
body: await parseErrorBody(output.body, context)
|
|
309
|
-
};
|
|
310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
311
|
-
switch (errorCode) {
|
|
312
|
-
case "ForbiddenException":
|
|
313
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
314
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
315
|
-
case "GoneException":
|
|
316
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
317
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
318
|
-
case "LimitExceededException":
|
|
319
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
320
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
321
|
-
default:
|
|
322
|
-
const parsedBody = parsedOutput.body;
|
|
323
|
-
return throwDefaultError({
|
|
324
|
-
output,
|
|
325
|
-
parsedBody,
|
|
326
|
-
errorCode
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
}, "de_GetConnectionCommandError");
|
|
330
280
|
var de_PostToConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
331
281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
-
return
|
|
282
|
+
return de_CommandError(output, context);
|
|
333
283
|
}
|
|
334
284
|
const contents = (0, import_smithy_client.map)({
|
|
335
285
|
$metadata: deserializeMetadata(output)
|
|
@@ -337,7 +287,7 @@ var de_PostToConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
337
287
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
338
288
|
return contents;
|
|
339
289
|
}, "de_PostToConnectionCommand");
|
|
340
|
-
var
|
|
290
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
341
291
|
const parsedOutput = {
|
|
342
292
|
...output,
|
|
343
293
|
body: await parseErrorBody(output.body, context)
|
|
@@ -364,7 +314,7 @@ var de_PostToConnectionCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
364
314
|
errorCode
|
|
365
315
|
});
|
|
366
316
|
}
|
|
367
|
-
}, "
|
|
317
|
+
}, "de_CommandError");
|
|
368
318
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ApiGatewayManagementApiServiceException);
|
|
369
319
|
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
370
320
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -36,7 +36,7 @@ export const se_PostToConnectionCommand = async (input, context) => {
|
|
|
36
36
|
};
|
|
37
37
|
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
38
38
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
39
|
-
return
|
|
39
|
+
return de_CommandError(output, context);
|
|
40
40
|
}
|
|
41
41
|
const contents = map({
|
|
42
42
|
$metadata: deserializeMetadata(output),
|
|
@@ -44,34 +44,9 @@ export const de_DeleteConnectionCommand = async (output, context) => {
|
|
|
44
44
|
await collectBody(output.body, context);
|
|
45
45
|
return contents;
|
|
46
46
|
};
|
|
47
|
-
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
48
|
-
const parsedOutput = {
|
|
49
|
-
...output,
|
|
50
|
-
body: await parseErrorBody(output.body, context),
|
|
51
|
-
};
|
|
52
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
53
|
-
switch (errorCode) {
|
|
54
|
-
case "ForbiddenException":
|
|
55
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
56
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
57
|
-
case "GoneException":
|
|
58
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
59
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
60
|
-
case "LimitExceededException":
|
|
61
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
62
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
63
|
-
default:
|
|
64
|
-
const parsedBody = parsedOutput.body;
|
|
65
|
-
return throwDefaultError({
|
|
66
|
-
output,
|
|
67
|
-
parsedBody,
|
|
68
|
-
errorCode,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
47
|
export const de_GetConnectionCommand = async (output, context) => {
|
|
73
48
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
74
|
-
return
|
|
49
|
+
return de_CommandError(output, context);
|
|
75
50
|
}
|
|
76
51
|
const contents = map({
|
|
77
52
|
$metadata: deserializeMetadata(output),
|
|
@@ -85,34 +60,9 @@ export const de_GetConnectionCommand = async (output, context) => {
|
|
|
85
60
|
Object.assign(contents, doc);
|
|
86
61
|
return contents;
|
|
87
62
|
};
|
|
88
|
-
const de_GetConnectionCommandError = async (output, context) => {
|
|
89
|
-
const parsedOutput = {
|
|
90
|
-
...output,
|
|
91
|
-
body: await parseErrorBody(output.body, context),
|
|
92
|
-
};
|
|
93
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
94
|
-
switch (errorCode) {
|
|
95
|
-
case "ForbiddenException":
|
|
96
|
-
case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
|
|
97
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
98
|
-
case "GoneException":
|
|
99
|
-
case "com.amazonaws.apigatewaymanagementapi#GoneException":
|
|
100
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
101
|
-
case "LimitExceededException":
|
|
102
|
-
case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
|
|
103
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
104
|
-
default:
|
|
105
|
-
const parsedBody = parsedOutput.body;
|
|
106
|
-
return throwDefaultError({
|
|
107
|
-
output,
|
|
108
|
-
parsedBody,
|
|
109
|
-
errorCode,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
63
|
export const de_PostToConnectionCommand = async (output, context) => {
|
|
114
64
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
115
|
-
return
|
|
65
|
+
return de_CommandError(output, context);
|
|
116
66
|
}
|
|
117
67
|
const contents = map({
|
|
118
68
|
$metadata: deserializeMetadata(output),
|
|
@@ -120,7 +70,7 @@ export const de_PostToConnectionCommand = async (output, context) => {
|
|
|
120
70
|
await collectBody(output.body, context);
|
|
121
71
|
return contents;
|
|
122
72
|
};
|
|
123
|
-
const
|
|
73
|
+
const de_CommandError = async (output, context) => {
|
|
124
74
|
const parsedOutput = {
|
|
125
75
|
...output,
|
|
126
76
|
body: await parseErrorBody(output.body, context),
|
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.507.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|