@aws-sdk/client-lambda 3.54.1 → 3.58.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/LambdaClient.js +13 -13
- package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +3 -3
- package/dist-cjs/commands/AddPermissionCommand.js +3 -3
- package/dist-cjs/commands/CreateAliasCommand.js +3 -3
- package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/CreateEventSourceMappingCommand.js +3 -3
- package/dist-cjs/commands/CreateFunctionCommand.js +3 -3
- package/dist-cjs/commands/DeleteAliasCommand.js +3 -3
- package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +3 -3
- package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/DeleteFunctionCommand.js +3 -3
- package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +3 -3
- package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-cjs/commands/DeleteLayerVersionCommand.js +3 -3
- package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-cjs/commands/GetAccountSettingsCommand.js +3 -3
- package/dist-cjs/commands/GetAliasCommand.js +3 -3
- package/dist-cjs/commands/GetCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/GetEventSourceMappingCommand.js +3 -3
- package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/GetFunctionCommand.js +3 -3
- package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +3 -3
- package/dist-cjs/commands/GetFunctionConfigurationCommand.js +3 -3
- package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-cjs/commands/GetLayerVersionByArnCommand.js +3 -3
- package/dist-cjs/commands/GetLayerVersionCommand.js +3 -3
- package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +3 -3
- package/dist-cjs/commands/GetPolicyCommand.js +3 -3
- package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-cjs/commands/InvokeAsyncCommand.js +3 -3
- package/dist-cjs/commands/InvokeCommand.js +3 -3
- package/dist-cjs/commands/ListAliasesCommand.js +3 -3
- package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +3 -3
- package/dist-cjs/commands/ListEventSourceMappingsCommand.js +3 -3
- package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +3 -3
- package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/ListFunctionsCommand.js +3 -3
- package/dist-cjs/commands/ListLayerVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListLayersCommand.js +3 -3
- package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsCommand.js +3 -3
- package/dist-cjs/commands/ListVersionsByFunctionCommand.js +3 -3
- package/dist-cjs/commands/PublishLayerVersionCommand.js +3 -3
- package/dist-cjs/commands/PublishVersionCommand.js +3 -3
- package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +3 -3
- package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +3 -3
- package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAliasCommand.js +3 -3
- package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +3 -3
- package/dist-cjs/commands/UpdateFunctionCodeCommand.js +3 -3
- package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +10 -4
- package/dist-cjs/protocols/Aws_restJson1.js +692 -649
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-cjs/waiters/waitForFunctionActive.js +3 -3
- package/dist-cjs/waiters/waitForFunctionActiveV2.js +3 -3
- package/dist-cjs/waiters/waitForFunctionExists.js +3 -3
- package/dist-cjs/waiters/waitForFunctionUpdated.js +3 -3
- package/dist-cjs/waiters/waitForFunctionUpdatedV2.js +3 -3
- package/dist-es/Lambda.js +58 -58
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/pagination/ListAliasesPaginator.js +4 -4
- package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +4 -4
- package/dist-es/pagination/ListEventSourceMappingsPaginator.js +4 -4
- package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +4 -4
- package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +4 -4
- package/dist-es/pagination/ListFunctionsPaginator.js +4 -4
- package/dist-es/pagination/ListLayerVersionsPaginator.js +4 -4
- package/dist-es/pagination/ListLayersPaginator.js +4 -4
- package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +4 -4
- package/dist-es/pagination/ListVersionsByFunctionPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +102 -64
- package/dist-types/Lambda.d.ts +9 -7
- package/dist-types/commands/AddPermissionCommand.d.ts +9 -7
- package/dist-types/models/models_0.d.ts +32 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +35 -35
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1AddLayerVersionPermissionCommand = function (in
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy";
|
|
18
18
|
if (input.LayerName !== undefined) {
|
|
19
19
|
labelValue = input.LayerName;
|
|
@@ -61,7 +61,7 @@ export var serializeAws_restJson1AddPermissionCommand = function (input, context
|
|
|
61
61
|
headers = {
|
|
62
62
|
"content-type": "application/json",
|
|
63
63
|
};
|
|
64
|
-
resolvedPath = ""
|
|
64
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
65
65
|
"/2015-03-31/functions/{FunctionName}/policy";
|
|
66
66
|
if (input.FunctionName !== undefined) {
|
|
67
67
|
labelValue = input.FunctionName;
|
|
@@ -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({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.EventSourceToken !== undefined &&
|
|
78
|
-
input.EventSourceToken !== null && { EventSourceToken: input.EventSourceToken })), (input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal })), (input.
|
|
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.Principal !== undefined && input.Principal !== null && { Principal: input.Principal })), (input.PrincipalOrgID !== undefined &&
|
|
79
|
+
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 })));
|
|
79
80
|
return [2, new __HttpRequest({
|
|
80
81
|
protocol: protocol,
|
|
81
82
|
hostname: hostname,
|
|
@@ -99,7 +100,7 @@ export var serializeAws_restJson1CreateAliasCommand = function (input, context)
|
|
|
99
100
|
headers = {
|
|
100
101
|
"content-type": "application/json",
|
|
101
102
|
};
|
|
102
|
-
resolvedPath = ""
|
|
103
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
103
104
|
"/2015-03-31/functions/{FunctionName}/aliases";
|
|
104
105
|
if (input.FunctionName !== undefined) {
|
|
105
106
|
labelValue = input.FunctionName;
|
|
@@ -138,7 +139,7 @@ export var serializeAws_restJson1CreateCodeSigningConfigCommand = function (inpu
|
|
|
138
139
|
headers = {
|
|
139
140
|
"content-type": "application/json",
|
|
140
141
|
};
|
|
141
|
-
resolvedPath = ""
|
|
142
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-04-22/code-signing-configs";
|
|
142
143
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AllowedPublishers !== undefined &&
|
|
143
144
|
input.AllowedPublishers !== null && {
|
|
144
145
|
AllowedPublishers: serializeAws_restJson1AllowedPublishers(input.AllowedPublishers, context),
|
|
@@ -168,7 +169,7 @@ export var serializeAws_restJson1CreateEventSourceMappingCommand = function (inp
|
|
|
168
169
|
headers = {
|
|
169
170
|
"content-type": "application/json",
|
|
170
171
|
};
|
|
171
|
-
resolvedPath = ""
|
|
172
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
|
|
172
173
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
|
|
173
174
|
input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
|
|
174
175
|
input.DestinationConfig !== null && {
|
|
@@ -222,8 +223,8 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
222
223
|
headers = {
|
|
223
224
|
"content-type": "application/json",
|
|
224
225
|
};
|
|
225
|
-
resolvedPath = ""
|
|
226
|
-
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 &&
|
|
226
|
+
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(__assign({}, (input.Architectures !== undefined &&
|
|
227
228
|
input.Architectures !== null && {
|
|
228
229
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
229
230
|
})), (input.Code !== undefined &&
|
|
@@ -232,7 +233,10 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
232
233
|
input.DeadLetterConfig !== null && {
|
|
233
234
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
234
235
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
|
|
235
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.
|
|
236
|
+
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
237
|
+
input.EphemeralStorage !== null && {
|
|
238
|
+
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
239
|
+
})), (input.FileSystemConfigs !== undefined &&
|
|
236
240
|
input.FileSystemConfigs !== null && {
|
|
237
241
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
238
242
|
})), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
|
|
@@ -262,7 +266,7 @@ export var serializeAws_restJson1DeleteAliasCommand = function (input, context)
|
|
|
262
266
|
case 1:
|
|
263
267
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
264
268
|
headers = {};
|
|
265
|
-
resolvedPath = ""
|
|
269
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
266
270
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
267
271
|
if (input.FunctionName !== undefined) {
|
|
268
272
|
labelValue = input.FunctionName;
|
|
@@ -304,7 +308,7 @@ export var serializeAws_restJson1DeleteCodeSigningConfigCommand = function (inpu
|
|
|
304
308
|
case 1:
|
|
305
309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
306
310
|
headers = {};
|
|
307
|
-
resolvedPath = ""
|
|
311
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
308
312
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
309
313
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
310
314
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -336,7 +340,7 @@ export var serializeAws_restJson1DeleteEventSourceMappingCommand = function (inp
|
|
|
336
340
|
case 1:
|
|
337
341
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
338
342
|
headers = {};
|
|
339
|
-
resolvedPath = ""
|
|
343
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
340
344
|
if (input.UUID !== undefined) {
|
|
341
345
|
labelValue = input.UUID;
|
|
342
346
|
if (labelValue.length <= 0) {
|
|
@@ -367,7 +371,7 @@ export var serializeAws_restJson1DeleteFunctionCommand = function (input, contex
|
|
|
367
371
|
case 1:
|
|
368
372
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
369
373
|
headers = {};
|
|
370
|
-
resolvedPath = ""
|
|
374
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}";
|
|
371
375
|
if (input.FunctionName !== undefined) {
|
|
372
376
|
labelValue = input.FunctionName;
|
|
373
377
|
if (labelValue.length <= 0) {
|
|
@@ -400,7 +404,7 @@ export var serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = functi
|
|
|
400
404
|
case 1:
|
|
401
405
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
402
406
|
headers = {};
|
|
403
|
-
resolvedPath = ""
|
|
407
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
404
408
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
405
409
|
if (input.FunctionName !== undefined) {
|
|
406
410
|
labelValue = input.FunctionName;
|
|
@@ -432,7 +436,7 @@ export var serializeAws_restJson1DeleteFunctionConcurrencyCommand = function (in
|
|
|
432
436
|
case 1:
|
|
433
437
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
434
438
|
headers = {};
|
|
435
|
-
resolvedPath = ""
|
|
439
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
436
440
|
"/2017-10-31/functions/{FunctionName}/concurrency";
|
|
437
441
|
if (input.FunctionName !== undefined) {
|
|
438
442
|
labelValue = input.FunctionName;
|
|
@@ -464,7 +468,7 @@ export var serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = functi
|
|
|
464
468
|
case 1:
|
|
465
469
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
466
470
|
headers = {};
|
|
467
|
-
resolvedPath = ""
|
|
471
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
468
472
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
469
473
|
if (input.FunctionName !== undefined) {
|
|
470
474
|
labelValue = input.FunctionName;
|
|
@@ -498,7 +502,7 @@ export var serializeAws_restJson1DeleteLayerVersionCommand = function (input, co
|
|
|
498
502
|
case 1:
|
|
499
503
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
500
504
|
headers = {};
|
|
501
|
-
resolvedPath = ""
|
|
505
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
502
506
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
|
|
503
507
|
if (input.LayerName !== undefined) {
|
|
504
508
|
labelValue = input.LayerName;
|
|
@@ -540,7 +544,7 @@ export var serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = fun
|
|
|
540
544
|
case 1:
|
|
541
545
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
542
546
|
headers = {};
|
|
543
|
-
resolvedPath = ""
|
|
547
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
544
548
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
545
549
|
if (input.FunctionName !== undefined) {
|
|
546
550
|
labelValue = input.FunctionName;
|
|
@@ -576,7 +580,7 @@ export var serializeAws_restJson1GetAccountSettingsCommand = function (input, co
|
|
|
576
580
|
headers = {
|
|
577
581
|
"content-type": "application/json",
|
|
578
582
|
};
|
|
579
|
-
resolvedPath = ""
|
|
583
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2016-08-19/account-settings";
|
|
580
584
|
body = "";
|
|
581
585
|
return [2, new __HttpRequest({
|
|
582
586
|
protocol: protocol,
|
|
@@ -598,7 +602,7 @@ export var serializeAws_restJson1GetAliasCommand = function (input, context) { r
|
|
|
598
602
|
case 1:
|
|
599
603
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
600
604
|
headers = {};
|
|
601
|
-
resolvedPath = ""
|
|
605
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
606
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
603
607
|
if (input.FunctionName !== undefined) {
|
|
604
608
|
labelValue = input.FunctionName;
|
|
@@ -640,7 +644,7 @@ export var serializeAws_restJson1GetCodeSigningConfigCommand = function (input,
|
|
|
640
644
|
case 1:
|
|
641
645
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
642
646
|
headers = {};
|
|
643
|
-
resolvedPath = ""
|
|
647
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
644
648
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
645
649
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
646
650
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -672,7 +676,7 @@ export var serializeAws_restJson1GetEventSourceMappingCommand = function (input,
|
|
|
672
676
|
case 1:
|
|
673
677
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
674
678
|
headers = {};
|
|
675
|
-
resolvedPath = ""
|
|
679
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
676
680
|
if (input.UUID !== undefined) {
|
|
677
681
|
labelValue = input.UUID;
|
|
678
682
|
if (labelValue.length <= 0) {
|
|
@@ -703,7 +707,7 @@ export var serializeAws_restJson1GetFunctionCommand = function (input, context)
|
|
|
703
707
|
case 1:
|
|
704
708
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
705
709
|
headers = {};
|
|
706
|
-
resolvedPath = ""
|
|
710
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}";
|
|
707
711
|
if (input.FunctionName !== undefined) {
|
|
708
712
|
labelValue = input.FunctionName;
|
|
709
713
|
if (labelValue.length <= 0) {
|
|
@@ -736,7 +740,7 @@ export var serializeAws_restJson1GetFunctionCodeSigningConfigCommand = function
|
|
|
736
740
|
case 1:
|
|
737
741
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
738
742
|
headers = {};
|
|
739
|
-
resolvedPath = ""
|
|
743
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
740
744
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
741
745
|
if (input.FunctionName !== undefined) {
|
|
742
746
|
labelValue = input.FunctionName;
|
|
@@ -768,7 +772,7 @@ export var serializeAws_restJson1GetFunctionConcurrencyCommand = function (input
|
|
|
768
772
|
case 1:
|
|
769
773
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
770
774
|
headers = {};
|
|
771
|
-
resolvedPath = ""
|
|
775
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
772
776
|
"/2019-09-30/functions/{FunctionName}/concurrency";
|
|
773
777
|
if (input.FunctionName !== undefined) {
|
|
774
778
|
labelValue = input.FunctionName;
|
|
@@ -800,7 +804,7 @@ export var serializeAws_restJson1GetFunctionConfigurationCommand = function (inp
|
|
|
800
804
|
case 1:
|
|
801
805
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
802
806
|
headers = {};
|
|
803
|
-
resolvedPath = ""
|
|
807
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
804
808
|
"/2015-03-31/functions/{FunctionName}/configuration";
|
|
805
809
|
if (input.FunctionName !== undefined) {
|
|
806
810
|
labelValue = input.FunctionName;
|
|
@@ -834,7 +838,7 @@ export var serializeAws_restJson1GetFunctionEventInvokeConfigCommand = function
|
|
|
834
838
|
case 1:
|
|
835
839
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
836
840
|
headers = {};
|
|
837
|
-
resolvedPath = ""
|
|
841
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
838
842
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
839
843
|
if (input.FunctionName !== undefined) {
|
|
840
844
|
labelValue = input.FunctionName;
|
|
@@ -868,7 +872,7 @@ export var serializeAws_restJson1GetLayerVersionCommand = function (input, conte
|
|
|
868
872
|
case 1:
|
|
869
873
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
870
874
|
headers = {};
|
|
871
|
-
resolvedPath = ""
|
|
875
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
872
876
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
|
|
873
877
|
if (input.LayerName !== undefined) {
|
|
874
878
|
labelValue = input.LayerName;
|
|
@@ -910,7 +914,7 @@ export var serializeAws_restJson1GetLayerVersionByArnCommand = function (input,
|
|
|
910
914
|
case 1:
|
|
911
915
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
912
916
|
headers = {};
|
|
913
|
-
resolvedPath = ""
|
|
917
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers";
|
|
914
918
|
query = __assign({ find: "LayerVersion" }, (input.Arn !== undefined && { Arn: input.Arn }));
|
|
915
919
|
return [2, new __HttpRequest({
|
|
916
920
|
protocol: protocol,
|
|
@@ -933,7 +937,7 @@ export var serializeAws_restJson1GetLayerVersionPolicyCommand = function (input,
|
|
|
933
937
|
case 1:
|
|
934
938
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
935
939
|
headers = {};
|
|
936
|
-
resolvedPath = ""
|
|
940
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
937
941
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy";
|
|
938
942
|
if (input.LayerName !== undefined) {
|
|
939
943
|
labelValue = input.LayerName;
|
|
@@ -975,7 +979,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
975
979
|
case 1:
|
|
976
980
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
977
981
|
headers = {};
|
|
978
|
-
resolvedPath = ""
|
|
982
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
979
983
|
"/2015-03-31/functions/{FunctionName}/policy";
|
|
980
984
|
if (input.FunctionName !== undefined) {
|
|
981
985
|
labelValue = input.FunctionName;
|
|
@@ -1009,7 +1013,7 @@ export var serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = functi
|
|
|
1009
1013
|
case 1:
|
|
1010
1014
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1011
1015
|
headers = {};
|
|
1012
|
-
resolvedPath = ""
|
|
1016
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1013
1017
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1014
1018
|
if (input.FunctionName !== undefined) {
|
|
1015
1019
|
labelValue = input.FunctionName;
|
|
@@ -1043,7 +1047,7 @@ export var serializeAws_restJson1InvokeCommand = function (input, context) { ret
|
|
|
1043
1047
|
case 1:
|
|
1044
1048
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1045
1049
|
headers = __assign(__assign(__assign({ "content-type": "application/octet-stream" }, (isSerializableHeaderValue(input.InvocationType) && { "x-amz-invocation-type": input.InvocationType })), (isSerializableHeaderValue(input.LogType) && { "x-amz-log-type": input.LogType })), (isSerializableHeaderValue(input.ClientContext) && { "x-amz-client-context": input.ClientContext }));
|
|
1046
|
-
resolvedPath = ""
|
|
1050
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1047
1051
|
"/2015-03-31/functions/{FunctionName}/invocations";
|
|
1048
1052
|
if (input.FunctionName !== undefined) {
|
|
1049
1053
|
labelValue = input.FunctionName;
|
|
@@ -1082,7 +1086,7 @@ export var serializeAws_restJson1InvokeAsyncCommand = function (input, context)
|
|
|
1082
1086
|
headers = {
|
|
1083
1087
|
"content-type": "application/octet-stream",
|
|
1084
1088
|
};
|
|
1085
|
-
resolvedPath = ""
|
|
1089
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1086
1090
|
"/2014-11-13/functions/{FunctionName}/invoke-async";
|
|
1087
1091
|
if (input.FunctionName !== undefined) {
|
|
1088
1092
|
labelValue = input.FunctionName;
|
|
@@ -1117,7 +1121,7 @@ export var serializeAws_restJson1ListAliasesCommand = function (input, context)
|
|
|
1117
1121
|
case 1:
|
|
1118
1122
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1119
1123
|
headers = {};
|
|
1120
|
-
resolvedPath = ""
|
|
1124
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1121
1125
|
"/2015-03-31/functions/{FunctionName}/aliases";
|
|
1122
1126
|
if (input.FunctionName !== undefined) {
|
|
1123
1127
|
labelValue = input.FunctionName;
|
|
@@ -1151,7 +1155,7 @@ export var serializeAws_restJson1ListCodeSigningConfigsCommand = function (input
|
|
|
1151
1155
|
case 1:
|
|
1152
1156
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1153
1157
|
headers = {};
|
|
1154
|
-
resolvedPath = ""
|
|
1158
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-04-22/code-signing-configs";
|
|
1155
1159
|
query = __assign(__assign({}, (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
1156
1160
|
return [2, new __HttpRequest({
|
|
1157
1161
|
protocol: protocol,
|
|
@@ -1174,7 +1178,7 @@ export var serializeAws_restJson1ListEventSourceMappingsCommand = function (inpu
|
|
|
1174
1178
|
case 1:
|
|
1175
1179
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1176
1180
|
headers = {};
|
|
1177
|
-
resolvedPath = ""
|
|
1181
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
|
|
1178
1182
|
query = __assign(__assign(__assign(__assign({}, (input.EventSourceArn !== undefined && { EventSourceArn: input.EventSourceArn })), (input.FunctionName !== undefined && { FunctionName: input.FunctionName })), (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
1179
1183
|
return [2, new __HttpRequest({
|
|
1180
1184
|
protocol: protocol,
|
|
@@ -1197,7 +1201,7 @@ export var serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = functio
|
|
|
1197
1201
|
case 1:
|
|
1198
1202
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1199
1203
|
headers = {};
|
|
1200
|
-
resolvedPath = ""
|
|
1204
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1201
1205
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config/list";
|
|
1202
1206
|
if (input.FunctionName !== undefined) {
|
|
1203
1207
|
labelValue = input.FunctionName;
|
|
@@ -1231,7 +1235,7 @@ export var serializeAws_restJson1ListFunctionsCommand = function (input, context
|
|
|
1231
1235
|
case 1:
|
|
1232
1236
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1233
1237
|
headers = {};
|
|
1234
|
-
resolvedPath = ""
|
|
1238
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
|
|
1235
1239
|
query = __assign(__assign(__assign(__assign({}, (input.MasterRegion !== undefined && { MasterRegion: input.MasterRegion })), (input.FunctionVersion !== undefined && { FunctionVersion: input.FunctionVersion })), (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
1236
1240
|
return [2, new __HttpRequest({
|
|
1237
1241
|
protocol: protocol,
|
|
@@ -1254,7 +1258,7 @@ export var serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = funct
|
|
|
1254
1258
|
case 1:
|
|
1255
1259
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1256
1260
|
headers = {};
|
|
1257
|
-
resolvedPath = ""
|
|
1261
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1258
1262
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions";
|
|
1259
1263
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
1260
1264
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -1288,7 +1292,7 @@ export var serializeAws_restJson1ListLayersCommand = function (input, context) {
|
|
|
1288
1292
|
case 1:
|
|
1289
1293
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1290
1294
|
headers = {};
|
|
1291
|
-
resolvedPath = ""
|
|
1295
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers";
|
|
1292
1296
|
query = __assign(__assign(__assign(__assign({}, (input.CompatibleRuntime !== undefined && { CompatibleRuntime: input.CompatibleRuntime })), (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() })), (input.CompatibleArchitecture !== undefined && { CompatibleArchitecture: input.CompatibleArchitecture }));
|
|
1293
1297
|
return [2, new __HttpRequest({
|
|
1294
1298
|
protocol: protocol,
|
|
@@ -1311,7 +1315,7 @@ export var serializeAws_restJson1ListLayerVersionsCommand = function (input, con
|
|
|
1311
1315
|
case 1:
|
|
1312
1316
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1313
1317
|
headers = {};
|
|
1314
|
-
resolvedPath = ""
|
|
1318
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers/{LayerName}/versions";
|
|
1315
1319
|
if (input.LayerName !== undefined) {
|
|
1316
1320
|
labelValue = input.LayerName;
|
|
1317
1321
|
if (labelValue.length <= 0) {
|
|
@@ -1344,7 +1348,7 @@ export var serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = func
|
|
|
1344
1348
|
case 1:
|
|
1345
1349
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1346
1350
|
headers = {};
|
|
1347
|
-
resolvedPath = ""
|
|
1351
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1348
1352
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1349
1353
|
if (input.FunctionName !== undefined) {
|
|
1350
1354
|
labelValue = input.FunctionName;
|
|
@@ -1378,7 +1382,7 @@ export var serializeAws_restJson1ListTagsCommand = function (input, context) { r
|
|
|
1378
1382
|
case 1:
|
|
1379
1383
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1380
1384
|
headers = {};
|
|
1381
|
-
resolvedPath = ""
|
|
1385
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1382
1386
|
if (input.Resource !== undefined) {
|
|
1383
1387
|
labelValue = input.Resource;
|
|
1384
1388
|
if (labelValue.length <= 0) {
|
|
@@ -1409,7 +1413,7 @@ export var serializeAws_restJson1ListVersionsByFunctionCommand = function (input
|
|
|
1409
1413
|
case 1:
|
|
1410
1414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1411
1415
|
headers = {};
|
|
1412
|
-
resolvedPath = ""
|
|
1416
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1413
1417
|
"/2015-03-31/functions/{FunctionName}/versions";
|
|
1414
1418
|
if (input.FunctionName !== undefined) {
|
|
1415
1419
|
labelValue = input.FunctionName;
|
|
@@ -1445,7 +1449,7 @@ export var serializeAws_restJson1PublishLayerVersionCommand = function (input, c
|
|
|
1445
1449
|
headers = {
|
|
1446
1450
|
"content-type": "application/json",
|
|
1447
1451
|
};
|
|
1448
|
-
resolvedPath = ""
|
|
1452
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers/{LayerName}/versions";
|
|
1449
1453
|
if (input.LayerName !== undefined) {
|
|
1450
1454
|
labelValue = input.LayerName;
|
|
1451
1455
|
if (labelValue.length <= 0) {
|
|
@@ -1486,7 +1490,7 @@ export var serializeAws_restJson1PublishVersionCommand = function (input, contex
|
|
|
1486
1490
|
headers = {
|
|
1487
1491
|
"content-type": "application/json",
|
|
1488
1492
|
};
|
|
1489
|
-
resolvedPath = ""
|
|
1493
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1490
1494
|
"/2015-03-31/functions/{FunctionName}/versions";
|
|
1491
1495
|
if (input.FunctionName !== undefined) {
|
|
1492
1496
|
labelValue = input.FunctionName;
|
|
@@ -1521,7 +1525,7 @@ export var serializeAws_restJson1PutFunctionCodeSigningConfigCommand = function
|
|
|
1521
1525
|
headers = {
|
|
1522
1526
|
"content-type": "application/json",
|
|
1523
1527
|
};
|
|
1524
|
-
resolvedPath = ""
|
|
1528
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1525
1529
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
1526
1530
|
if (input.FunctionName !== undefined) {
|
|
1527
1531
|
labelValue = input.FunctionName;
|
|
@@ -1557,7 +1561,7 @@ export var serializeAws_restJson1PutFunctionConcurrencyCommand = function (input
|
|
|
1557
1561
|
headers = {
|
|
1558
1562
|
"content-type": "application/json",
|
|
1559
1563
|
};
|
|
1560
|
-
resolvedPath = ""
|
|
1564
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1561
1565
|
"/2017-10-31/functions/{FunctionName}/concurrency";
|
|
1562
1566
|
if (input.FunctionName !== undefined) {
|
|
1563
1567
|
labelValue = input.FunctionName;
|
|
@@ -1595,7 +1599,7 @@ export var serializeAws_restJson1PutFunctionEventInvokeConfigCommand = function
|
|
|
1595
1599
|
headers = {
|
|
1596
1600
|
"content-type": "application/json",
|
|
1597
1601
|
};
|
|
1598
|
-
resolvedPath = ""
|
|
1602
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1599
1603
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
1600
1604
|
if (input.FunctionName !== undefined) {
|
|
1601
1605
|
labelValue = input.FunctionName;
|
|
@@ -1637,7 +1641,7 @@ export var serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = functi
|
|
|
1637
1641
|
headers = {
|
|
1638
1642
|
"content-type": "application/json",
|
|
1639
1643
|
};
|
|
1640
|
-
resolvedPath = ""
|
|
1644
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1641
1645
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1642
1646
|
if (input.FunctionName !== undefined) {
|
|
1643
1647
|
labelValue = input.FunctionName;
|
|
@@ -1675,7 +1679,7 @@ export var serializeAws_restJson1RemoveLayerVersionPermissionCommand = function
|
|
|
1675
1679
|
case 1:
|
|
1676
1680
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1677
1681
|
headers = {};
|
|
1678
|
-
resolvedPath = ""
|
|
1682
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1679
1683
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}";
|
|
1680
1684
|
if (input.LayerName !== undefined) {
|
|
1681
1685
|
labelValue = input.LayerName;
|
|
@@ -1729,7 +1733,7 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
1729
1733
|
case 1:
|
|
1730
1734
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1731
1735
|
headers = {};
|
|
1732
|
-
resolvedPath = ""
|
|
1736
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1733
1737
|
"/2015-03-31/functions/{FunctionName}/policy/{StatementId}";
|
|
1734
1738
|
if (input.FunctionName !== undefined) {
|
|
1735
1739
|
labelValue = input.FunctionName;
|
|
@@ -1775,7 +1779,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1775
1779
|
headers = {
|
|
1776
1780
|
"content-type": "application/json",
|
|
1777
1781
|
};
|
|
1778
|
-
resolvedPath = ""
|
|
1782
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1779
1783
|
if (input.Resource !== undefined) {
|
|
1780
1784
|
labelValue = input.Resource;
|
|
1781
1785
|
if (labelValue.length <= 0) {
|
|
@@ -1807,7 +1811,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1807
1811
|
case 1:
|
|
1808
1812
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1809
1813
|
headers = {};
|
|
1810
|
-
resolvedPath = ""
|
|
1814
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1811
1815
|
if (input.Resource !== undefined) {
|
|
1812
1816
|
labelValue = input.Resource;
|
|
1813
1817
|
if (labelValue.length <= 0) {
|
|
@@ -1842,7 +1846,7 @@ export var serializeAws_restJson1UpdateAliasCommand = function (input, context)
|
|
|
1842
1846
|
headers = {
|
|
1843
1847
|
"content-type": "application/json",
|
|
1844
1848
|
};
|
|
1845
|
-
resolvedPath = ""
|
|
1849
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1846
1850
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
1847
1851
|
if (input.FunctionName !== undefined) {
|
|
1848
1852
|
labelValue = input.FunctionName;
|
|
@@ -1891,7 +1895,7 @@ export var serializeAws_restJson1UpdateCodeSigningConfigCommand = function (inpu
|
|
|
1891
1895
|
headers = {
|
|
1892
1896
|
"content-type": "application/json",
|
|
1893
1897
|
};
|
|
1894
|
-
resolvedPath = ""
|
|
1898
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1895
1899
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
1896
1900
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
1897
1901
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -1932,7 +1936,7 @@ export var serializeAws_restJson1UpdateEventSourceMappingCommand = function (inp
|
|
|
1932
1936
|
headers = {
|
|
1933
1937
|
"content-type": "application/json",
|
|
1934
1938
|
};
|
|
1935
|
-
resolvedPath = ""
|
|
1939
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
1936
1940
|
if (input.UUID !== undefined) {
|
|
1937
1941
|
labelValue = input.UUID;
|
|
1938
1942
|
if (labelValue.length <= 0) {
|
|
@@ -1986,7 +1990,7 @@ export var serializeAws_restJson1UpdateFunctionCodeCommand = function (input, co
|
|
|
1986
1990
|
headers = {
|
|
1987
1991
|
"content-type": "application/json",
|
|
1988
1992
|
};
|
|
1989
|
-
resolvedPath = ""
|
|
1993
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}/code";
|
|
1990
1994
|
if (input.FunctionName !== undefined) {
|
|
1991
1995
|
labelValue = input.FunctionName;
|
|
1992
1996
|
if (labelValue.length <= 0) {
|
|
@@ -2024,7 +2028,7 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
|
|
|
2024
2028
|
headers = {
|
|
2025
2029
|
"content-type": "application/json",
|
|
2026
2030
|
};
|
|
2027
|
-
resolvedPath = ""
|
|
2031
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2028
2032
|
"/2015-03-31/functions/{FunctionName}/configuration";
|
|
2029
2033
|
if (input.FunctionName !== undefined) {
|
|
2030
2034
|
labelValue = input.FunctionName;
|
|
@@ -2036,11 +2040,14 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
|
|
|
2036
2040
|
else {
|
|
2037
2041
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2038
2042
|
}
|
|
2039
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
|
|
2043
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
|
|
2040
2044
|
input.DeadLetterConfig !== null && {
|
|
2041
2045
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
2042
2046
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
|
|
2043
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.
|
|
2047
|
+
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
2048
|
+
input.EphemeralStorage !== null && {
|
|
2049
|
+
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
2050
|
+
})), (input.FileSystemConfigs !== undefined &&
|
|
2044
2051
|
input.FileSystemConfigs !== null && {
|
|
2045
2052
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
2046
2053
|
})), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
|
|
@@ -2072,7 +2079,7 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
|
|
|
2072
2079
|
headers = {
|
|
2073
2080
|
"content-type": "application/json",
|
|
2074
2081
|
};
|
|
2075
|
-
resolvedPath = ""
|
|
2082
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2076
2083
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
2077
2084
|
if (input.FunctionName !== undefined) {
|
|
2078
2085
|
labelValue = input.FunctionName;
|
|
@@ -2596,6 +2603,7 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
2596
2603
|
DeadLetterConfig: undefined,
|
|
2597
2604
|
Description: undefined,
|
|
2598
2605
|
Environment: undefined,
|
|
2606
|
+
EphemeralStorage: undefined,
|
|
2599
2607
|
FileSystemConfigs: undefined,
|
|
2600
2608
|
FunctionArn: undefined,
|
|
2601
2609
|
FunctionName: undefined,
|
|
@@ -2646,6 +2654,9 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
2646
2654
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
2647
2655
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
2648
2656
|
}
|
|
2657
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
2658
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
2659
|
+
}
|
|
2649
2660
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
2650
2661
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
2651
2662
|
}
|
|
@@ -4072,6 +4083,7 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4072
4083
|
DeadLetterConfig: undefined,
|
|
4073
4084
|
Description: undefined,
|
|
4074
4085
|
Environment: undefined,
|
|
4086
|
+
EphemeralStorage: undefined,
|
|
4075
4087
|
FileSystemConfigs: undefined,
|
|
4076
4088
|
FunctionArn: undefined,
|
|
4077
4089
|
FunctionName: undefined,
|
|
@@ -4122,6 +4134,9 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
|
|
|
4122
4134
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
4123
4135
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
4124
4136
|
}
|
|
4137
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
4138
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
4139
|
+
}
|
|
4125
4140
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
4126
4141
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
4127
4142
|
}
|
|
@@ -5897,6 +5912,7 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
|
|
|
5897
5912
|
DeadLetterConfig: undefined,
|
|
5898
5913
|
Description: undefined,
|
|
5899
5914
|
Environment: undefined,
|
|
5915
|
+
EphemeralStorage: undefined,
|
|
5900
5916
|
FileSystemConfigs: undefined,
|
|
5901
5917
|
FunctionArn: undefined,
|
|
5902
5918
|
FunctionName: undefined,
|
|
@@ -5947,6 +5963,9 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
|
|
|
5947
5963
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
5948
5964
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
5949
5965
|
}
|
|
5966
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
5967
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
5968
|
+
}
|
|
5950
5969
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
5951
5970
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
5952
5971
|
}
|
|
@@ -7024,6 +7043,7 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
|
|
|
7024
7043
|
DeadLetterConfig: undefined,
|
|
7025
7044
|
Description: undefined,
|
|
7026
7045
|
Environment: undefined,
|
|
7046
|
+
EphemeralStorage: undefined,
|
|
7027
7047
|
FileSystemConfigs: undefined,
|
|
7028
7048
|
FunctionArn: undefined,
|
|
7029
7049
|
FunctionName: undefined,
|
|
@@ -7074,6 +7094,9 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
|
|
|
7074
7094
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7075
7095
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
7076
7096
|
}
|
|
7097
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
7098
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
7099
|
+
}
|
|
7077
7100
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
7078
7101
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7079
7102
|
}
|
|
@@ -7240,6 +7263,7 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
|
|
|
7240
7263
|
DeadLetterConfig: undefined,
|
|
7241
7264
|
Description: undefined,
|
|
7242
7265
|
Environment: undefined,
|
|
7266
|
+
EphemeralStorage: undefined,
|
|
7243
7267
|
FileSystemConfigs: undefined,
|
|
7244
7268
|
FunctionArn: undefined,
|
|
7245
7269
|
FunctionName: undefined,
|
|
@@ -7290,6 +7314,9 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
|
|
|
7290
7314
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
7291
7315
|
contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
|
|
7292
7316
|
}
|
|
7317
|
+
if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
|
|
7318
|
+
contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
|
|
7319
|
+
}
|
|
7293
7320
|
if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
|
|
7294
7321
|
contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
|
|
7295
7322
|
}
|
|
@@ -8143,6 +8170,9 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
|
8143
8170
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
8144
8171
|
}, {});
|
|
8145
8172
|
};
|
|
8173
|
+
var serializeAws_restJson1EphemeralStorage = function (input, context) {
|
|
8174
|
+
return __assign({}, (input.Size !== undefined && input.Size !== null && { Size: input.Size }));
|
|
8175
|
+
};
|
|
8146
8176
|
var serializeAws_restJson1FileSystemConfig = function (input, context) {
|
|
8147
8177
|
return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.LocalMountPath !== undefined &&
|
|
8148
8178
|
input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }));
|
|
@@ -8503,6 +8533,11 @@ var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
|
|
|
8503
8533
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
8504
8534
|
}, {});
|
|
8505
8535
|
};
|
|
8536
|
+
var deserializeAws_restJson1EphemeralStorage = function (output, context) {
|
|
8537
|
+
return {
|
|
8538
|
+
Size: __expectInt32(output.Size),
|
|
8539
|
+
};
|
|
8540
|
+
};
|
|
8506
8541
|
var deserializeAws_restJson1EventSourceMappingConfiguration = function (output, context) {
|
|
8507
8542
|
return {
|
|
8508
8543
|
BatchSize: __expectInt32(output.BatchSize),
|
|
@@ -8632,6 +8667,9 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
8632
8667
|
Environment: output.Environment !== undefined && output.Environment !== null
|
|
8633
8668
|
? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
|
|
8634
8669
|
: undefined,
|
|
8670
|
+
EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
|
|
8671
|
+
? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
|
|
8672
|
+
: undefined,
|
|
8635
8673
|
FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
|
|
8636
8674
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
8637
8675
|
: undefined,
|