@aws-sdk/client-lambda 3.55.0 → 3.65.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 +30 -0
- 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 +81 -4
- package/dist-cjs/pagination/ListFunctionUrlConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +626 -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 +53 -0
- package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +756 -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 +439 -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 +181 -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,
|
|
@@ -224,7 +225,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
224
225
|
"content-type": "application/json",
|
|
225
226
|
};
|
|
226
227
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
|
|
227
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures !== undefined &&
|
|
228
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures !== undefined &&
|
|
228
229
|
input.Architectures !== null && {
|
|
229
230
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
230
231
|
})), (input.Code !== undefined &&
|
|
@@ -233,7 +234,10 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
233
234
|
input.DeadLetterConfig !== null && {
|
|
234
235
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
235
236
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
|
|
236
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.
|
|
237
|
+
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
238
|
+
input.EphemeralStorage !== null && {
|
|
239
|
+
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
240
|
+
})), (input.FileSystemConfigs !== undefined &&
|
|
237
241
|
input.FileSystemConfigs !== null && {
|
|
238
242
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
239
243
|
})), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
|
|
@@ -255,6 +259,42 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
255
259
|
}
|
|
256
260
|
});
|
|
257
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
|
+
}); };
|
|
258
298
|
export var serializeAws_restJson1DeleteAliasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
299
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
260
300
|
return __generator(this, function (_c) {
|
|
@@ -491,6 +531,39 @@ export var serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = functi
|
|
|
491
531
|
}
|
|
492
532
|
});
|
|
493
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
|
+
}); };
|
|
494
567
|
export var serializeAws_restJson1DeleteLayerVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
495
568
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
496
569
|
return __generator(this, function (_c) {
|
|
@@ -861,6 +934,39 @@ export var serializeAws_restJson1GetFunctionEventInvokeConfigCommand = function
|
|
|
861
934
|
}
|
|
862
935
|
});
|
|
863
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
|
+
}); };
|
|
864
970
|
export var serializeAws_restJson1GetLayerVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
865
971
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
866
972
|
return __generator(this, function (_c) {
|
|
@@ -1281,6 +1387,39 @@ export var serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = funct
|
|
|
1281
1387
|
}
|
|
1282
1388
|
});
|
|
1283
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
|
+
}); };
|
|
1284
1423
|
export var serializeAws_restJson1ListLayersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1285
1424
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1286
1425
|
return __generator(this, function (_c) {
|
|
@@ -2037,11 +2176,14 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
|
|
|
2037
2176
|
else {
|
|
2038
2177
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2039
2178
|
}
|
|
2040
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
|
|
2179
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
|
|
2041
2180
|
input.DeadLetterConfig !== null && {
|
|
2042
2181
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
2043
2182
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
|
|
2044
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.
|
|
2183
|
+
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
2184
|
+
input.EphemeralStorage !== null && {
|
|
2185
|
+
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
2186
|
+
})), (input.FileSystemConfigs !== undefined &&
|
|
2045
2187
|
input.FileSystemConfigs !== null && {
|
|
2046
2188
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
2047
2189
|
})), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
|
|
@@ -2105,6 +2247,42 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
|
|
|
2105
2247
|
}
|
|
2106
2248
|
});
|
|
2107
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
|
+
}); };
|
|
2108
2286
|
export var deserializeAws_restJson1AddLayerVersionPermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2109
2287
|
var contents, data, _a, _b;
|
|
2110
2288
|
return __generator(this, function (_c) {
|
|
@@ -2597,6 +2775,7 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
2597
2775
|
DeadLetterConfig: undefined,
|
|
2598
2776
|
Description: undefined,
|
|
2599
2777
|
Environment: undefined,
|
|
2778
|
+
EphemeralStorage: undefined,
|
|
2600
2779
|
FileSystemConfigs: undefined,
|
|
2601
2780
|
FunctionArn: undefined,
|
|
2602
2781
|
FunctionName: undefined,
|
|
@@ -2647,6 +2826,9 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
2647
2826
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
2648
2827
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
2649
2828
|
}
|
|
2829
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
2830
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
2831
|
+
}
|
|
2650
2832
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
2651
2833
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
2652
2834
|
}
|
|
@@ -2793,6 +2975,94 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
|
|
|
2793
2975
|
}
|
|
2794
2976
|
});
|
|
2795
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
|
+
}); };
|
|
2796
3066
|
export var deserializeAws_restJson1DeleteAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2797
3067
|
var contents;
|
|
2798
3068
|
return __generator(this, function (_a) {
|
|
@@ -3345,6 +3615,68 @@ var deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = functi
|
|
|
3345
3615
|
}
|
|
3346
3616
|
});
|
|
3347
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
|
+
}); };
|
|
3348
3680
|
export var deserializeAws_restJson1DeleteLayerVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3349
3681
|
var contents;
|
|
3350
3682
|
return __generator(this, function (_a) {
|
|
@@ -4073,6 +4405,7 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4073
4405
|
DeadLetterConfig: undefined,
|
|
4074
4406
|
Description: undefined,
|
|
4075
4407
|
Environment: undefined,
|
|
4408
|
+
EphemeralStorage: undefined,
|
|
4076
4409
|
FileSystemConfigs: undefined,
|
|
4077
4410
|
FunctionArn: undefined,
|
|
4078
4411
|
FunctionName: undefined,
|
|
@@ -4123,6 +4456,9 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4123
4456
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
4124
4457
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
4125
4458
|
}
|
|
4459
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
4460
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
4461
|
+
}
|
|
4126
4462
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
4127
4463
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
4128
4464
|
}
|
|
@@ -4195,17 +4531,101 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4195
4531
|
if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
|
|
4196
4532
|
contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
|
|
4197
4533
|
}
|
|
4198
|
-
if (data.Version !== undefined && data.Version !== null) {
|
|
4199
|
-
contents.Version = __expectString(data.Version);
|
|
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);
|
|
4614
|
+
}
|
|
4615
|
+
if (data.LastModified !== undefined && data.LastModified !== null) {
|
|
4616
|
+
contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
|
|
4617
|
+
}
|
|
4618
|
+
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4619
|
+
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
4200
4620
|
}
|
|
4201
|
-
if (data.
|
|
4202
|
-
contents.
|
|
4621
|
+
if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
|
|
4622
|
+
contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
|
|
4203
4623
|
}
|
|
4204
4624
|
return [2, Promise.resolve(contents)];
|
|
4205
4625
|
}
|
|
4206
4626
|
});
|
|
4207
4627
|
}); };
|
|
4208
|
-
var
|
|
4628
|
+
var deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4209
4629
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4210
4630
|
var _c;
|
|
4211
4631
|
return __generator(this, function (_d) {
|
|
@@ -4249,47 +4669,51 @@ var deserializeAws_restJson1GetFunctionConfigurationCommandError = function (out
|
|
|
4249
4669
|
}
|
|
4250
4670
|
});
|
|
4251
4671
|
}); };
|
|
4252
|
-
export var
|
|
4672
|
+
export var deserializeAws_restJson1GetFunctionUrlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4253
4673
|
var contents, data, _a, _b;
|
|
4254
4674
|
return __generator(this, function (_c) {
|
|
4255
4675
|
switch (_c.label) {
|
|
4256
4676
|
case 0:
|
|
4257
4677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4258
|
-
return [2,
|
|
4678
|
+
return [2, deserializeAws_restJson1GetFunctionUrlConfigCommandError(output, context)];
|
|
4259
4679
|
}
|
|
4260
4680
|
contents = {
|
|
4261
4681
|
$metadata: deserializeMetadata(output),
|
|
4262
|
-
|
|
4682
|
+
AuthType: undefined,
|
|
4683
|
+
Cors: undefined,
|
|
4684
|
+
CreationTime: undefined,
|
|
4263
4685
|
FunctionArn: undefined,
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
MaximumRetryAttempts: undefined,
|
|
4686
|
+
FunctionUrl: undefined,
|
|
4687
|
+
LastModifiedTime: undefined,
|
|
4267
4688
|
};
|
|
4268
4689
|
_a = __expectNonNull;
|
|
4269
4690
|
_b = __expectObject;
|
|
4270
4691
|
return [4, parseBody(output.body, context)];
|
|
4271
4692
|
case 1:
|
|
4272
4693
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4273
|
-
if (data.
|
|
4274
|
-
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);
|
|
4275
4702
|
}
|
|
4276
4703
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4277
4704
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
4278
4705
|
}
|
|
4279
|
-
if (data.
|
|
4280
|
-
contents.
|
|
4281
|
-
}
|
|
4282
|
-
if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
|
|
4283
|
-
contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
|
|
4706
|
+
if (data.FunctionUrl !== undefined && data.FunctionUrl !== null) {
|
|
4707
|
+
contents.FunctionUrl = __expectString(data.FunctionUrl);
|
|
4284
4708
|
}
|
|
4285
|
-
if (data.
|
|
4286
|
-
contents.
|
|
4709
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
4710
|
+
contents.LastModifiedTime = __expectString(data.LastModifiedTime);
|
|
4287
4711
|
}
|
|
4288
4712
|
return [2, Promise.resolve(contents)];
|
|
4289
4713
|
}
|
|
4290
4714
|
});
|
|
4291
4715
|
}); };
|
|
4292
|
-
var
|
|
4716
|
+
var deserializeAws_restJson1GetFunctionUrlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4293
4717
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4294
4718
|
var _c;
|
|
4295
4719
|
return __generator(this, function (_d) {
|
|
@@ -5426,6 +5850,78 @@ var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = funct
|
|
|
5426
5850
|
}
|
|
5427
5851
|
});
|
|
5428
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
|
+
}); };
|
|
5429
5925
|
export var deserializeAws_restJson1ListLayersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5430
5926
|
var contents, data, _a, _b;
|
|
5431
5927
|
return __generator(this, function (_c) {
|
|
@@ -5898,6 +6394,7 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
|
|
|
5898
6394
|
DeadLetterConfig: undefined,
|
|
5899
6395
|
Description: undefined,
|
|
5900
6396
|
Environment: undefined,
|
|
6397
|
+
EphemeralStorage: undefined,
|
|
5901
6398
|
FileSystemConfigs: undefined,
|
|
5902
6399
|
FunctionArn: undefined,
|
|
5903
6400
|
FunctionName: undefined,
|
|
@@ -5948,6 +6445,9 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
|
|
|
5948
6445
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
5949
6446
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
5950
6447
|
}
|
|
6448
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
6449
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
6450
|
+
}
|
|
5951
6451
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
5952
6452
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
5953
6453
|
}
|
|
@@ -7025,6 +7525,7 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
|
|
|
7025
7525
|
DeadLetterConfig: undefined,
|
|
7026
7526
|
Description: undefined,
|
|
7027
7527
|
Environment: undefined,
|
|
7528
|
+
EphemeralStorage: undefined,
|
|
7028
7529
|
FileSystemConfigs: undefined,
|
|
7029
7530
|
FunctionArn: undefined,
|
|
7030
7531
|
FunctionName: undefined,
|
|
@@ -7075,6 +7576,9 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
|
|
|
7075
7576
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7076
7577
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
7077
7578
|
}
|
|
7579
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
7580
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
7581
|
+
}
|
|
7078
7582
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
7079
7583
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7080
7584
|
}
|
|
@@ -7241,6 +7745,7 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
|
|
|
7241
7745
|
DeadLetterConfig: undefined,
|
|
7242
7746
|
Description: undefined,
|
|
7243
7747
|
Environment: undefined,
|
|
7748
|
+
EphemeralStorage: undefined,
|
|
7244
7749
|
FileSystemConfigs: undefined,
|
|
7245
7750
|
FunctionArn: undefined,
|
|
7246
7751
|
FunctionName: undefined,
|
|
@@ -7291,6 +7796,9 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
|
|
|
7291
7796
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7292
7797
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
7293
7798
|
}
|
|
7799
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
7800
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
7801
|
+
}
|
|
7294
7802
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
7295
7803
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7296
7804
|
}
|
|
@@ -7525,6 +8033,98 @@ var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = functi
|
|
|
7525
8033
|
}
|
|
7526
8034
|
});
|
|
7527
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
|
+
}); };
|
|
7528
8128
|
var deserializeAws_restJson1CodeSigningConfigNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7529
8129
|
var contents, data, exception;
|
|
7530
8130
|
return __generator(this, function (_a) {
|
|
@@ -8066,6 +8666,26 @@ var serializeAws_restJson1AllowedPublishers = function (input, context) {
|
|
|
8066
8666
|
SigningProfileVersionArns: serializeAws_restJson1SigningProfileVersionArns(input.SigningProfileVersionArns, context),
|
|
8067
8667
|
}));
|
|
8068
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
|
+
};
|
|
8069
8689
|
var serializeAws_restJson1ArchitecturesList = function (input, context) {
|
|
8070
8690
|
return input
|
|
8071
8691
|
.filter(function (e) { return e != null; })
|
|
@@ -8102,6 +8722,20 @@ var serializeAws_restJson1CompatibleRuntimes = function (input, context) {
|
|
|
8102
8722
|
return entry;
|
|
8103
8723
|
});
|
|
8104
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
|
+
};
|
|
8105
8739
|
var serializeAws_restJson1DeadLetterConfig = function (input, context) {
|
|
8106
8740
|
return __assign({}, (input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }));
|
|
8107
8741
|
};
|
|
@@ -8144,6 +8778,9 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
|
8144
8778
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
8145
8779
|
}, {});
|
|
8146
8780
|
};
|
|
8781
|
+
var serializeAws_restJson1EphemeralStorage = function (input, context) {
|
|
8782
|
+
return __assign({}, (input.Size !== undefined && input.Size !== null && { Size: input.Size }));
|
|
8783
|
+
};
|
|
8147
8784
|
var serializeAws_restJson1FileSystemConfig = function (input, context) {
|
|
8148
8785
|
return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.LocalMountPath !== undefined &&
|
|
8149
8786
|
input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }));
|
|
@@ -8189,6 +8826,16 @@ var serializeAws_restJson1FunctionResponseTypeList = function (input, context) {
|
|
|
8189
8826
|
return entry;
|
|
8190
8827
|
});
|
|
8191
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
|
+
};
|
|
8192
8839
|
var serializeAws_restJson1ImageConfig = function (input, context) {
|
|
8193
8840
|
return __assign(__assign(__assign({}, (input.Command !== undefined &&
|
|
8194
8841
|
input.Command !== null && { Command: serializeAws_restJson1StringList(input.Command, context) })), (input.EntryPoint !== undefined &&
|
|
@@ -8374,6 +9021,28 @@ var deserializeAws_restJson1AllowedPublishers = function (output, context) {
|
|
|
8374
9021
|
: undefined,
|
|
8375
9022
|
};
|
|
8376
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
|
+
};
|
|
8377
9046
|
var deserializeAws_restJson1ArchitecturesList = function (output, context) {
|
|
8378
9047
|
var retVal = (output || [])
|
|
8379
9048
|
.filter(function (e) { return e != null; })
|
|
@@ -8442,6 +9111,24 @@ var deserializeAws_restJson1Concurrency = function (output, context) {
|
|
|
8442
9111
|
ReservedConcurrentExecutions: __expectInt32(output.ReservedConcurrentExecutions),
|
|
8443
9112
|
};
|
|
8444
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
|
+
};
|
|
8445
9132
|
var deserializeAws_restJson1DeadLetterConfig = function (output, context) {
|
|
8446
9133
|
return {
|
|
8447
9134
|
TargetArn: __expectString(output.TargetArn),
|
|
@@ -8504,6 +9191,11 @@ var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
|
|
|
8504
9191
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
8505
9192
|
}, {});
|
|
8506
9193
|
};
|
|
9194
|
+
var deserializeAws_restJson1EphemeralStorage = function (output, context) {
|
|
9195
|
+
return {
|
|
9196
|
+
Size: __expectInt32(output.Size),
|
|
9197
|
+
};
|
|
9198
|
+
};
|
|
8507
9199
|
var deserializeAws_restJson1EventSourceMappingConfiguration = function (output, context) {
|
|
8508
9200
|
return {
|
|
8509
9201
|
BatchSize: __expectInt32(output.BatchSize),
|
|
@@ -8633,6 +9325,9 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
8633
9325
|
Environment: output.Environment !== undefined && output.Environment !== null
|
|
8634
9326
|
? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
|
|
8635
9327
|
: undefined,
|
|
9328
|
+
EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
|
|
9329
|
+
? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
|
|
9330
|
+
: undefined,
|
|
8636
9331
|
FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
|
|
8637
9332
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
8638
9333
|
: undefined,
|
|
@@ -8717,6 +9412,40 @@ var deserializeAws_restJson1FunctionResponseTypeList = function (output, context
|
|
|
8717
9412
|
});
|
|
8718
9413
|
return retVal;
|
|
8719
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
|
+
};
|
|
8720
9449
|
var deserializeAws_restJson1ImageConfig = function (output, context) {
|
|
8721
9450
|
return {
|
|
8722
9451
|
Command: output.Command !== undefined && output.Command !== null
|