@aws-sdk/client-lambda 3.56.0 → 3.67.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/README.md +2 -2
- package/dist-cjs/Lambda.js +75 -0
- package/dist-cjs/commands/CreateFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/DeleteFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/GetFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/ListFunctionUrlConfigsCommand.js +36 -0
- package/dist-cjs/commands/UpdateFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +75 -4
- package/dist-cjs/pagination/ListFunctionUrlConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +585 -3
- package/dist-es/Lambda.js +75 -0
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +39 -0
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +719 -27
- package/dist-types/Lambda.d.ts +37 -0
- package/dist-types/LambdaClient.d.ts +7 -2
- package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +36 -0
- package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +36 -0
- package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +35 -0
- package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +412 -0
- package/dist-types/pagination/ListFunctionUrlConfigsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Lambda.d.ts +25 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFunctionUrlConfigsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +166 -0
- package/dist-types/ts3.4/pagination/ListFunctionUrlConfigsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +18 -18
|
@@ -74,8 +74,9 @@ export var serializeAws_restJson1AddPermissionCommand = function (input, context
|
|
|
74
74
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
75
75
|
}
|
|
76
76
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
77
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.EventSourceToken !== undefined &&
|
|
78
|
-
input.EventSourceToken !== null && { EventSourceToken: input.EventSourceToken })), (input.
|
|
77
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.EventSourceToken !== undefined &&
|
|
78
|
+
input.EventSourceToken !== null && { EventSourceToken: input.EventSourceToken })), (input.FunctionUrlAuthType !== undefined &&
|
|
79
|
+
input.FunctionUrlAuthType !== null && { FunctionUrlAuthType: input.FunctionUrlAuthType })), (input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal })), (input.PrincipalOrgID !== undefined &&
|
|
79
80
|
input.PrincipalOrgID !== null && { PrincipalOrgID: input.PrincipalOrgID })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.SourceAccount !== undefined && input.SourceAccount !== null && { SourceAccount: input.SourceAccount })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.StatementId !== undefined && input.StatementId !== null && { StatementId: input.StatementId })));
|
|
80
81
|
return [2, new __HttpRequest({
|
|
81
82
|
protocol: protocol,
|
|
@@ -258,6 +259,42 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
258
259
|
}
|
|
259
260
|
});
|
|
260
261
|
}); };
|
|
262
|
+
export var serializeAws_restJson1CreateFunctionUrlConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
263
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
264
|
+
return __generator(this, function (_c) {
|
|
265
|
+
switch (_c.label) {
|
|
266
|
+
case 0: return [4, context.endpoint()];
|
|
267
|
+
case 1:
|
|
268
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
269
|
+
headers = {
|
|
270
|
+
"content-type": "application/json",
|
|
271
|
+
};
|
|
272
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-10-31/functions/{FunctionName}/url";
|
|
273
|
+
if (input.FunctionName !== undefined) {
|
|
274
|
+
labelValue = input.FunctionName;
|
|
275
|
+
if (labelValue.length <= 0) {
|
|
276
|
+
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
277
|
+
}
|
|
278
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", __extendedEncodeURIComponent(labelValue));
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
282
|
+
}
|
|
283
|
+
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
284
|
+
body = JSON.stringify(__assign(__assign({}, (input.AuthType !== undefined && input.AuthType !== null && { AuthType: input.AuthType })), (input.Cors !== undefined && input.Cors !== null && { Cors: serializeAws_restJson1Cors(input.Cors, context) })));
|
|
285
|
+
return [2, new __HttpRequest({
|
|
286
|
+
protocol: protocol,
|
|
287
|
+
hostname: hostname,
|
|
288
|
+
port: port,
|
|
289
|
+
method: "POST",
|
|
290
|
+
headers: headers,
|
|
291
|
+
path: resolvedPath,
|
|
292
|
+
query: query,
|
|
293
|
+
body: body,
|
|
294
|
+
})];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}); };
|
|
261
298
|
export var serializeAws_restJson1DeleteAliasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
262
299
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
263
300
|
return __generator(this, function (_c) {
|
|
@@ -494,6 +531,39 @@ export var serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = functi
|
|
|
494
531
|
}
|
|
495
532
|
});
|
|
496
533
|
}); };
|
|
534
|
+
export var serializeAws_restJson1DeleteFunctionUrlConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
536
|
+
return __generator(this, function (_c) {
|
|
537
|
+
switch (_c.label) {
|
|
538
|
+
case 0: return [4, context.endpoint()];
|
|
539
|
+
case 1:
|
|
540
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
541
|
+
headers = {};
|
|
542
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-10-31/functions/{FunctionName}/url";
|
|
543
|
+
if (input.FunctionName !== undefined) {
|
|
544
|
+
labelValue = input.FunctionName;
|
|
545
|
+
if (labelValue.length <= 0) {
|
|
546
|
+
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
547
|
+
}
|
|
548
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", __extendedEncodeURIComponent(labelValue));
|
|
549
|
+
}
|
|
550
|
+
else {
|
|
551
|
+
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
552
|
+
}
|
|
553
|
+
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
554
|
+
return [2, new __HttpRequest({
|
|
555
|
+
protocol: protocol,
|
|
556
|
+
hostname: hostname,
|
|
557
|
+
port: port,
|
|
558
|
+
method: "DELETE",
|
|
559
|
+
headers: headers,
|
|
560
|
+
path: resolvedPath,
|
|
561
|
+
query: query,
|
|
562
|
+
body: body,
|
|
563
|
+
})];
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}); };
|
|
497
567
|
export var serializeAws_restJson1DeleteLayerVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
498
568
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
499
569
|
return __generator(this, function (_c) {
|
|
@@ -864,6 +934,39 @@ export var serializeAws_restJson1GetFunctionEventInvokeConfigCommand = function
|
|
|
864
934
|
}
|
|
865
935
|
});
|
|
866
936
|
}); };
|
|
937
|
+
export var serializeAws_restJson1GetFunctionUrlConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
938
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
939
|
+
return __generator(this, function (_c) {
|
|
940
|
+
switch (_c.label) {
|
|
941
|
+
case 0: return [4, context.endpoint()];
|
|
942
|
+
case 1:
|
|
943
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
944
|
+
headers = {};
|
|
945
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-10-31/functions/{FunctionName}/url";
|
|
946
|
+
if (input.FunctionName !== undefined) {
|
|
947
|
+
labelValue = input.FunctionName;
|
|
948
|
+
if (labelValue.length <= 0) {
|
|
949
|
+
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
950
|
+
}
|
|
951
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", __extendedEncodeURIComponent(labelValue));
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
955
|
+
}
|
|
956
|
+
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
957
|
+
return [2, new __HttpRequest({
|
|
958
|
+
protocol: protocol,
|
|
959
|
+
hostname: hostname,
|
|
960
|
+
port: port,
|
|
961
|
+
method: "GET",
|
|
962
|
+
headers: headers,
|
|
963
|
+
path: resolvedPath,
|
|
964
|
+
query: query,
|
|
965
|
+
body: body,
|
|
966
|
+
})];
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
}); };
|
|
867
970
|
export var serializeAws_restJson1GetLayerVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
868
971
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
869
972
|
return __generator(this, function (_c) {
|
|
@@ -1284,6 +1387,39 @@ export var serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = funct
|
|
|
1284
1387
|
}
|
|
1285
1388
|
});
|
|
1286
1389
|
}); };
|
|
1390
|
+
export var serializeAws_restJson1ListFunctionUrlConfigsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1391
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1392
|
+
return __generator(this, function (_c) {
|
|
1393
|
+
switch (_c.label) {
|
|
1394
|
+
case 0: return [4, context.endpoint()];
|
|
1395
|
+
case 1:
|
|
1396
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1397
|
+
headers = {};
|
|
1398
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-10-31/functions/{FunctionName}/urls";
|
|
1399
|
+
if (input.FunctionName !== undefined) {
|
|
1400
|
+
labelValue = input.FunctionName;
|
|
1401
|
+
if (labelValue.length <= 0) {
|
|
1402
|
+
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
1403
|
+
}
|
|
1404
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", __extendedEncodeURIComponent(labelValue));
|
|
1405
|
+
}
|
|
1406
|
+
else {
|
|
1407
|
+
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1408
|
+
}
|
|
1409
|
+
query = __assign(__assign({}, (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
1410
|
+
return [2, new __HttpRequest({
|
|
1411
|
+
protocol: protocol,
|
|
1412
|
+
hostname: hostname,
|
|
1413
|
+
port: port,
|
|
1414
|
+
method: "GET",
|
|
1415
|
+
headers: headers,
|
|
1416
|
+
path: resolvedPath,
|
|
1417
|
+
query: query,
|
|
1418
|
+
body: body,
|
|
1419
|
+
})];
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
}); };
|
|
1287
1423
|
export var serializeAws_restJson1ListLayersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1288
1424
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1289
1425
|
return __generator(this, function (_c) {
|
|
@@ -2111,6 +2247,42 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
|
|
|
2111
2247
|
}
|
|
2112
2248
|
});
|
|
2113
2249
|
}); };
|
|
2250
|
+
export var serializeAws_restJson1UpdateFunctionUrlConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2251
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2252
|
+
return __generator(this, function (_c) {
|
|
2253
|
+
switch (_c.label) {
|
|
2254
|
+
case 0: return [4, context.endpoint()];
|
|
2255
|
+
case 1:
|
|
2256
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2257
|
+
headers = {
|
|
2258
|
+
"content-type": "application/json",
|
|
2259
|
+
};
|
|
2260
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-10-31/functions/{FunctionName}/url";
|
|
2261
|
+
if (input.FunctionName !== undefined) {
|
|
2262
|
+
labelValue = input.FunctionName;
|
|
2263
|
+
if (labelValue.length <= 0) {
|
|
2264
|
+
throw new Error("Empty value provided for input HTTP label: FunctionName.");
|
|
2265
|
+
}
|
|
2266
|
+
resolvedPath = resolvedPath.replace("{FunctionName}", __extendedEncodeURIComponent(labelValue));
|
|
2267
|
+
}
|
|
2268
|
+
else {
|
|
2269
|
+
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2270
|
+
}
|
|
2271
|
+
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
2272
|
+
body = JSON.stringify(__assign(__assign({}, (input.AuthType !== undefined && input.AuthType !== null && { AuthType: input.AuthType })), (input.Cors !== undefined && input.Cors !== null && { Cors: serializeAws_restJson1Cors(input.Cors, context) })));
|
|
2273
|
+
return [2, new __HttpRequest({
|
|
2274
|
+
protocol: protocol,
|
|
2275
|
+
hostname: hostname,
|
|
2276
|
+
port: port,
|
|
2277
|
+
method: "PUT",
|
|
2278
|
+
headers: headers,
|
|
2279
|
+
path: resolvedPath,
|
|
2280
|
+
query: query,
|
|
2281
|
+
body: body,
|
|
2282
|
+
})];
|
|
2283
|
+
}
|
|
2284
|
+
});
|
|
2285
|
+
}); };
|
|
2114
2286
|
export var deserializeAws_restJson1AddLayerVersionPermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2115
2287
|
var contents, data, _a, _b;
|
|
2116
2288
|
return __generator(this, function (_c) {
|
|
@@ -2803,6 +2975,94 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
|
|
|
2803
2975
|
}
|
|
2804
2976
|
});
|
|
2805
2977
|
}); };
|
|
2978
|
+
export var deserializeAws_restJson1CreateFunctionUrlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2979
|
+
var contents, data, _a, _b;
|
|
2980
|
+
return __generator(this, function (_c) {
|
|
2981
|
+
switch (_c.label) {
|
|
2982
|
+
case 0:
|
|
2983
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2984
|
+
return [2, deserializeAws_restJson1CreateFunctionUrlConfigCommandError(output, context)];
|
|
2985
|
+
}
|
|
2986
|
+
contents = {
|
|
2987
|
+
$metadata: deserializeMetadata(output),
|
|
2988
|
+
AuthType: undefined,
|
|
2989
|
+
Cors: undefined,
|
|
2990
|
+
CreationTime: undefined,
|
|
2991
|
+
FunctionArn: undefined,
|
|
2992
|
+
FunctionUrl: undefined,
|
|
2993
|
+
};
|
|
2994
|
+
_a = __expectNonNull;
|
|
2995
|
+
_b = __expectObject;
|
|
2996
|
+
return [4, parseBody(output.body, context)];
|
|
2997
|
+
case 1:
|
|
2998
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2999
|
+
if (data.AuthType !== undefined && data.AuthType !== null) {
|
|
3000
|
+
contents.AuthType = __expectString(data.AuthType);
|
|
3001
|
+
}
|
|
3002
|
+
if (data.Cors !== undefined && data.Cors !== null) {
|
|
3003
|
+
contents.Cors = deserializeAws_restJson1Cors(data.Cors, context);
|
|
3004
|
+
}
|
|
3005
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
3006
|
+
contents.CreationTime = __expectString(data.CreationTime);
|
|
3007
|
+
}
|
|
3008
|
+
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
3009
|
+
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
3010
|
+
}
|
|
3011
|
+
if (data.FunctionUrl !== undefined && data.FunctionUrl !== null) {
|
|
3012
|
+
contents.FunctionUrl = __expectString(data.FunctionUrl);
|
|
3013
|
+
}
|
|
3014
|
+
return [2, Promise.resolve(contents)];
|
|
3015
|
+
}
|
|
3016
|
+
});
|
|
3017
|
+
}); };
|
|
3018
|
+
var deserializeAws_restJson1CreateFunctionUrlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3019
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3020
|
+
var _c;
|
|
3021
|
+
return __generator(this, function (_d) {
|
|
3022
|
+
switch (_d.label) {
|
|
3023
|
+
case 0:
|
|
3024
|
+
_a = [__assign({}, output)];
|
|
3025
|
+
_c = {};
|
|
3026
|
+
return [4, parseBody(output.body, context)];
|
|
3027
|
+
case 1:
|
|
3028
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3029
|
+
errorCode = "UnknownError";
|
|
3030
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3031
|
+
_b = errorCode;
|
|
3032
|
+
switch (_b) {
|
|
3033
|
+
case "InvalidParameterValueException": return [3, 2];
|
|
3034
|
+
case "com.amazonaws.lambda#InvalidParameterValueException": return [3, 2];
|
|
3035
|
+
case "ResourceConflictException": return [3, 4];
|
|
3036
|
+
case "com.amazonaws.lambda#ResourceConflictException": return [3, 4];
|
|
3037
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3038
|
+
case "com.amazonaws.lambda#ResourceNotFoundException": return [3, 6];
|
|
3039
|
+
case "ServiceException": return [3, 8];
|
|
3040
|
+
case "com.amazonaws.lambda#ServiceException": return [3, 8];
|
|
3041
|
+
case "TooManyRequestsException": return [3, 10];
|
|
3042
|
+
case "com.amazonaws.lambda#TooManyRequestsException": return [3, 10];
|
|
3043
|
+
}
|
|
3044
|
+
return [3, 12];
|
|
3045
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
3046
|
+
case 3: throw _d.sent();
|
|
3047
|
+
case 4: return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
3048
|
+
case 5: throw _d.sent();
|
|
3049
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3050
|
+
case 7: throw _d.sent();
|
|
3051
|
+
case 8: return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
|
|
3052
|
+
case 9: throw _d.sent();
|
|
3053
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3054
|
+
case 11: throw _d.sent();
|
|
3055
|
+
case 12:
|
|
3056
|
+
parsedBody = parsedOutput.body;
|
|
3057
|
+
response = new __BaseException({
|
|
3058
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3059
|
+
$fault: "client",
|
|
3060
|
+
$metadata: deserializeMetadata(output),
|
|
3061
|
+
});
|
|
3062
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
}); };
|
|
2806
3066
|
export var deserializeAws_restJson1DeleteAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2807
3067
|
var contents;
|
|
2808
3068
|
return __generator(this, function (_a) {
|
|
@@ -3355,6 +3615,68 @@ var deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = functi
|
|
|
3355
3615
|
}
|
|
3356
3616
|
});
|
|
3357
3617
|
}); };
|
|
3618
|
+
export var deserializeAws_restJson1DeleteFunctionUrlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3619
|
+
var contents;
|
|
3620
|
+
return __generator(this, function (_a) {
|
|
3621
|
+
switch (_a.label) {
|
|
3622
|
+
case 0:
|
|
3623
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3624
|
+
return [2, deserializeAws_restJson1DeleteFunctionUrlConfigCommandError(output, context)];
|
|
3625
|
+
}
|
|
3626
|
+
contents = {
|
|
3627
|
+
$metadata: deserializeMetadata(output),
|
|
3628
|
+
};
|
|
3629
|
+
return [4, collectBody(output.body, context)];
|
|
3630
|
+
case 1:
|
|
3631
|
+
_a.sent();
|
|
3632
|
+
return [2, Promise.resolve(contents)];
|
|
3633
|
+
}
|
|
3634
|
+
});
|
|
3635
|
+
}); };
|
|
3636
|
+
var deserializeAws_restJson1DeleteFunctionUrlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3637
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3638
|
+
var _c;
|
|
3639
|
+
return __generator(this, function (_d) {
|
|
3640
|
+
switch (_d.label) {
|
|
3641
|
+
case 0:
|
|
3642
|
+
_a = [__assign({}, output)];
|
|
3643
|
+
_c = {};
|
|
3644
|
+
return [4, parseBody(output.body, context)];
|
|
3645
|
+
case 1:
|
|
3646
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3647
|
+
errorCode = "UnknownError";
|
|
3648
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3649
|
+
_b = errorCode;
|
|
3650
|
+
switch (_b) {
|
|
3651
|
+
case "ResourceConflictException": return [3, 2];
|
|
3652
|
+
case "com.amazonaws.lambda#ResourceConflictException": return [3, 2];
|
|
3653
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3654
|
+
case "com.amazonaws.lambda#ResourceNotFoundException": return [3, 4];
|
|
3655
|
+
case "ServiceException": return [3, 6];
|
|
3656
|
+
case "com.amazonaws.lambda#ServiceException": return [3, 6];
|
|
3657
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3658
|
+
case "com.amazonaws.lambda#TooManyRequestsException": return [3, 8];
|
|
3659
|
+
}
|
|
3660
|
+
return [3, 10];
|
|
3661
|
+
case 2: return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
3662
|
+
case 3: throw _d.sent();
|
|
3663
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3664
|
+
case 5: throw _d.sent();
|
|
3665
|
+
case 6: return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
|
|
3666
|
+
case 7: throw _d.sent();
|
|
3667
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3668
|
+
case 9: throw _d.sent();
|
|
3669
|
+
case 10:
|
|
3670
|
+
parsedBody = parsedOutput.body;
|
|
3671
|
+
response = new __BaseException({
|
|
3672
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3673
|
+
$fault: "client",
|
|
3674
|
+
$metadata: deserializeMetadata(output),
|
|
3675
|
+
});
|
|
3676
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3677
|
+
}
|
|
3678
|
+
});
|
|
3679
|
+
}); };
|
|
3358
3680
|
export var deserializeAws_restJson1DeleteLayerVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3359
3681
|
var contents;
|
|
3360
3682
|
return __generator(this, function (_a) {
|
|
@@ -4203,23 +4525,107 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4203
4525
|
if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
|
|
4204
4526
|
contents.StateReasonCode = __expectString(data.StateReasonCode);
|
|
4205
4527
|
}
|
|
4206
|
-
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
4207
|
-
contents.Timeout = __expectInt32(data.Timeout);
|
|
4528
|
+
if (data.Timeout !== undefined && data.Timeout !== null) {
|
|
4529
|
+
contents.Timeout = __expectInt32(data.Timeout);
|
|
4530
|
+
}
|
|
4531
|
+
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
4532
|
+
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
4533
|
+
}
|
|
4534
|
+
if (data.Version !== undefined && data.Version !== null) {
|
|
4535
|
+
contents.Version = __expectString(data.Version);
|
|
4536
|
+
}
|
|
4537
|
+
if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
|
|
4538
|
+
contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
|
|
4539
|
+
}
|
|
4540
|
+
return [2, Promise.resolve(contents)];
|
|
4541
|
+
}
|
|
4542
|
+
});
|
|
4543
|
+
}); };
|
|
4544
|
+
var deserializeAws_restJson1GetFunctionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4545
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4546
|
+
var _c;
|
|
4547
|
+
return __generator(this, function (_d) {
|
|
4548
|
+
switch (_d.label) {
|
|
4549
|
+
case 0:
|
|
4550
|
+
_a = [__assign({}, output)];
|
|
4551
|
+
_c = {};
|
|
4552
|
+
return [4, parseBody(output.body, context)];
|
|
4553
|
+
case 1:
|
|
4554
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4555
|
+
errorCode = "UnknownError";
|
|
4556
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4557
|
+
_b = errorCode;
|
|
4558
|
+
switch (_b) {
|
|
4559
|
+
case "InvalidParameterValueException": return [3, 2];
|
|
4560
|
+
case "com.amazonaws.lambda#InvalidParameterValueException": return [3, 2];
|
|
4561
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
4562
|
+
case "com.amazonaws.lambda#ResourceNotFoundException": return [3, 4];
|
|
4563
|
+
case "ServiceException": return [3, 6];
|
|
4564
|
+
case "com.amazonaws.lambda#ServiceException": return [3, 6];
|
|
4565
|
+
case "TooManyRequestsException": return [3, 8];
|
|
4566
|
+
case "com.amazonaws.lambda#TooManyRequestsException": return [3, 8];
|
|
4567
|
+
}
|
|
4568
|
+
return [3, 10];
|
|
4569
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
4570
|
+
case 3: throw _d.sent();
|
|
4571
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4572
|
+
case 5: throw _d.sent();
|
|
4573
|
+
case 6: return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
|
|
4574
|
+
case 7: throw _d.sent();
|
|
4575
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4576
|
+
case 9: throw _d.sent();
|
|
4577
|
+
case 10:
|
|
4578
|
+
parsedBody = parsedOutput.body;
|
|
4579
|
+
response = new __BaseException({
|
|
4580
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4581
|
+
$fault: "client",
|
|
4582
|
+
$metadata: deserializeMetadata(output),
|
|
4583
|
+
});
|
|
4584
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4585
|
+
}
|
|
4586
|
+
});
|
|
4587
|
+
}); };
|
|
4588
|
+
export var deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4589
|
+
var contents, data, _a, _b;
|
|
4590
|
+
return __generator(this, function (_c) {
|
|
4591
|
+
switch (_c.label) {
|
|
4592
|
+
case 0:
|
|
4593
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4594
|
+
return [2, deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError(output, context)];
|
|
4595
|
+
}
|
|
4596
|
+
contents = {
|
|
4597
|
+
$metadata: deserializeMetadata(output),
|
|
4598
|
+
DestinationConfig: undefined,
|
|
4599
|
+
FunctionArn: undefined,
|
|
4600
|
+
LastModified: undefined,
|
|
4601
|
+
MaximumEventAgeInSeconds: undefined,
|
|
4602
|
+
MaximumRetryAttempts: undefined,
|
|
4603
|
+
};
|
|
4604
|
+
_a = __expectNonNull;
|
|
4605
|
+
_b = __expectObject;
|
|
4606
|
+
return [4, parseBody(output.body, context)];
|
|
4607
|
+
case 1:
|
|
4608
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4609
|
+
if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
|
|
4610
|
+
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
4611
|
+
}
|
|
4612
|
+
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4613
|
+
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
4208
4614
|
}
|
|
4209
|
-
if (data.
|
|
4210
|
-
contents.
|
|
4615
|
+
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4616
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
4211
4617
|
}
|
|
4212
|
-
if (data.
|
|
4213
|
-
contents.
|
|
4618
|
+
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4619
|
+
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
4214
4620
|
}
|
|
4215
|
-
if (data.
|
|
4216
|
-
contents.
|
|
4621
|
+
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
4622
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
4217
4623
|
}
|
|
4218
4624
|
return [2, Promise.resolve(contents)];
|
|
4219
4625
|
}
|
|
4220
4626
|
});
|
|
4221
4627
|
}); };
|
|
4222
|
-
var
|
|
4628
|
+
var deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4223
4629
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4224
4630
|
var _c;
|
|
4225
4631
|
return __generator(this, function (_d) {
|
|
@@ -4263,47 +4669,51 @@ var deserializeAws_restJson1GetFunctionConfigurationCommandError = function (out
|
|
|
4263
4669
|
}
|
|
4264
4670
|
});
|
|
4265
4671
|
}); };
|
|
4266
|
-
export var
|
|
4672
|
+
export var deserializeAws_restJson1GetFunctionUrlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4267
4673
|
var contents, data, _a, _b;
|
|
4268
4674
|
return __generator(this, function (_c) {
|
|
4269
4675
|
switch (_c.label) {
|
|
4270
4676
|
case 0:
|
|
4271
4677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4272
|
-
return [2,
|
|
4678
|
+
return [2, deserializeAws_restJson1GetFunctionUrlConfigCommandError(output, context)];
|
|
4273
4679
|
}
|
|
4274
4680
|
contents = {
|
|
4275
4681
|
$metadata: deserializeMetadata(output),
|
|
4276
|
-
|
|
4682
|
+
AuthType: undefined,
|
|
4683
|
+
Cors: undefined,
|
|
4684
|
+
CreationTime: undefined,
|
|
4277
4685
|
FunctionArn: undefined,
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
MaximumRetryAttempts: undefined,
|
|
4686
|
+
FunctionUrl: undefined,
|
|
4687
|
+
LastModifiedTime: undefined,
|
|
4281
4688
|
};
|
|
4282
4689
|
_a = __expectNonNull;
|
|
4283
4690
|
_b = __expectObject;
|
|
4284
4691
|
return [4, parseBody(output.body, context)];
|
|
4285
4692
|
case 1:
|
|
4286
4693
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4287
|
-
if (data.
|
|
4288
|
-
contents.
|
|
4694
|
+
if (data.AuthType !== undefined && data.AuthType !== null) {
|
|
4695
|
+
contents.AuthType = __expectString(data.AuthType);
|
|
4696
|
+
}
|
|
4697
|
+
if (data.Cors !== undefined && data.Cors !== null) {
|
|
4698
|
+
contents.Cors = deserializeAws_restJson1Cors(data.Cors, context);
|
|
4699
|
+
}
|
|
4700
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
4701
|
+
contents.CreationTime = __expectString(data.CreationTime);
|
|
4289
4702
|
}
|
|
4290
4703
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4291
4704
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
4292
4705
|
}
|
|
4293
|
-
if (data.
|
|
4294
|
-
contents.
|
|
4295
|
-
}
|
|
4296
|
-
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4297
|
-
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
4706
|
+
if (data.FunctionUrl !== undefined && data.FunctionUrl !== null) {
|
|
4707
|
+
contents.FunctionUrl = __expectString(data.FunctionUrl);
|
|
4298
4708
|
}
|
|
4299
|
-
if (data.
|
|
4300
|
-
contents.
|
|
4709
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
4710
|
+
contents.LastModifiedTime = __expectString(data.LastModifiedTime);
|
|
4301
4711
|
}
|
|
4302
4712
|
return [2, Promise.resolve(contents)];
|
|
4303
4713
|
}
|
|
4304
4714
|
});
|
|
4305
4715
|
}); };
|
|
4306
|
-
var
|
|
4716
|
+
var deserializeAws_restJson1GetFunctionUrlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4307
4717
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4308
4718
|
var _c;
|
|
4309
4719
|
return __generator(this, function (_d) {
|
|
@@ -5440,6 +5850,78 @@ var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = funct
|
|
|
5440
5850
|
}
|
|
5441
5851
|
});
|
|
5442
5852
|
}); };
|
|
5853
|
+
export var deserializeAws_restJson1ListFunctionUrlConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5854
|
+
var contents, data, _a, _b;
|
|
5855
|
+
return __generator(this, function (_c) {
|
|
5856
|
+
switch (_c.label) {
|
|
5857
|
+
case 0:
|
|
5858
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5859
|
+
return [2, deserializeAws_restJson1ListFunctionUrlConfigsCommandError(output, context)];
|
|
5860
|
+
}
|
|
5861
|
+
contents = {
|
|
5862
|
+
$metadata: deserializeMetadata(output),
|
|
5863
|
+
FunctionUrlConfigs: undefined,
|
|
5864
|
+
NextMarker: undefined,
|
|
5865
|
+
};
|
|
5866
|
+
_a = __expectNonNull;
|
|
5867
|
+
_b = __expectObject;
|
|
5868
|
+
return [4, parseBody(output.body, context)];
|
|
5869
|
+
case 1:
|
|
5870
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5871
|
+
if (data.FunctionUrlConfigs !== undefined && data.FunctionUrlConfigs !== null) {
|
|
5872
|
+
contents.FunctionUrlConfigs = deserializeAws_restJson1FunctionUrlConfigList(data.FunctionUrlConfigs, context);
|
|
5873
|
+
}
|
|
5874
|
+
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
5875
|
+
contents.NextMarker = __expectString(data.NextMarker);
|
|
5876
|
+
}
|
|
5877
|
+
return [2, Promise.resolve(contents)];
|
|
5878
|
+
}
|
|
5879
|
+
});
|
|
5880
|
+
}); };
|
|
5881
|
+
var deserializeAws_restJson1ListFunctionUrlConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5882
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5883
|
+
var _c;
|
|
5884
|
+
return __generator(this, function (_d) {
|
|
5885
|
+
switch (_d.label) {
|
|
5886
|
+
case 0:
|
|
5887
|
+
_a = [__assign({}, output)];
|
|
5888
|
+
_c = {};
|
|
5889
|
+
return [4, parseBody(output.body, context)];
|
|
5890
|
+
case 1:
|
|
5891
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5892
|
+
errorCode = "UnknownError";
|
|
5893
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5894
|
+
_b = errorCode;
|
|
5895
|
+
switch (_b) {
|
|
5896
|
+
case "InvalidParameterValueException": return [3, 2];
|
|
5897
|
+
case "com.amazonaws.lambda#InvalidParameterValueException": return [3, 2];
|
|
5898
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
5899
|
+
case "com.amazonaws.lambda#ResourceNotFoundException": return [3, 4];
|
|
5900
|
+
case "ServiceException": return [3, 6];
|
|
5901
|
+
case "com.amazonaws.lambda#ServiceException": return [3, 6];
|
|
5902
|
+
case "TooManyRequestsException": return [3, 8];
|
|
5903
|
+
case "com.amazonaws.lambda#TooManyRequestsException": return [3, 8];
|
|
5904
|
+
}
|
|
5905
|
+
return [3, 10];
|
|
5906
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
5907
|
+
case 3: throw _d.sent();
|
|
5908
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5909
|
+
case 5: throw _d.sent();
|
|
5910
|
+
case 6: return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
|
|
5911
|
+
case 7: throw _d.sent();
|
|
5912
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
5913
|
+
case 9: throw _d.sent();
|
|
5914
|
+
case 10:
|
|
5915
|
+
parsedBody = parsedOutput.body;
|
|
5916
|
+
response = new __BaseException({
|
|
5917
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5918
|
+
$fault: "client",
|
|
5919
|
+
$metadata: deserializeMetadata(output),
|
|
5920
|
+
});
|
|
5921
|
+
throw __decorateServiceException(response, parsedBody);
|
|
5922
|
+
}
|
|
5923
|
+
});
|
|
5924
|
+
}); };
|
|
5443
5925
|
export var deserializeAws_restJson1ListLayersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5444
5926
|
var contents, data, _a, _b;
|
|
5445
5927
|
return __generator(this, function (_c) {
|
|
@@ -7551,6 +8033,98 @@ var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = functi
|
|
|
7551
8033
|
}
|
|
7552
8034
|
});
|
|
7553
8035
|
}); };
|
|
8036
|
+
export var deserializeAws_restJson1UpdateFunctionUrlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8037
|
+
var contents, data, _a, _b;
|
|
8038
|
+
return __generator(this, function (_c) {
|
|
8039
|
+
switch (_c.label) {
|
|
8040
|
+
case 0:
|
|
8041
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8042
|
+
return [2, deserializeAws_restJson1UpdateFunctionUrlConfigCommandError(output, context)];
|
|
8043
|
+
}
|
|
8044
|
+
contents = {
|
|
8045
|
+
$metadata: deserializeMetadata(output),
|
|
8046
|
+
AuthType: undefined,
|
|
8047
|
+
Cors: undefined,
|
|
8048
|
+
CreationTime: undefined,
|
|
8049
|
+
FunctionArn: undefined,
|
|
8050
|
+
FunctionUrl: undefined,
|
|
8051
|
+
LastModifiedTime: undefined,
|
|
8052
|
+
};
|
|
8053
|
+
_a = __expectNonNull;
|
|
8054
|
+
_b = __expectObject;
|
|
8055
|
+
return [4, parseBody(output.body, context)];
|
|
8056
|
+
case 1:
|
|
8057
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8058
|
+
if (data.AuthType !== undefined && data.AuthType !== null) {
|
|
8059
|
+
contents.AuthType = __expectString(data.AuthType);
|
|
8060
|
+
}
|
|
8061
|
+
if (data.Cors !== undefined && data.Cors !== null) {
|
|
8062
|
+
contents.Cors = deserializeAws_restJson1Cors(data.Cors, context);
|
|
8063
|
+
}
|
|
8064
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
8065
|
+
contents.CreationTime = __expectString(data.CreationTime);
|
|
8066
|
+
}
|
|
8067
|
+
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
8068
|
+
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
8069
|
+
}
|
|
8070
|
+
if (data.FunctionUrl !== undefined && data.FunctionUrl !== null) {
|
|
8071
|
+
contents.FunctionUrl = __expectString(data.FunctionUrl);
|
|
8072
|
+
}
|
|
8073
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
8074
|
+
contents.LastModifiedTime = __expectString(data.LastModifiedTime);
|
|
8075
|
+
}
|
|
8076
|
+
return [2, Promise.resolve(contents)];
|
|
8077
|
+
}
|
|
8078
|
+
});
|
|
8079
|
+
}); };
|
|
8080
|
+
var deserializeAws_restJson1UpdateFunctionUrlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8081
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
8082
|
+
var _c;
|
|
8083
|
+
return __generator(this, function (_d) {
|
|
8084
|
+
switch (_d.label) {
|
|
8085
|
+
case 0:
|
|
8086
|
+
_a = [__assign({}, output)];
|
|
8087
|
+
_c = {};
|
|
8088
|
+
return [4, parseBody(output.body, context)];
|
|
8089
|
+
case 1:
|
|
8090
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8091
|
+
errorCode = "UnknownError";
|
|
8092
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8093
|
+
_b = errorCode;
|
|
8094
|
+
switch (_b) {
|
|
8095
|
+
case "InvalidParameterValueException": return [3, 2];
|
|
8096
|
+
case "com.amazonaws.lambda#InvalidParameterValueException": return [3, 2];
|
|
8097
|
+
case "ResourceConflictException": return [3, 4];
|
|
8098
|
+
case "com.amazonaws.lambda#ResourceConflictException": return [3, 4];
|
|
8099
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
8100
|
+
case "com.amazonaws.lambda#ResourceNotFoundException": return [3, 6];
|
|
8101
|
+
case "ServiceException": return [3, 8];
|
|
8102
|
+
case "com.amazonaws.lambda#ServiceException": return [3, 8];
|
|
8103
|
+
case "TooManyRequestsException": return [3, 10];
|
|
8104
|
+
case "com.amazonaws.lambda#TooManyRequestsException": return [3, 10];
|
|
8105
|
+
}
|
|
8106
|
+
return [3, 12];
|
|
8107
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
8108
|
+
case 3: throw _d.sent();
|
|
8109
|
+
case 4: return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
8110
|
+
case 5: throw _d.sent();
|
|
8111
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
8112
|
+
case 7: throw _d.sent();
|
|
8113
|
+
case 8: return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
|
|
8114
|
+
case 9: throw _d.sent();
|
|
8115
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
8116
|
+
case 11: throw _d.sent();
|
|
8117
|
+
case 12:
|
|
8118
|
+
parsedBody = parsedOutput.body;
|
|
8119
|
+
response = new __BaseException({
|
|
8120
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8121
|
+
$fault: "client",
|
|
8122
|
+
$metadata: deserializeMetadata(output),
|
|
8123
|
+
});
|
|
8124
|
+
throw __decorateServiceException(response, parsedBody);
|
|
8125
|
+
}
|
|
8126
|
+
});
|
|
8127
|
+
}); };
|
|
7554
8128
|
var deserializeAws_restJson1CodeSigningConfigNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7555
8129
|
var contents, data, exception;
|
|
7556
8130
|
return __generator(this, function (_a) {
|
|
@@ -8092,6 +8666,26 @@ var serializeAws_restJson1AllowedPublishers = function (input, context) {
|
|
|
8092
8666
|
SigningProfileVersionArns: serializeAws_restJson1SigningProfileVersionArns(input.SigningProfileVersionArns, context),
|
|
8093
8667
|
}));
|
|
8094
8668
|
};
|
|
8669
|
+
var serializeAws_restJson1AllowMethodsList = function (input, context) {
|
|
8670
|
+
return input
|
|
8671
|
+
.filter(function (e) { return e != null; })
|
|
8672
|
+
.map(function (entry) {
|
|
8673
|
+
if (entry === null) {
|
|
8674
|
+
return null;
|
|
8675
|
+
}
|
|
8676
|
+
return entry;
|
|
8677
|
+
});
|
|
8678
|
+
};
|
|
8679
|
+
var serializeAws_restJson1AllowOriginsList = function (input, context) {
|
|
8680
|
+
return input
|
|
8681
|
+
.filter(function (e) { return e != null; })
|
|
8682
|
+
.map(function (entry) {
|
|
8683
|
+
if (entry === null) {
|
|
8684
|
+
return null;
|
|
8685
|
+
}
|
|
8686
|
+
return entry;
|
|
8687
|
+
});
|
|
8688
|
+
};
|
|
8095
8689
|
var serializeAws_restJson1ArchitecturesList = function (input, context) {
|
|
8096
8690
|
return input
|
|
8097
8691
|
.filter(function (e) { return e != null; })
|
|
@@ -8128,6 +8722,20 @@ var serializeAws_restJson1CompatibleRuntimes = function (input, context) {
|
|
|
8128
8722
|
return entry;
|
|
8129
8723
|
});
|
|
8130
8724
|
};
|
|
8725
|
+
var serializeAws_restJson1Cors = function (input, context) {
|
|
8726
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCredentials !== undefined &&
|
|
8727
|
+
input.AllowCredentials !== null && { AllowCredentials: input.AllowCredentials })), (input.AllowHeaders !== undefined &&
|
|
8728
|
+
input.AllowHeaders !== null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) })), (input.AllowMethods !== undefined &&
|
|
8729
|
+
input.AllowMethods !== null && {
|
|
8730
|
+
AllowMethods: serializeAws_restJson1AllowMethodsList(input.AllowMethods, context),
|
|
8731
|
+
})), (input.AllowOrigins !== undefined &&
|
|
8732
|
+
input.AllowOrigins !== null && {
|
|
8733
|
+
AllowOrigins: serializeAws_restJson1AllowOriginsList(input.AllowOrigins, context),
|
|
8734
|
+
})), (input.ExposeHeaders !== undefined &&
|
|
8735
|
+
input.ExposeHeaders !== null && {
|
|
8736
|
+
ExposeHeaders: serializeAws_restJson1HeadersList(input.ExposeHeaders, context),
|
|
8737
|
+
})), (input.MaxAge !== undefined && input.MaxAge !== null && { MaxAge: input.MaxAge }));
|
|
8738
|
+
};
|
|
8131
8739
|
var serializeAws_restJson1DeadLetterConfig = function (input, context) {
|
|
8132
8740
|
return __assign({}, (input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }));
|
|
8133
8741
|
};
|
|
@@ -8218,6 +8826,16 @@ var serializeAws_restJson1FunctionResponseTypeList = function (input, context) {
|
|
|
8218
8826
|
return entry;
|
|
8219
8827
|
});
|
|
8220
8828
|
};
|
|
8829
|
+
var serializeAws_restJson1HeadersList = function (input, context) {
|
|
8830
|
+
return input
|
|
8831
|
+
.filter(function (e) { return e != null; })
|
|
8832
|
+
.map(function (entry) {
|
|
8833
|
+
if (entry === null) {
|
|
8834
|
+
return null;
|
|
8835
|
+
}
|
|
8836
|
+
return entry;
|
|
8837
|
+
});
|
|
8838
|
+
};
|
|
8221
8839
|
var serializeAws_restJson1ImageConfig = function (input, context) {
|
|
8222
8840
|
return __assign(__assign(__assign({}, (input.Command !== undefined &&
|
|
8223
8841
|
input.Command !== null && { Command: serializeAws_restJson1StringList(input.Command, context) })), (input.EntryPoint !== undefined &&
|
|
@@ -8403,6 +9021,28 @@ var deserializeAws_restJson1AllowedPublishers = function (output, context) {
|
|
|
8403
9021
|
: undefined,
|
|
8404
9022
|
};
|
|
8405
9023
|
};
|
|
9024
|
+
var deserializeAws_restJson1AllowMethodsList = function (output, context) {
|
|
9025
|
+
var retVal = (output || [])
|
|
9026
|
+
.filter(function (e) { return e != null; })
|
|
9027
|
+
.map(function (entry) {
|
|
9028
|
+
if (entry === null) {
|
|
9029
|
+
return null;
|
|
9030
|
+
}
|
|
9031
|
+
return __expectString(entry);
|
|
9032
|
+
});
|
|
9033
|
+
return retVal;
|
|
9034
|
+
};
|
|
9035
|
+
var deserializeAws_restJson1AllowOriginsList = function (output, context) {
|
|
9036
|
+
var retVal = (output || [])
|
|
9037
|
+
.filter(function (e) { return e != null; })
|
|
9038
|
+
.map(function (entry) {
|
|
9039
|
+
if (entry === null) {
|
|
9040
|
+
return null;
|
|
9041
|
+
}
|
|
9042
|
+
return __expectString(entry);
|
|
9043
|
+
});
|
|
9044
|
+
return retVal;
|
|
9045
|
+
};
|
|
8406
9046
|
var deserializeAws_restJson1ArchitecturesList = function (output, context) {
|
|
8407
9047
|
var retVal = (output || [])
|
|
8408
9048
|
.filter(function (e) { return e != null; })
|
|
@@ -8471,6 +9111,24 @@ var deserializeAws_restJson1Concurrency = function (output, context) {
|
|
|
8471
9111
|
ReservedConcurrentExecutions: __expectInt32(output.ReservedConcurrentExecutions),
|
|
8472
9112
|
};
|
|
8473
9113
|
};
|
|
9114
|
+
var deserializeAws_restJson1Cors = function (output, context) {
|
|
9115
|
+
return {
|
|
9116
|
+
AllowCredentials: __expectBoolean(output.AllowCredentials),
|
|
9117
|
+
AllowHeaders: output.AllowHeaders !== undefined && output.AllowHeaders !== null
|
|
9118
|
+
? deserializeAws_restJson1HeadersList(output.AllowHeaders, context)
|
|
9119
|
+
: undefined,
|
|
9120
|
+
AllowMethods: output.AllowMethods !== undefined && output.AllowMethods !== null
|
|
9121
|
+
? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context)
|
|
9122
|
+
: undefined,
|
|
9123
|
+
AllowOrigins: output.AllowOrigins !== undefined && output.AllowOrigins !== null
|
|
9124
|
+
? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context)
|
|
9125
|
+
: undefined,
|
|
9126
|
+
ExposeHeaders: output.ExposeHeaders !== undefined && output.ExposeHeaders !== null
|
|
9127
|
+
? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context)
|
|
9128
|
+
: undefined,
|
|
9129
|
+
MaxAge: __expectInt32(output.MaxAge),
|
|
9130
|
+
};
|
|
9131
|
+
};
|
|
8474
9132
|
var deserializeAws_restJson1DeadLetterConfig = function (output, context) {
|
|
8475
9133
|
return {
|
|
8476
9134
|
TargetArn: __expectString(output.TargetArn),
|
|
@@ -8754,6 +9412,40 @@ var deserializeAws_restJson1FunctionResponseTypeList = function (output, context
|
|
|
8754
9412
|
});
|
|
8755
9413
|
return retVal;
|
|
8756
9414
|
};
|
|
9415
|
+
var deserializeAws_restJson1FunctionUrlConfig = function (output, context) {
|
|
9416
|
+
return {
|
|
9417
|
+
AuthType: __expectString(output.AuthType),
|
|
9418
|
+
Cors: output.Cors !== undefined && output.Cors !== null
|
|
9419
|
+
? deserializeAws_restJson1Cors(output.Cors, context)
|
|
9420
|
+
: undefined,
|
|
9421
|
+
CreationTime: __expectString(output.CreationTime),
|
|
9422
|
+
FunctionArn: __expectString(output.FunctionArn),
|
|
9423
|
+
FunctionUrl: __expectString(output.FunctionUrl),
|
|
9424
|
+
LastModifiedTime: __expectString(output.LastModifiedTime),
|
|
9425
|
+
};
|
|
9426
|
+
};
|
|
9427
|
+
var deserializeAws_restJson1FunctionUrlConfigList = function (output, context) {
|
|
9428
|
+
var retVal = (output || [])
|
|
9429
|
+
.filter(function (e) { return e != null; })
|
|
9430
|
+
.map(function (entry) {
|
|
9431
|
+
if (entry === null) {
|
|
9432
|
+
return null;
|
|
9433
|
+
}
|
|
9434
|
+
return deserializeAws_restJson1FunctionUrlConfig(entry, context);
|
|
9435
|
+
});
|
|
9436
|
+
return retVal;
|
|
9437
|
+
};
|
|
9438
|
+
var deserializeAws_restJson1HeadersList = function (output, context) {
|
|
9439
|
+
var retVal = (output || [])
|
|
9440
|
+
.filter(function (e) { return e != null; })
|
|
9441
|
+
.map(function (entry) {
|
|
9442
|
+
if (entry === null) {
|
|
9443
|
+
return null;
|
|
9444
|
+
}
|
|
9445
|
+
return __expectString(entry);
|
|
9446
|
+
});
|
|
9447
|
+
return retVal;
|
|
9448
|
+
};
|
|
8757
9449
|
var deserializeAws_restJson1ImageConfig = function (output, context) {
|
|
8758
9450
|
return {
|
|
8759
9451
|
Command: output.Command !== undefined && output.Command !== null
|