@aws-sdk/client-lambda 3.54.1 → 3.55.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 +11 -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/protocols/Aws_restJson1.js +651 -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/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 +61 -60
- 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 +5 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +2 -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,7 +223,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
222
223
|
headers = {
|
|
223
224
|
"content-type": "application/json",
|
|
224
225
|
};
|
|
225
|
-
resolvedPath = ""
|
|
226
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
|
|
226
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 &&
|
|
227
228
|
input.Architectures !== null && {
|
|
228
229
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
@@ -262,7 +263,7 @@ export var serializeAws_restJson1DeleteAliasCommand = function (input, context)
|
|
|
262
263
|
case 1:
|
|
263
264
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
264
265
|
headers = {};
|
|
265
|
-
resolvedPath = ""
|
|
266
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
266
267
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
267
268
|
if (input.FunctionName !== undefined) {
|
|
268
269
|
labelValue = input.FunctionName;
|
|
@@ -304,7 +305,7 @@ export var serializeAws_restJson1DeleteCodeSigningConfigCommand = function (inpu
|
|
|
304
305
|
case 1:
|
|
305
306
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
306
307
|
headers = {};
|
|
307
|
-
resolvedPath = ""
|
|
308
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
308
309
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
309
310
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
310
311
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -336,7 +337,7 @@ export var serializeAws_restJson1DeleteEventSourceMappingCommand = function (inp
|
|
|
336
337
|
case 1:
|
|
337
338
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
338
339
|
headers = {};
|
|
339
|
-
resolvedPath = ""
|
|
340
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
340
341
|
if (input.UUID !== undefined) {
|
|
341
342
|
labelValue = input.UUID;
|
|
342
343
|
if (labelValue.length <= 0) {
|
|
@@ -367,7 +368,7 @@ export var serializeAws_restJson1DeleteFunctionCommand = function (input, contex
|
|
|
367
368
|
case 1:
|
|
368
369
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
369
370
|
headers = {};
|
|
370
|
-
resolvedPath = ""
|
|
371
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}";
|
|
371
372
|
if (input.FunctionName !== undefined) {
|
|
372
373
|
labelValue = input.FunctionName;
|
|
373
374
|
if (labelValue.length <= 0) {
|
|
@@ -400,7 +401,7 @@ export var serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = functi
|
|
|
400
401
|
case 1:
|
|
401
402
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
402
403
|
headers = {};
|
|
403
|
-
resolvedPath = ""
|
|
404
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
404
405
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
405
406
|
if (input.FunctionName !== undefined) {
|
|
406
407
|
labelValue = input.FunctionName;
|
|
@@ -432,7 +433,7 @@ export var serializeAws_restJson1DeleteFunctionConcurrencyCommand = function (in
|
|
|
432
433
|
case 1:
|
|
433
434
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
434
435
|
headers = {};
|
|
435
|
-
resolvedPath = ""
|
|
436
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
436
437
|
"/2017-10-31/functions/{FunctionName}/concurrency";
|
|
437
438
|
if (input.FunctionName !== undefined) {
|
|
438
439
|
labelValue = input.FunctionName;
|
|
@@ -464,7 +465,7 @@ export var serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = functi
|
|
|
464
465
|
case 1:
|
|
465
466
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
466
467
|
headers = {};
|
|
467
|
-
resolvedPath = ""
|
|
468
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
468
469
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
469
470
|
if (input.FunctionName !== undefined) {
|
|
470
471
|
labelValue = input.FunctionName;
|
|
@@ -498,7 +499,7 @@ export var serializeAws_restJson1DeleteLayerVersionCommand = function (input, co
|
|
|
498
499
|
case 1:
|
|
499
500
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
500
501
|
headers = {};
|
|
501
|
-
resolvedPath = ""
|
|
502
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
502
503
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
|
|
503
504
|
if (input.LayerName !== undefined) {
|
|
504
505
|
labelValue = input.LayerName;
|
|
@@ -540,7 +541,7 @@ export var serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = fun
|
|
|
540
541
|
case 1:
|
|
541
542
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
542
543
|
headers = {};
|
|
543
|
-
resolvedPath = ""
|
|
544
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
544
545
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
545
546
|
if (input.FunctionName !== undefined) {
|
|
546
547
|
labelValue = input.FunctionName;
|
|
@@ -576,7 +577,7 @@ export var serializeAws_restJson1GetAccountSettingsCommand = function (input, co
|
|
|
576
577
|
headers = {
|
|
577
578
|
"content-type": "application/json",
|
|
578
579
|
};
|
|
579
|
-
resolvedPath = ""
|
|
580
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2016-08-19/account-settings";
|
|
580
581
|
body = "";
|
|
581
582
|
return [2, new __HttpRequest({
|
|
582
583
|
protocol: protocol,
|
|
@@ -598,7 +599,7 @@ export var serializeAws_restJson1GetAliasCommand = function (input, context) { r
|
|
|
598
599
|
case 1:
|
|
599
600
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
600
601
|
headers = {};
|
|
601
|
-
resolvedPath = ""
|
|
602
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
603
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
603
604
|
if (input.FunctionName !== undefined) {
|
|
604
605
|
labelValue = input.FunctionName;
|
|
@@ -640,7 +641,7 @@ export var serializeAws_restJson1GetCodeSigningConfigCommand = function (input,
|
|
|
640
641
|
case 1:
|
|
641
642
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
642
643
|
headers = {};
|
|
643
|
-
resolvedPath = ""
|
|
644
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
644
645
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
645
646
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
646
647
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -672,7 +673,7 @@ export var serializeAws_restJson1GetEventSourceMappingCommand = function (input,
|
|
|
672
673
|
case 1:
|
|
673
674
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
674
675
|
headers = {};
|
|
675
|
-
resolvedPath = ""
|
|
676
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
676
677
|
if (input.UUID !== undefined) {
|
|
677
678
|
labelValue = input.UUID;
|
|
678
679
|
if (labelValue.length <= 0) {
|
|
@@ -703,7 +704,7 @@ export var serializeAws_restJson1GetFunctionCommand = function (input, context)
|
|
|
703
704
|
case 1:
|
|
704
705
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
705
706
|
headers = {};
|
|
706
|
-
resolvedPath = ""
|
|
707
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}";
|
|
707
708
|
if (input.FunctionName !== undefined) {
|
|
708
709
|
labelValue = input.FunctionName;
|
|
709
710
|
if (labelValue.length <= 0) {
|
|
@@ -736,7 +737,7 @@ export var serializeAws_restJson1GetFunctionCodeSigningConfigCommand = function
|
|
|
736
737
|
case 1:
|
|
737
738
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
738
739
|
headers = {};
|
|
739
|
-
resolvedPath = ""
|
|
740
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
740
741
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
741
742
|
if (input.FunctionName !== undefined) {
|
|
742
743
|
labelValue = input.FunctionName;
|
|
@@ -768,7 +769,7 @@ export var serializeAws_restJson1GetFunctionConcurrencyCommand = function (input
|
|
|
768
769
|
case 1:
|
|
769
770
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
770
771
|
headers = {};
|
|
771
|
-
resolvedPath = ""
|
|
772
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
772
773
|
"/2019-09-30/functions/{FunctionName}/concurrency";
|
|
773
774
|
if (input.FunctionName !== undefined) {
|
|
774
775
|
labelValue = input.FunctionName;
|
|
@@ -800,7 +801,7 @@ export var serializeAws_restJson1GetFunctionConfigurationCommand = function (inp
|
|
|
800
801
|
case 1:
|
|
801
802
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
802
803
|
headers = {};
|
|
803
|
-
resolvedPath = ""
|
|
804
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
804
805
|
"/2015-03-31/functions/{FunctionName}/configuration";
|
|
805
806
|
if (input.FunctionName !== undefined) {
|
|
806
807
|
labelValue = input.FunctionName;
|
|
@@ -834,7 +835,7 @@ export var serializeAws_restJson1GetFunctionEventInvokeConfigCommand = function
|
|
|
834
835
|
case 1:
|
|
835
836
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
836
837
|
headers = {};
|
|
837
|
-
resolvedPath = ""
|
|
838
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
838
839
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
839
840
|
if (input.FunctionName !== undefined) {
|
|
840
841
|
labelValue = input.FunctionName;
|
|
@@ -868,7 +869,7 @@ export var serializeAws_restJson1GetLayerVersionCommand = function (input, conte
|
|
|
868
869
|
case 1:
|
|
869
870
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
870
871
|
headers = {};
|
|
871
|
-
resolvedPath = ""
|
|
872
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
872
873
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
|
|
873
874
|
if (input.LayerName !== undefined) {
|
|
874
875
|
labelValue = input.LayerName;
|
|
@@ -910,7 +911,7 @@ export var serializeAws_restJson1GetLayerVersionByArnCommand = function (input,
|
|
|
910
911
|
case 1:
|
|
911
912
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
912
913
|
headers = {};
|
|
913
|
-
resolvedPath = ""
|
|
914
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers";
|
|
914
915
|
query = __assign({ find: "LayerVersion" }, (input.Arn !== undefined && { Arn: input.Arn }));
|
|
915
916
|
return [2, new __HttpRequest({
|
|
916
917
|
protocol: protocol,
|
|
@@ -933,7 +934,7 @@ export var serializeAws_restJson1GetLayerVersionPolicyCommand = function (input,
|
|
|
933
934
|
case 1:
|
|
934
935
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
935
936
|
headers = {};
|
|
936
|
-
resolvedPath = ""
|
|
937
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
937
938
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy";
|
|
938
939
|
if (input.LayerName !== undefined) {
|
|
939
940
|
labelValue = input.LayerName;
|
|
@@ -975,7 +976,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
975
976
|
case 1:
|
|
976
977
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
977
978
|
headers = {};
|
|
978
|
-
resolvedPath = ""
|
|
979
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
979
980
|
"/2015-03-31/functions/{FunctionName}/policy";
|
|
980
981
|
if (input.FunctionName !== undefined) {
|
|
981
982
|
labelValue = input.FunctionName;
|
|
@@ -1009,7 +1010,7 @@ export var serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = functi
|
|
|
1009
1010
|
case 1:
|
|
1010
1011
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1011
1012
|
headers = {};
|
|
1012
|
-
resolvedPath = ""
|
|
1013
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1013
1014
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1014
1015
|
if (input.FunctionName !== undefined) {
|
|
1015
1016
|
labelValue = input.FunctionName;
|
|
@@ -1043,7 +1044,7 @@ export var serializeAws_restJson1InvokeCommand = function (input, context) { ret
|
|
|
1043
1044
|
case 1:
|
|
1044
1045
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1045
1046
|
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 = ""
|
|
1047
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1047
1048
|
"/2015-03-31/functions/{FunctionName}/invocations";
|
|
1048
1049
|
if (input.FunctionName !== undefined) {
|
|
1049
1050
|
labelValue = input.FunctionName;
|
|
@@ -1082,7 +1083,7 @@ export var serializeAws_restJson1InvokeAsyncCommand = function (input, context)
|
|
|
1082
1083
|
headers = {
|
|
1083
1084
|
"content-type": "application/octet-stream",
|
|
1084
1085
|
};
|
|
1085
|
-
resolvedPath = ""
|
|
1086
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1086
1087
|
"/2014-11-13/functions/{FunctionName}/invoke-async";
|
|
1087
1088
|
if (input.FunctionName !== undefined) {
|
|
1088
1089
|
labelValue = input.FunctionName;
|
|
@@ -1117,7 +1118,7 @@ export var serializeAws_restJson1ListAliasesCommand = function (input, context)
|
|
|
1117
1118
|
case 1:
|
|
1118
1119
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1119
1120
|
headers = {};
|
|
1120
|
-
resolvedPath = ""
|
|
1121
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1121
1122
|
"/2015-03-31/functions/{FunctionName}/aliases";
|
|
1122
1123
|
if (input.FunctionName !== undefined) {
|
|
1123
1124
|
labelValue = input.FunctionName;
|
|
@@ -1151,7 +1152,7 @@ export var serializeAws_restJson1ListCodeSigningConfigsCommand = function (input
|
|
|
1151
1152
|
case 1:
|
|
1152
1153
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1153
1154
|
headers = {};
|
|
1154
|
-
resolvedPath = ""
|
|
1155
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-04-22/code-signing-configs";
|
|
1155
1156
|
query = __assign(__assign({}, (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
1156
1157
|
return [2, new __HttpRequest({
|
|
1157
1158
|
protocol: protocol,
|
|
@@ -1174,7 +1175,7 @@ export var serializeAws_restJson1ListEventSourceMappingsCommand = function (inpu
|
|
|
1174
1175
|
case 1:
|
|
1175
1176
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1176
1177
|
headers = {};
|
|
1177
|
-
resolvedPath = ""
|
|
1178
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
|
|
1178
1179
|
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
1180
|
return [2, new __HttpRequest({
|
|
1180
1181
|
protocol: protocol,
|
|
@@ -1197,7 +1198,7 @@ export var serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = functio
|
|
|
1197
1198
|
case 1:
|
|
1198
1199
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1199
1200
|
headers = {};
|
|
1200
|
-
resolvedPath = ""
|
|
1201
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1201
1202
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config/list";
|
|
1202
1203
|
if (input.FunctionName !== undefined) {
|
|
1203
1204
|
labelValue = input.FunctionName;
|
|
@@ -1231,7 +1232,7 @@ export var serializeAws_restJson1ListFunctionsCommand = function (input, context
|
|
|
1231
1232
|
case 1:
|
|
1232
1233
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1233
1234
|
headers = {};
|
|
1234
|
-
resolvedPath = ""
|
|
1235
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
|
|
1235
1236
|
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
1237
|
return [2, new __HttpRequest({
|
|
1237
1238
|
protocol: protocol,
|
|
@@ -1254,7 +1255,7 @@ export var serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = funct
|
|
|
1254
1255
|
case 1:
|
|
1255
1256
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1256
1257
|
headers = {};
|
|
1257
|
-
resolvedPath = ""
|
|
1258
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1258
1259
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions";
|
|
1259
1260
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
1260
1261
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -1288,7 +1289,7 @@ export var serializeAws_restJson1ListLayersCommand = function (input, context) {
|
|
|
1288
1289
|
case 1:
|
|
1289
1290
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1290
1291
|
headers = {};
|
|
1291
|
-
resolvedPath = ""
|
|
1292
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers";
|
|
1292
1293
|
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
1294
|
return [2, new __HttpRequest({
|
|
1294
1295
|
protocol: protocol,
|
|
@@ -1311,7 +1312,7 @@ export var serializeAws_restJson1ListLayerVersionsCommand = function (input, con
|
|
|
1311
1312
|
case 1:
|
|
1312
1313
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1313
1314
|
headers = {};
|
|
1314
|
-
resolvedPath = ""
|
|
1315
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers/{LayerName}/versions";
|
|
1315
1316
|
if (input.LayerName !== undefined) {
|
|
1316
1317
|
labelValue = input.LayerName;
|
|
1317
1318
|
if (labelValue.length <= 0) {
|
|
@@ -1344,7 +1345,7 @@ export var serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = func
|
|
|
1344
1345
|
case 1:
|
|
1345
1346
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1346
1347
|
headers = {};
|
|
1347
|
-
resolvedPath = ""
|
|
1348
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1348
1349
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1349
1350
|
if (input.FunctionName !== undefined) {
|
|
1350
1351
|
labelValue = input.FunctionName;
|
|
@@ -1378,7 +1379,7 @@ export var serializeAws_restJson1ListTagsCommand = function (input, context) { r
|
|
|
1378
1379
|
case 1:
|
|
1379
1380
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1380
1381
|
headers = {};
|
|
1381
|
-
resolvedPath = ""
|
|
1382
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1382
1383
|
if (input.Resource !== undefined) {
|
|
1383
1384
|
labelValue = input.Resource;
|
|
1384
1385
|
if (labelValue.length <= 0) {
|
|
@@ -1409,7 +1410,7 @@ export var serializeAws_restJson1ListVersionsByFunctionCommand = function (input
|
|
|
1409
1410
|
case 1:
|
|
1410
1411
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1411
1412
|
headers = {};
|
|
1412
|
-
resolvedPath = ""
|
|
1413
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1413
1414
|
"/2015-03-31/functions/{FunctionName}/versions";
|
|
1414
1415
|
if (input.FunctionName !== undefined) {
|
|
1415
1416
|
labelValue = input.FunctionName;
|
|
@@ -1445,7 +1446,7 @@ export var serializeAws_restJson1PublishLayerVersionCommand = function (input, c
|
|
|
1445
1446
|
headers = {
|
|
1446
1447
|
"content-type": "application/json",
|
|
1447
1448
|
};
|
|
1448
|
-
resolvedPath = ""
|
|
1449
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2018-10-31/layers/{LayerName}/versions";
|
|
1449
1450
|
if (input.LayerName !== undefined) {
|
|
1450
1451
|
labelValue = input.LayerName;
|
|
1451
1452
|
if (labelValue.length <= 0) {
|
|
@@ -1486,7 +1487,7 @@ export var serializeAws_restJson1PublishVersionCommand = function (input, contex
|
|
|
1486
1487
|
headers = {
|
|
1487
1488
|
"content-type": "application/json",
|
|
1488
1489
|
};
|
|
1489
|
-
resolvedPath = ""
|
|
1490
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1490
1491
|
"/2015-03-31/functions/{FunctionName}/versions";
|
|
1491
1492
|
if (input.FunctionName !== undefined) {
|
|
1492
1493
|
labelValue = input.FunctionName;
|
|
@@ -1521,7 +1522,7 @@ export var serializeAws_restJson1PutFunctionCodeSigningConfigCommand = function
|
|
|
1521
1522
|
headers = {
|
|
1522
1523
|
"content-type": "application/json",
|
|
1523
1524
|
};
|
|
1524
|
-
resolvedPath = ""
|
|
1525
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1525
1526
|
"/2020-06-30/functions/{FunctionName}/code-signing-config";
|
|
1526
1527
|
if (input.FunctionName !== undefined) {
|
|
1527
1528
|
labelValue = input.FunctionName;
|
|
@@ -1557,7 +1558,7 @@ export var serializeAws_restJson1PutFunctionConcurrencyCommand = function (input
|
|
|
1557
1558
|
headers = {
|
|
1558
1559
|
"content-type": "application/json",
|
|
1559
1560
|
};
|
|
1560
|
-
resolvedPath = ""
|
|
1561
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1561
1562
|
"/2017-10-31/functions/{FunctionName}/concurrency";
|
|
1562
1563
|
if (input.FunctionName !== undefined) {
|
|
1563
1564
|
labelValue = input.FunctionName;
|
|
@@ -1595,7 +1596,7 @@ export var serializeAws_restJson1PutFunctionEventInvokeConfigCommand = function
|
|
|
1595
1596
|
headers = {
|
|
1596
1597
|
"content-type": "application/json",
|
|
1597
1598
|
};
|
|
1598
|
-
resolvedPath = ""
|
|
1599
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1599
1600
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
1600
1601
|
if (input.FunctionName !== undefined) {
|
|
1601
1602
|
labelValue = input.FunctionName;
|
|
@@ -1637,7 +1638,7 @@ export var serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = functi
|
|
|
1637
1638
|
headers = {
|
|
1638
1639
|
"content-type": "application/json",
|
|
1639
1640
|
};
|
|
1640
|
-
resolvedPath = ""
|
|
1641
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1641
1642
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1642
1643
|
if (input.FunctionName !== undefined) {
|
|
1643
1644
|
labelValue = input.FunctionName;
|
|
@@ -1675,7 +1676,7 @@ export var serializeAws_restJson1RemoveLayerVersionPermissionCommand = function
|
|
|
1675
1676
|
case 1:
|
|
1676
1677
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1677
1678
|
headers = {};
|
|
1678
|
-
resolvedPath = ""
|
|
1679
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1679
1680
|
"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}";
|
|
1680
1681
|
if (input.LayerName !== undefined) {
|
|
1681
1682
|
labelValue = input.LayerName;
|
|
@@ -1729,7 +1730,7 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
1729
1730
|
case 1:
|
|
1730
1731
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1731
1732
|
headers = {};
|
|
1732
|
-
resolvedPath = ""
|
|
1733
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1733
1734
|
"/2015-03-31/functions/{FunctionName}/policy/{StatementId}";
|
|
1734
1735
|
if (input.FunctionName !== undefined) {
|
|
1735
1736
|
labelValue = input.FunctionName;
|
|
@@ -1775,7 +1776,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1775
1776
|
headers = {
|
|
1776
1777
|
"content-type": "application/json",
|
|
1777
1778
|
};
|
|
1778
|
-
resolvedPath = ""
|
|
1779
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1779
1780
|
if (input.Resource !== undefined) {
|
|
1780
1781
|
labelValue = input.Resource;
|
|
1781
1782
|
if (labelValue.length <= 0) {
|
|
@@ -1807,7 +1808,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1807
1808
|
case 1:
|
|
1808
1809
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1809
1810
|
headers = {};
|
|
1810
|
-
resolvedPath = ""
|
|
1811
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-03-31/tags/{Resource}";
|
|
1811
1812
|
if (input.Resource !== undefined) {
|
|
1812
1813
|
labelValue = input.Resource;
|
|
1813
1814
|
if (labelValue.length <= 0) {
|
|
@@ -1842,7 +1843,7 @@ export var serializeAws_restJson1UpdateAliasCommand = function (input, context)
|
|
|
1842
1843
|
headers = {
|
|
1843
1844
|
"content-type": "application/json",
|
|
1844
1845
|
};
|
|
1845
|
-
resolvedPath = ""
|
|
1846
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1846
1847
|
"/2015-03-31/functions/{FunctionName}/aliases/{Name}";
|
|
1847
1848
|
if (input.FunctionName !== undefined) {
|
|
1848
1849
|
labelValue = input.FunctionName;
|
|
@@ -1891,7 +1892,7 @@ export var serializeAws_restJson1UpdateCodeSigningConfigCommand = function (inpu
|
|
|
1891
1892
|
headers = {
|
|
1892
1893
|
"content-type": "application/json",
|
|
1893
1894
|
};
|
|
1894
|
-
resolvedPath = ""
|
|
1895
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1895
1896
|
"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
|
|
1896
1897
|
if (input.CodeSigningConfigArn !== undefined) {
|
|
1897
1898
|
labelValue = input.CodeSigningConfigArn;
|
|
@@ -1932,7 +1933,7 @@ export var serializeAws_restJson1UpdateEventSourceMappingCommand = function (inp
|
|
|
1932
1933
|
headers = {
|
|
1933
1934
|
"content-type": "application/json",
|
|
1934
1935
|
};
|
|
1935
|
-
resolvedPath = ""
|
|
1936
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings/{UUID}";
|
|
1936
1937
|
if (input.UUID !== undefined) {
|
|
1937
1938
|
labelValue = input.UUID;
|
|
1938
1939
|
if (labelValue.length <= 0) {
|
|
@@ -1986,7 +1987,7 @@ export var serializeAws_restJson1UpdateFunctionCodeCommand = function (input, co
|
|
|
1986
1987
|
headers = {
|
|
1987
1988
|
"content-type": "application/json",
|
|
1988
1989
|
};
|
|
1989
|
-
resolvedPath = ""
|
|
1990
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions/{FunctionName}/code";
|
|
1990
1991
|
if (input.FunctionName !== undefined) {
|
|
1991
1992
|
labelValue = input.FunctionName;
|
|
1992
1993
|
if (labelValue.length <= 0) {
|
|
@@ -2024,7 +2025,7 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
|
|
|
2024
2025
|
headers = {
|
|
2025
2026
|
"content-type": "application/json",
|
|
2026
2027
|
};
|
|
2027
|
-
resolvedPath = ""
|
|
2028
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2028
2029
|
"/2015-03-31/functions/{FunctionName}/configuration";
|
|
2029
2030
|
if (input.FunctionName !== undefined) {
|
|
2030
2031
|
labelValue = input.FunctionName;
|
|
@@ -2072,7 +2073,7 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
|
|
|
2072
2073
|
headers = {
|
|
2073
2074
|
"content-type": "application/json",
|
|
2074
2075
|
};
|
|
2075
|
-
resolvedPath = ""
|
|
2076
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2076
2077
|
"/2019-09-25/functions/{FunctionName}/event-invoke-config";
|
|
2077
2078
|
if (input.FunctionName !== undefined) {
|
|
2078
2079
|
labelValue = input.FunctionName;
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -139,16 +139,18 @@ export declare class Lambda extends LambdaClient {
|
|
|
139
139
|
addLayerVersionPermission(args: AddLayerVersionPermissionCommandInput, cb: (err: any, data?: AddLayerVersionPermissionCommandOutput) => void): void;
|
|
140
140
|
addLayerVersionPermission(args: AddLayerVersionPermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddLayerVersionPermissionCommandOutput) => void): void;
|
|
141
141
|
/**
|
|
142
|
-
* <p>Grants an Amazon Web Services service or
|
|
143
|
-
* function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
|
|
142
|
+
* <p>Grants an Amazon Web Services service, account, or organization permission to use a function. You can apply the
|
|
143
|
+
* policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
|
|
144
144
|
* the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
|
|
145
145
|
* Note: Lambda does not support adding policies to version $LATEST.</p>
|
|
146
146
|
*
|
|
147
|
-
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>.
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
147
|
+
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant permission to an
|
|
148
|
+
* organization defined in Organizations, specify the organization ID as the <code>PrincipalOrgID</code>.
|
|
149
|
+
* For Amazon Web Services services, the principal is a domain-style identifier defined by the service,
|
|
150
|
+
* like <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Services services, you can also specify
|
|
151
|
+
* the ARN of the associated resource as the <code>SourceArn</code>. If you grant permission to a service principal without
|
|
152
|
+
* specifying the source, other accounts could potentially configure resources in their account to invoke your
|
|
153
|
+
* Lambda function.</p>
|
|
152
154
|
*
|
|
153
155
|
* <p>This action adds a statement to a resource-based permissions policy for the function. For more information
|
|
154
156
|
* about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Lambda Function Policies</a>. </p>
|
|
@@ -7,16 +7,18 @@ export interface AddPermissionCommandInput extends AddPermissionRequest {
|
|
|
7
7
|
export interface AddPermissionCommandOutput extends AddPermissionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Grants an Amazon Web Services service or
|
|
11
|
-
* function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
|
|
10
|
+
* <p>Grants an Amazon Web Services service, account, or organization permission to use a function. You can apply the
|
|
11
|
+
* policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
|
|
12
12
|
* the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
|
|
13
13
|
* Note: Lambda does not support adding policies to version $LATEST.</p>
|
|
14
14
|
*
|
|
15
|
-
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant permission to an
|
|
16
|
+
* organization defined in Organizations, specify the organization ID as the <code>PrincipalOrgID</code>.
|
|
17
|
+
* For Amazon Web Services services, the principal is a domain-style identifier defined by the service,
|
|
18
|
+
* like <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Services services, you can also specify
|
|
19
|
+
* the ARN of the associated resource as the <code>SourceArn</code>. If you grant permission to a service principal without
|
|
20
|
+
* specifying the source, other accounts could potentially configure resources in their account to invoke your
|
|
21
|
+
* Lambda function.</p>
|
|
20
22
|
*
|
|
21
23
|
* <p>This action adds a statement to a resource-based permissions policy for the function. For more information
|
|
22
24
|
* about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Lambda Function Policies</a>. </p>
|