@aws-sdk/client-lambda 3.252.0 → 3.256.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Lambda.js +30 -0
- package/dist-cjs/commands/GetRuntimeManagementConfigCommand.js +46 -0
- package/dist-cjs/commands/PutRuntimeManagementConfigCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +40 -5
- package/dist-cjs/protocols/Aws_restJson1.js +182 -4
- package/dist-es/Lambda.js +30 -0
- package/dist-es/commands/GetRuntimeManagementConfigCommand.js +42 -0
- package/dist-es/commands/PutRuntimeManagementConfigCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +29 -0
- package/dist-es/protocols/Aws_restJson1.js +175 -1
- package/dist-types/Lambda.d.ts +23 -6
- package/dist-types/LambdaClient.d.ts +10 -8
- package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
- package/dist-types/commands/GetAliasCommand.d.ts +1 -1
- package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +39 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
- package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +38 -0
- package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +179 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Lambda.d.ts +34 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +16 -3
- package/dist-types/ts3.4/commands/GetRuntimeManagementConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutRuntimeManagementConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +51 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +32 -32
package/dist-cjs/Lambda.js
CHANGED
|
@@ -33,6 +33,7 @@ const GetLayerVersionCommand_1 = require("./commands/GetLayerVersionCommand");
|
|
|
33
33
|
const GetLayerVersionPolicyCommand_1 = require("./commands/GetLayerVersionPolicyCommand");
|
|
34
34
|
const GetPolicyCommand_1 = require("./commands/GetPolicyCommand");
|
|
35
35
|
const GetProvisionedConcurrencyConfigCommand_1 = require("./commands/GetProvisionedConcurrencyConfigCommand");
|
|
36
|
+
const GetRuntimeManagementConfigCommand_1 = require("./commands/GetRuntimeManagementConfigCommand");
|
|
36
37
|
const InvokeAsyncCommand_1 = require("./commands/InvokeAsyncCommand");
|
|
37
38
|
const InvokeCommand_1 = require("./commands/InvokeCommand");
|
|
38
39
|
const ListAliasesCommand_1 = require("./commands/ListAliasesCommand");
|
|
@@ -53,6 +54,7 @@ const PutFunctionCodeSigningConfigCommand_1 = require("./commands/PutFunctionCod
|
|
|
53
54
|
const PutFunctionConcurrencyCommand_1 = require("./commands/PutFunctionConcurrencyCommand");
|
|
54
55
|
const PutFunctionEventInvokeConfigCommand_1 = require("./commands/PutFunctionEventInvokeConfigCommand");
|
|
55
56
|
const PutProvisionedConcurrencyConfigCommand_1 = require("./commands/PutProvisionedConcurrencyConfigCommand");
|
|
57
|
+
const PutRuntimeManagementConfigCommand_1 = require("./commands/PutRuntimeManagementConfigCommand");
|
|
56
58
|
const RemoveLayerVersionPermissionCommand_1 = require("./commands/RemoveLayerVersionPermissionCommand");
|
|
57
59
|
const RemovePermissionCommand_1 = require("./commands/RemovePermissionCommand");
|
|
58
60
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -514,6 +516,20 @@ class Lambda extends LambdaClient_1.LambdaClient {
|
|
|
514
516
|
return this.send(command, optionsOrCb);
|
|
515
517
|
}
|
|
516
518
|
}
|
|
519
|
+
getRuntimeManagementConfig(args, optionsOrCb, cb) {
|
|
520
|
+
const command = new GetRuntimeManagementConfigCommand_1.GetRuntimeManagementConfigCommand(args);
|
|
521
|
+
if (typeof optionsOrCb === "function") {
|
|
522
|
+
this.send(command, optionsOrCb);
|
|
523
|
+
}
|
|
524
|
+
else if (typeof cb === "function") {
|
|
525
|
+
if (typeof optionsOrCb !== "object")
|
|
526
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
527
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
return this.send(command, optionsOrCb);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
517
533
|
invoke(args, optionsOrCb, cb) {
|
|
518
534
|
const command = new InvokeCommand_1.InvokeCommand(args);
|
|
519
535
|
if (typeof optionsOrCb === "function") {
|
|
@@ -794,6 +810,20 @@ class Lambda extends LambdaClient_1.LambdaClient {
|
|
|
794
810
|
return this.send(command, optionsOrCb);
|
|
795
811
|
}
|
|
796
812
|
}
|
|
813
|
+
putRuntimeManagementConfig(args, optionsOrCb, cb) {
|
|
814
|
+
const command = new PutRuntimeManagementConfigCommand_1.PutRuntimeManagementConfigCommand(args);
|
|
815
|
+
if (typeof optionsOrCb === "function") {
|
|
816
|
+
this.send(command, optionsOrCb);
|
|
817
|
+
}
|
|
818
|
+
else if (typeof cb === "function") {
|
|
819
|
+
if (typeof optionsOrCb !== "object")
|
|
820
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
821
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
822
|
+
}
|
|
823
|
+
else {
|
|
824
|
+
return this.send(command, optionsOrCb);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
797
827
|
removeLayerVersionPermission(args, optionsOrCb, cb) {
|
|
798
828
|
const command = new RemoveLayerVersionPermissionCommand_1.RemoveLayerVersionPermissionCommand(args);
|
|
799
829
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetRuntimeManagementConfigCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class GetRuntimeManagementConfigCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRuntimeManagementConfigCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "LambdaClient";
|
|
28
|
+
const commandName = "GetRuntimeManagementConfigCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetRuntimeManagementConfigRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetRuntimeManagementConfigResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetRuntimeManagementConfigCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetRuntimeManagementConfigCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetRuntimeManagementConfigCommand = GetRuntimeManagementConfigCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutRuntimeManagementConfigCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class PutRuntimeManagementConfigCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutRuntimeManagementConfigCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "LambdaClient";
|
|
28
|
+
const commandName = "PutRuntimeManagementConfigCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.PutRuntimeManagementConfigRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.PutRuntimeManagementConfigResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PutRuntimeManagementConfigCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PutRuntimeManagementConfigCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.PutRuntimeManagementConfigCommand = PutRuntimeManagementConfigCommand;
|
|
@@ -33,6 +33,7 @@ tslib_1.__exportStar(require("./GetLayerVersionCommand"), exports);
|
|
|
33
33
|
tslib_1.__exportStar(require("./GetLayerVersionPolicyCommand"), exports);
|
|
34
34
|
tslib_1.__exportStar(require("./GetPolicyCommand"), exports);
|
|
35
35
|
tslib_1.__exportStar(require("./GetProvisionedConcurrencyConfigCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./GetRuntimeManagementConfigCommand"), exports);
|
|
36
37
|
tslib_1.__exportStar(require("./InvokeAsyncCommand"), exports);
|
|
37
38
|
tslib_1.__exportStar(require("./InvokeCommand"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./ListAliasesCommand"), exports);
|
|
@@ -53,6 +54,7 @@ tslib_1.__exportStar(require("./PutFunctionCodeSigningConfigCommand"), exports);
|
|
|
53
54
|
tslib_1.__exportStar(require("./PutFunctionConcurrencyCommand"), exports);
|
|
54
55
|
tslib_1.__exportStar(require("./PutFunctionEventInvokeConfigCommand"), exports);
|
|
55
56
|
tslib_1.__exportStar(require("./PutProvisionedConcurrencyConfigCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./PutRuntimeManagementConfigCommand"), exports);
|
|
56
58
|
tslib_1.__exportStar(require("./RemoveLayerVersionPermissionCommand"), exports);
|
|
57
59
|
tslib_1.__exportStar(require("./RemovePermissionCommand"), exports);
|
|
58
60
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.LogType = exports.InvocationType = exports.InvalidZipFileException = exports.InvalidSubnetIDException = exports.InvalidSecurityGroupIDException = exports.InvalidRuntimeException = exports.InvalidRequestContentException = exports.ENILimitReachedException = exports.EFSMountTimeoutException = exports.EFSMountFailureException = exports.EFSMountConnectivityException = exports.EFSIOException = exports.EC2UnexpectedException = exports.EC2ThrottledException = exports.EC2AccessDeniedException = exports.UpdateRuntimeOn = exports.ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyStatusEnum = exports.ResourceInUseException = exports.InvalidCodeSignatureException = exports.StateReasonCode = exports.State = exports.SnapStartOptimizationStatus = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.TracingMode = exports.SnapStartApplyOn = exports.Runtime = exports.PackageType = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourcePosition = exports.SourceAccessType = exports.EndPointType = exports.FunctionResponseType = exports.CodeSigningPolicy = exports.Architecture = exports.FunctionUrlAuthType = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
|
|
4
|
+
exports.LayerFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.VpcConfigFilterSensitiveLog = exports.TracingConfigFilterSensitiveLog = exports.SnapStartFilterSensitiveLog = exports.ImageConfigFilterSensitiveLog = exports.FileSystemConfigFilterSensitiveLog = exports.EphemeralStorageFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.DeadLetterConfigFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.EventSourceMappingConfigurationFilterSensitiveLog = exports.CreateEventSourceMappingRequestFilterSensitiveLog = exports.SourceAccessConfigurationFilterSensitiveLog = exports.SelfManagedKafkaEventSourceConfigFilterSensitiveLog = exports.SelfManagedEventSourceFilterSensitiveLog = exports.ScalingConfigFilterSensitiveLog = exports.FilterCriteriaFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DestinationConfigFilterSensitiveLog = exports.OnSuccessFilterSensitiveLog = exports.OnFailureFilterSensitiveLog = exports.CreateCodeSigningConfigResponseFilterSensitiveLog = exports.CodeSigningConfigFilterSensitiveLog = exports.CreateCodeSigningConfigRequestFilterSensitiveLog = exports.CodeSigningPoliciesFilterSensitiveLog = exports.CreateAliasRequestFilterSensitiveLog = exports.AmazonManagedKafkaEventSourceConfigFilterSensitiveLog = exports.AllowedPublishersFilterSensitiveLog = exports.AliasConfigurationFilterSensitiveLog = exports.AliasRoutingConfigurationFilterSensitiveLog = exports.AddPermissionResponseFilterSensitiveLog = exports.AddPermissionRequestFilterSensitiveLog = exports.AddLayerVersionPermissionResponseFilterSensitiveLog = exports.AddLayerVersionPermissionRequestFilterSensitiveLog = exports.AccountUsageFilterSensitiveLog = exports.AccountLimitFilterSensitiveLog = exports.FunctionVersion = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = void 0;
|
|
5
|
+
exports.GetRuntimeManagementConfigRequestFilterSensitiveLog = exports.GetProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.GetProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.GetPolicyResponseFilterSensitiveLog = exports.GetPolicyRequestFilterSensitiveLog = exports.GetLayerVersionPolicyResponseFilterSensitiveLog = exports.GetLayerVersionPolicyRequestFilterSensitiveLog = exports.GetLayerVersionByArnRequestFilterSensitiveLog = exports.GetLayerVersionResponseFilterSensitiveLog = exports.LayerVersionContentOutputFilterSensitiveLog = exports.GetLayerVersionRequestFilterSensitiveLog = exports.GetFunctionUrlConfigResponseFilterSensitiveLog = exports.GetFunctionUrlConfigRequestFilterSensitiveLog = exports.GetFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.FunctionEventInvokeConfigFilterSensitiveLog = exports.GetFunctionConfigurationRequestFilterSensitiveLog = exports.GetFunctionConcurrencyResponseFilterSensitiveLog = exports.GetFunctionConcurrencyRequestFilterSensitiveLog = exports.GetFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.GetFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.ConcurrencyFilterSensitiveLog = exports.FunctionCodeLocationFilterSensitiveLog = exports.GetFunctionRequestFilterSensitiveLog = exports.GetEventSourceMappingRequestFilterSensitiveLog = exports.GetCodeSigningConfigResponseFilterSensitiveLog = exports.GetCodeSigningConfigRequestFilterSensitiveLog = exports.GetAliasRequestFilterSensitiveLog = exports.GetAccountSettingsResponseFilterSensitiveLog = exports.GetAccountSettingsRequestFilterSensitiveLog = exports.DeleteProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.DeleteLayerVersionRequestFilterSensitiveLog = exports.DeleteFunctionUrlConfigRequestFilterSensitiveLog = exports.DeleteFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.DeleteFunctionConcurrencyRequestFilterSensitiveLog = exports.DeleteFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteFunctionRequestFilterSensitiveLog = exports.DeleteEventSourceMappingRequestFilterSensitiveLog = exports.DeleteCodeSigningConfigResponseFilterSensitiveLog = exports.DeleteCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteAliasRequestFilterSensitiveLog = exports.CreateFunctionUrlConfigResponseFilterSensitiveLog = exports.CreateFunctionUrlConfigRequestFilterSensitiveLog = exports.CorsFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.VpcConfigResponseFilterSensitiveLog = exports.TracingConfigResponseFilterSensitiveLog = exports.SnapStartResponseFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = exports.PutRuntimeManagementConfigResponseFilterSensitiveLog = exports.PutRuntimeManagementConfigRequestFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.PutFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.PutFunctionConcurrencyRequestFilterSensitiveLog = exports.PutFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.PutFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.PublishVersionRequestFilterSensitiveLog = exports.PublishLayerVersionResponseFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListVersionsByFunctionRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsResponseFilterSensitiveLog = exports.ProvisionedConcurrencyConfigListItemFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsRequestFilterSensitiveLog = exports.ListLayerVersionsResponseFilterSensitiveLog = exports.ListLayerVersionsRequestFilterSensitiveLog = exports.ListLayersResponseFilterSensitiveLog = exports.LayersListItemFilterSensitiveLog = exports.LayerVersionsListItemFilterSensitiveLog = exports.ListLayersRequestFilterSensitiveLog = exports.ListFunctionUrlConfigsResponseFilterSensitiveLog = exports.FunctionUrlConfigFilterSensitiveLog = exports.ListFunctionUrlConfigsRequestFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigResponseFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigRequestFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.ListFunctionsRequestFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsResponseFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsRequestFilterSensitiveLog = exports.ListEventSourceMappingsResponseFilterSensitiveLog = exports.ListEventSourceMappingsRequestFilterSensitiveLog = exports.ListCodeSigningConfigsResponseFilterSensitiveLog = exports.ListCodeSigningConfigsRequestFilterSensitiveLog = exports.ListAliasesResponseFilterSensitiveLog = exports.ListAliasesRequestFilterSensitiveLog = exports.InvokeAsyncResponseFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetRuntimeManagementConfigResponseFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const LambdaServiceException_1 = require("./LambdaServiceException");
|
|
10
10
|
class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
|
|
@@ -367,6 +367,12 @@ class ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceExcepti
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
exports.ProvisionedConcurrencyConfigNotFoundException = ProvisionedConcurrencyConfigNotFoundException;
|
|
370
|
+
var UpdateRuntimeOn;
|
|
371
|
+
(function (UpdateRuntimeOn) {
|
|
372
|
+
UpdateRuntimeOn["Auto"] = "Auto";
|
|
373
|
+
UpdateRuntimeOn["FunctionUpdate"] = "FunctionUpdate";
|
|
374
|
+
UpdateRuntimeOn["Manual"] = "Manual";
|
|
375
|
+
})(UpdateRuntimeOn = exports.UpdateRuntimeOn || (exports.UpdateRuntimeOn = {}));
|
|
370
376
|
class EC2AccessDeniedException extends LambdaServiceException_1.LambdaServiceException {
|
|
371
377
|
constructor(opts) {
|
|
372
378
|
super({
|
|
@@ -912,6 +918,16 @@ const LayerFilterSensitiveLog = (obj) => ({
|
|
|
912
918
|
...obj,
|
|
913
919
|
});
|
|
914
920
|
exports.LayerFilterSensitiveLog = LayerFilterSensitiveLog;
|
|
921
|
+
const RuntimeVersionErrorFilterSensitiveLog = (obj) => ({
|
|
922
|
+
...obj,
|
|
923
|
+
...(obj.Message && { Message: smithy_client_1.SENSITIVE_STRING }),
|
|
924
|
+
});
|
|
925
|
+
exports.RuntimeVersionErrorFilterSensitiveLog = RuntimeVersionErrorFilterSensitiveLog;
|
|
926
|
+
const RuntimeVersionConfigFilterSensitiveLog = (obj) => ({
|
|
927
|
+
...obj,
|
|
928
|
+
...(obj.Error && { Error: (0, exports.RuntimeVersionErrorFilterSensitiveLog)(obj.Error) }),
|
|
929
|
+
});
|
|
930
|
+
exports.RuntimeVersionConfigFilterSensitiveLog = RuntimeVersionConfigFilterSensitiveLog;
|
|
915
931
|
const SnapStartResponseFilterSensitiveLog = (obj) => ({
|
|
916
932
|
...obj,
|
|
917
933
|
});
|
|
@@ -930,6 +946,9 @@ const FunctionConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
930
946
|
...(obj.ImageConfigResponse && {
|
|
931
947
|
ImageConfigResponse: (0, exports.ImageConfigResponseFilterSensitiveLog)(obj.ImageConfigResponse),
|
|
932
948
|
}),
|
|
949
|
+
...(obj.RuntimeVersionConfig && {
|
|
950
|
+
RuntimeVersionConfig: (0, exports.RuntimeVersionConfigFilterSensitiveLog)(obj.RuntimeVersionConfig),
|
|
951
|
+
}),
|
|
933
952
|
});
|
|
934
953
|
exports.FunctionConfigurationFilterSensitiveLog = FunctionConfigurationFilterSensitiveLog;
|
|
935
954
|
const CorsFilterSensitiveLog = (obj) => ({
|
|
@@ -1105,6 +1124,14 @@ const GetProvisionedConcurrencyConfigResponseFilterSensitiveLog = (obj) => ({
|
|
|
1105
1124
|
...obj,
|
|
1106
1125
|
});
|
|
1107
1126
|
exports.GetProvisionedConcurrencyConfigResponseFilterSensitiveLog = GetProvisionedConcurrencyConfigResponseFilterSensitiveLog;
|
|
1127
|
+
const GetRuntimeManagementConfigRequestFilterSensitiveLog = (obj) => ({
|
|
1128
|
+
...obj,
|
|
1129
|
+
});
|
|
1130
|
+
exports.GetRuntimeManagementConfigRequestFilterSensitiveLog = GetRuntimeManagementConfigRequestFilterSensitiveLog;
|
|
1131
|
+
const GetRuntimeManagementConfigResponseFilterSensitiveLog = (obj) => ({
|
|
1132
|
+
...obj,
|
|
1133
|
+
});
|
|
1134
|
+
exports.GetRuntimeManagementConfigResponseFilterSensitiveLog = GetRuntimeManagementConfigResponseFilterSensitiveLog;
|
|
1108
1135
|
const InvocationRequestFilterSensitiveLog = (obj) => ({
|
|
1109
1136
|
...obj,
|
|
1110
1137
|
...(obj.Payload && { Payload: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1279,6 +1306,14 @@ const PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = (obj) => ({
|
|
|
1279
1306
|
...obj,
|
|
1280
1307
|
});
|
|
1281
1308
|
exports.PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = PutProvisionedConcurrencyConfigResponseFilterSensitiveLog;
|
|
1309
|
+
const PutRuntimeManagementConfigRequestFilterSensitiveLog = (obj) => ({
|
|
1310
|
+
...obj,
|
|
1311
|
+
});
|
|
1312
|
+
exports.PutRuntimeManagementConfigRequestFilterSensitiveLog = PutRuntimeManagementConfigRequestFilterSensitiveLog;
|
|
1313
|
+
const PutRuntimeManagementConfigResponseFilterSensitiveLog = (obj) => ({
|
|
1314
|
+
...obj,
|
|
1315
|
+
});
|
|
1316
|
+
exports.PutRuntimeManagementConfigResponseFilterSensitiveLog = PutRuntimeManagementConfigResponseFilterSensitiveLog;
|
|
1282
1317
|
const RemoveLayerVersionPermissionRequestFilterSensitiveLog = (obj) => ({
|
|
1283
1318
|
...obj,
|
|
1284
1319
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateFunctionUrlConfigCommand = exports.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1UpdateFunctionConfigurationCommand = exports.deserializeAws_restJson1UpdateFunctionCodeCommand = exports.deserializeAws_restJson1UpdateEventSourceMappingCommand = exports.deserializeAws_restJson1UpdateCodeSigningConfigCommand = exports.deserializeAws_restJson1UpdateAliasCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RemovePermissionCommand = exports.deserializeAws_restJson1RemoveLayerVersionPermissionCommand = exports.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = exports.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1PutFunctionConcurrencyCommand = exports.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = exports.deserializeAws_restJson1PublishVersionCommand = exports.deserializeAws_restJson1PublishLayerVersionCommand = exports.deserializeAws_restJson1ListVersionsByFunctionCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = exports.deserializeAws_restJson1ListLayerVersionsCommand = exports.deserializeAws_restJson1ListLayersCommand = exports.deserializeAws_restJson1ListFunctionUrlConfigsCommand = exports.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = exports.deserializeAws_restJson1ListFunctionsCommand = exports.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1PutFunctionCodeSigningConfigCommand = exports.serializeAws_restJson1PublishVersionCommand = exports.serializeAws_restJson1PublishLayerVersionCommand = exports.serializeAws_restJson1ListVersionsByFunctionCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = exports.serializeAws_restJson1ListLayerVersionsCommand = exports.serializeAws_restJson1ListLayersCommand = exports.serializeAws_restJson1ListFunctionUrlConfigsCommand = exports.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = exports.serializeAws_restJson1ListFunctionsCommand = exports.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = exports.serializeAws_restJson1ListEventSourceMappingsCommand = exports.serializeAws_restJson1ListCodeSigningConfigsCommand = exports.serializeAws_restJson1ListAliasesCommand = exports.serializeAws_restJson1InvokeAsyncCommand = exports.serializeAws_restJson1InvokeCommand = exports.serializeAws_restJson1GetRuntimeManagementConfigCommand = exports.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetLayerVersionPolicyCommand = exports.serializeAws_restJson1GetLayerVersionByArnCommand = exports.serializeAws_restJson1GetLayerVersionCommand = exports.serializeAws_restJson1GetFunctionUrlConfigCommand = exports.serializeAws_restJson1GetFunctionEventInvokeConfigCommand = exports.serializeAws_restJson1GetFunctionConfigurationCommand = exports.serializeAws_restJson1GetFunctionConcurrencyCommand = exports.serializeAws_restJson1GetFunctionCodeSigningConfigCommand = exports.serializeAws_restJson1GetFunctionCommand = exports.serializeAws_restJson1GetEventSourceMappingCommand = exports.serializeAws_restJson1GetCodeSigningConfigCommand = exports.serializeAws_restJson1GetAliasCommand = exports.serializeAws_restJson1GetAccountSettingsCommand = exports.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = exports.serializeAws_restJson1DeleteLayerVersionCommand = exports.serializeAws_restJson1DeleteFunctionUrlConfigCommand = exports.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = exports.serializeAws_restJson1DeleteFunctionConcurrencyCommand = exports.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = exports.serializeAws_restJson1DeleteFunctionCommand = exports.serializeAws_restJson1DeleteEventSourceMappingCommand = exports.serializeAws_restJson1DeleteCodeSigningConfigCommand = exports.serializeAws_restJson1DeleteAliasCommand = exports.serializeAws_restJson1CreateFunctionUrlConfigCommand = exports.serializeAws_restJson1CreateFunctionCommand = exports.serializeAws_restJson1CreateEventSourceMappingCommand = exports.serializeAws_restJson1CreateCodeSigningConfigCommand = exports.serializeAws_restJson1CreateAliasCommand = exports.serializeAws_restJson1AddPermissionCommand = exports.serializeAws_restJson1AddLayerVersionPermissionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1InvokeAsyncCommand = exports.deserializeAws_restJson1InvokeCommand = exports.deserializeAws_restJson1GetRuntimeManagementConfigCommand = exports.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = exports.deserializeAws_restJson1GetPolicyCommand = exports.deserializeAws_restJson1GetLayerVersionPolicyCommand = exports.deserializeAws_restJson1GetLayerVersionByArnCommand = exports.deserializeAws_restJson1GetLayerVersionCommand = exports.deserializeAws_restJson1GetFunctionUrlConfigCommand = exports.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1GetFunctionConfigurationCommand = exports.deserializeAws_restJson1GetFunctionConcurrencyCommand = exports.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = exports.deserializeAws_restJson1GetFunctionCommand = exports.deserializeAws_restJson1GetEventSourceMappingCommand = exports.deserializeAws_restJson1GetCodeSigningConfigCommand = exports.deserializeAws_restJson1GetAliasCommand = exports.deserializeAws_restJson1GetAccountSettingsCommand = exports.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = exports.deserializeAws_restJson1DeleteLayerVersionCommand = exports.deserializeAws_restJson1DeleteFunctionUrlConfigCommand = exports.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1DeleteFunctionConcurrencyCommand = exports.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = exports.deserializeAws_restJson1DeleteFunctionCommand = exports.deserializeAws_restJson1DeleteEventSourceMappingCommand = exports.deserializeAws_restJson1DeleteCodeSigningConfigCommand = exports.deserializeAws_restJson1DeleteAliasCommand = exports.deserializeAws_restJson1CreateFunctionUrlConfigCommand = exports.deserializeAws_restJson1CreateFunctionCommand = exports.deserializeAws_restJson1CreateEventSourceMappingCommand = exports.deserializeAws_restJson1CreateCodeSigningConfigCommand = exports.deserializeAws_restJson1CreateAliasCommand = exports.deserializeAws_restJson1AddPermissionCommand = exports.deserializeAws_restJson1AddLayerVersionPermissionCommand = exports.serializeAws_restJson1UpdateFunctionUrlConfigCommand = exports.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = exports.serializeAws_restJson1UpdateFunctionConfigurationCommand = exports.serializeAws_restJson1UpdateFunctionCodeCommand = exports.serializeAws_restJson1UpdateEventSourceMappingCommand = exports.serializeAws_restJson1UpdateCodeSigningConfigCommand = exports.serializeAws_restJson1UpdateAliasCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RemovePermissionCommand = exports.serializeAws_restJson1RemoveLayerVersionPermissionCommand = exports.serializeAws_restJson1PutRuntimeManagementConfigCommand = exports.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = exports.serializeAws_restJson1PutFunctionEventInvokeConfigCommand = exports.serializeAws_restJson1PutFunctionConcurrencyCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateFunctionUrlConfigCommand = exports.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1UpdateFunctionConfigurationCommand = exports.deserializeAws_restJson1UpdateFunctionCodeCommand = exports.deserializeAws_restJson1UpdateEventSourceMappingCommand = exports.deserializeAws_restJson1UpdateCodeSigningConfigCommand = exports.deserializeAws_restJson1UpdateAliasCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RemovePermissionCommand = exports.deserializeAws_restJson1RemoveLayerVersionPermissionCommand = exports.deserializeAws_restJson1PutRuntimeManagementConfigCommand = exports.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = exports.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = exports.deserializeAws_restJson1PutFunctionConcurrencyCommand = exports.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = exports.deserializeAws_restJson1PublishVersionCommand = exports.deserializeAws_restJson1PublishLayerVersionCommand = exports.deserializeAws_restJson1ListVersionsByFunctionCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = exports.deserializeAws_restJson1ListLayerVersionsCommand = exports.deserializeAws_restJson1ListLayersCommand = exports.deserializeAws_restJson1ListFunctionUrlConfigsCommand = exports.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = exports.deserializeAws_restJson1ListFunctionsCommand = exports.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = exports.deserializeAws_restJson1ListEventSourceMappingsCommand = exports.deserializeAws_restJson1ListCodeSigningConfigsCommand = exports.deserializeAws_restJson1ListAliasesCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const LambdaServiceException_1 = require("../models/LambdaServiceException");
|
|
@@ -174,7 +174,7 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
|
|
|
174
174
|
}),
|
|
175
175
|
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
176
176
|
...(input.StartingPositionTimestamp != null && {
|
|
177
|
-
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000)
|
|
177
|
+
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
|
|
178
178
|
}),
|
|
179
179
|
...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
180
180
|
...(input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
|
|
@@ -763,6 +763,28 @@ const serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
763
763
|
});
|
|
764
764
|
};
|
|
765
765
|
exports.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = serializeAws_restJson1GetProvisionedConcurrencyConfigCommand;
|
|
766
|
+
const serializeAws_restJson1GetRuntimeManagementConfigCommand = async (input, context) => {
|
|
767
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
|
+
const headers = {};
|
|
769
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
770
|
+
"/2021-07-20/functions/{FunctionName}/runtime-management-config";
|
|
771
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
772
|
+
const query = map({
|
|
773
|
+
Qualifier: [, input.Qualifier],
|
|
774
|
+
});
|
|
775
|
+
let body;
|
|
776
|
+
return new protocol_http_1.HttpRequest({
|
|
777
|
+
protocol,
|
|
778
|
+
hostname,
|
|
779
|
+
port,
|
|
780
|
+
method: "GET",
|
|
781
|
+
headers,
|
|
782
|
+
path: resolvedPath,
|
|
783
|
+
query,
|
|
784
|
+
body,
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
exports.serializeAws_restJson1GetRuntimeManagementConfigCommand = serializeAws_restJson1GetRuntimeManagementConfigCommand;
|
|
766
788
|
const serializeAws_restJson1InvokeCommand = async (input, context) => {
|
|
767
789
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
790
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -1249,6 +1271,34 @@ const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
1249
1271
|
});
|
|
1250
1272
|
};
|
|
1251
1273
|
exports.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = serializeAws_restJson1PutProvisionedConcurrencyConfigCommand;
|
|
1274
|
+
const serializeAws_restJson1PutRuntimeManagementConfigCommand = async (input, context) => {
|
|
1275
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1276
|
+
const headers = {
|
|
1277
|
+
"content-type": "application/json",
|
|
1278
|
+
};
|
|
1279
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1280
|
+
"/2021-07-20/functions/{FunctionName}/runtime-management-config";
|
|
1281
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
1282
|
+
const query = map({
|
|
1283
|
+
Qualifier: [, input.Qualifier],
|
|
1284
|
+
});
|
|
1285
|
+
let body;
|
|
1286
|
+
body = JSON.stringify({
|
|
1287
|
+
...(input.RuntimeVersionArn != null && { RuntimeVersionArn: input.RuntimeVersionArn }),
|
|
1288
|
+
...(input.UpdateRuntimeOn != null && { UpdateRuntimeOn: input.UpdateRuntimeOn }),
|
|
1289
|
+
});
|
|
1290
|
+
return new protocol_http_1.HttpRequest({
|
|
1291
|
+
protocol,
|
|
1292
|
+
hostname,
|
|
1293
|
+
port,
|
|
1294
|
+
method: "PUT",
|
|
1295
|
+
headers,
|
|
1296
|
+
path: resolvedPath,
|
|
1297
|
+
query,
|
|
1298
|
+
body,
|
|
1299
|
+
});
|
|
1300
|
+
};
|
|
1301
|
+
exports.serializeAws_restJson1PutRuntimeManagementConfigCommand = serializeAws_restJson1PutRuntimeManagementConfigCommand;
|
|
1252
1302
|
const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input, context) => {
|
|
1253
1303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1254
1304
|
const headers = {};
|
|
@@ -1991,6 +2041,9 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
|
|
|
1991
2041
|
if (data.Runtime != null) {
|
|
1992
2042
|
contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
|
|
1993
2043
|
}
|
|
2044
|
+
if (data.RuntimeVersionConfig != null) {
|
|
2045
|
+
contents.RuntimeVersionConfig = deserializeAws_restJson1RuntimeVersionConfig(data.RuntimeVersionConfig, context);
|
|
2046
|
+
}
|
|
1994
2047
|
if (data.SigningJobArn != null) {
|
|
1995
2048
|
contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
|
|
1996
2049
|
}
|
|
@@ -3096,6 +3149,9 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
|
|
|
3096
3149
|
if (data.Runtime != null) {
|
|
3097
3150
|
contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
|
|
3098
3151
|
}
|
|
3152
|
+
if (data.RuntimeVersionConfig != null) {
|
|
3153
|
+
contents.RuntimeVersionConfig = deserializeAws_restJson1RuntimeVersionConfig(data.RuntimeVersionConfig, context);
|
|
3154
|
+
}
|
|
3099
3155
|
if (data.SigningJobArn != null) {
|
|
3100
3156
|
contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
|
|
3101
3157
|
}
|
|
@@ -3558,6 +3614,52 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = asyn
|
|
|
3558
3614
|
});
|
|
3559
3615
|
}
|
|
3560
3616
|
};
|
|
3617
|
+
const deserializeAws_restJson1GetRuntimeManagementConfigCommand = async (output, context) => {
|
|
3618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3619
|
+
return deserializeAws_restJson1GetRuntimeManagementConfigCommandError(output, context);
|
|
3620
|
+
}
|
|
3621
|
+
const contents = map({
|
|
3622
|
+
$metadata: deserializeMetadata(output),
|
|
3623
|
+
});
|
|
3624
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3625
|
+
if (data.RuntimeVersionArn != null) {
|
|
3626
|
+
contents.RuntimeVersionArn = (0, smithy_client_1.expectString)(data.RuntimeVersionArn);
|
|
3627
|
+
}
|
|
3628
|
+
if (data.UpdateRuntimeOn != null) {
|
|
3629
|
+
contents.UpdateRuntimeOn = (0, smithy_client_1.expectString)(data.UpdateRuntimeOn);
|
|
3630
|
+
}
|
|
3631
|
+
return contents;
|
|
3632
|
+
};
|
|
3633
|
+
exports.deserializeAws_restJson1GetRuntimeManagementConfigCommand = deserializeAws_restJson1GetRuntimeManagementConfigCommand;
|
|
3634
|
+
const deserializeAws_restJson1GetRuntimeManagementConfigCommandError = async (output, context) => {
|
|
3635
|
+
const parsedOutput = {
|
|
3636
|
+
...output,
|
|
3637
|
+
body: await parseErrorBody(output.body, context),
|
|
3638
|
+
};
|
|
3639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
|
+
switch (errorCode) {
|
|
3641
|
+
case "InvalidParameterValueException":
|
|
3642
|
+
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3643
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3644
|
+
case "ResourceNotFoundException":
|
|
3645
|
+
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3646
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3647
|
+
case "ServiceException":
|
|
3648
|
+
case "com.amazonaws.lambda#ServiceException":
|
|
3649
|
+
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
3650
|
+
case "TooManyRequestsException":
|
|
3651
|
+
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3652
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3653
|
+
default:
|
|
3654
|
+
const parsedBody = parsedOutput.body;
|
|
3655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3656
|
+
output,
|
|
3657
|
+
parsedBody,
|
|
3658
|
+
exceptionCtor: LambdaServiceException_1.LambdaServiceException,
|
|
3659
|
+
errorCode,
|
|
3660
|
+
});
|
|
3661
|
+
}
|
|
3662
|
+
};
|
|
3561
3663
|
const deserializeAws_restJson1InvokeCommand = async (output, context) => {
|
|
3562
3664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3563
3665
|
return deserializeAws_restJson1InvokeCommandError(output, context);
|
|
@@ -4410,6 +4512,9 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
|
|
|
4410
4512
|
if (data.Runtime != null) {
|
|
4411
4513
|
contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
|
|
4412
4514
|
}
|
|
4515
|
+
if (data.RuntimeVersionConfig != null) {
|
|
4516
|
+
contents.RuntimeVersionConfig = deserializeAws_restJson1RuntimeVersionConfig(data.RuntimeVersionConfig, context);
|
|
4517
|
+
}
|
|
4413
4518
|
if (data.SigningJobArn != null) {
|
|
4414
4519
|
contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
|
|
4415
4520
|
}
|
|
@@ -4698,6 +4803,58 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = asyn
|
|
|
4698
4803
|
});
|
|
4699
4804
|
}
|
|
4700
4805
|
};
|
|
4806
|
+
const deserializeAws_restJson1PutRuntimeManagementConfigCommand = async (output, context) => {
|
|
4807
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4808
|
+
return deserializeAws_restJson1PutRuntimeManagementConfigCommandError(output, context);
|
|
4809
|
+
}
|
|
4810
|
+
const contents = map({
|
|
4811
|
+
$metadata: deserializeMetadata(output),
|
|
4812
|
+
});
|
|
4813
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4814
|
+
if (data.FunctionArn != null) {
|
|
4815
|
+
contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
|
|
4816
|
+
}
|
|
4817
|
+
if (data.RuntimeVersionArn != null) {
|
|
4818
|
+
contents.RuntimeVersionArn = (0, smithy_client_1.expectString)(data.RuntimeVersionArn);
|
|
4819
|
+
}
|
|
4820
|
+
if (data.UpdateRuntimeOn != null) {
|
|
4821
|
+
contents.UpdateRuntimeOn = (0, smithy_client_1.expectString)(data.UpdateRuntimeOn);
|
|
4822
|
+
}
|
|
4823
|
+
return contents;
|
|
4824
|
+
};
|
|
4825
|
+
exports.deserializeAws_restJson1PutRuntimeManagementConfigCommand = deserializeAws_restJson1PutRuntimeManagementConfigCommand;
|
|
4826
|
+
const deserializeAws_restJson1PutRuntimeManagementConfigCommandError = async (output, context) => {
|
|
4827
|
+
const parsedOutput = {
|
|
4828
|
+
...output,
|
|
4829
|
+
body: await parseErrorBody(output.body, context),
|
|
4830
|
+
};
|
|
4831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4832
|
+
switch (errorCode) {
|
|
4833
|
+
case "InvalidParameterValueException":
|
|
4834
|
+
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4835
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4836
|
+
case "ResourceConflictException":
|
|
4837
|
+
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4838
|
+
throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
|
|
4839
|
+
case "ResourceNotFoundException":
|
|
4840
|
+
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4841
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4842
|
+
case "ServiceException":
|
|
4843
|
+
case "com.amazonaws.lambda#ServiceException":
|
|
4844
|
+
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4845
|
+
case "TooManyRequestsException":
|
|
4846
|
+
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4847
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4848
|
+
default:
|
|
4849
|
+
const parsedBody = parsedOutput.body;
|
|
4850
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4851
|
+
output,
|
|
4852
|
+
parsedBody,
|
|
4853
|
+
exceptionCtor: LambdaServiceException_1.LambdaServiceException,
|
|
4854
|
+
errorCode,
|
|
4855
|
+
});
|
|
4856
|
+
}
|
|
4857
|
+
};
|
|
4701
4858
|
const deserializeAws_restJson1RemoveLayerVersionPermissionCommand = async (output, context) => {
|
|
4702
4859
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4703
4860
|
return deserializeAws_restJson1RemoveLayerVersionPermissionCommandError(output, context);
|
|
@@ -5178,6 +5335,9 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
|
|
|
5178
5335
|
if (data.Runtime != null) {
|
|
5179
5336
|
contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
|
|
5180
5337
|
}
|
|
5338
|
+
if (data.RuntimeVersionConfig != null) {
|
|
5339
|
+
contents.RuntimeVersionConfig = deserializeAws_restJson1RuntimeVersionConfig(data.RuntimeVersionConfig, context);
|
|
5340
|
+
}
|
|
5181
5341
|
if (data.SigningJobArn != null) {
|
|
5182
5342
|
contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
|
|
5183
5343
|
}
|
|
@@ -5338,6 +5498,9 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
|
|
|
5338
5498
|
if (data.Runtime != null) {
|
|
5339
5499
|
contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
|
|
5340
5500
|
}
|
|
5501
|
+
if (data.RuntimeVersionConfig != null) {
|
|
5502
|
+
contents.RuntimeVersionConfig = deserializeAws_restJson1RuntimeVersionConfig(data.RuntimeVersionConfig, context);
|
|
5503
|
+
}
|
|
5341
5504
|
if (data.SigningJobArn != null) {
|
|
5342
5505
|
contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
|
|
5343
5506
|
}
|
|
@@ -6787,6 +6950,9 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
6787
6950
|
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
6788
6951
|
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
6789
6952
|
Runtime: (0, smithy_client_1.expectString)(output.Runtime),
|
|
6953
|
+
RuntimeVersionConfig: output.RuntimeVersionConfig != null
|
|
6954
|
+
? deserializeAws_restJson1RuntimeVersionConfig(output.RuntimeVersionConfig, context)
|
|
6955
|
+
: undefined,
|
|
6790
6956
|
SigningJobArn: (0, smithy_client_1.expectString)(output.SigningJobArn),
|
|
6791
6957
|
SigningProfileVersionArn: (0, smithy_client_1.expectString)(output.SigningProfileVersionArn),
|
|
6792
6958
|
SnapStart: output.SnapStart != null ? deserializeAws_restJson1SnapStartResponse(output.SnapStart, context) : undefined,
|
|
@@ -7015,6 +7181,18 @@ const deserializeAws_restJson1Queues = (output, context) => {
|
|
|
7015
7181
|
});
|
|
7016
7182
|
return retVal;
|
|
7017
7183
|
};
|
|
7184
|
+
const deserializeAws_restJson1RuntimeVersionConfig = (output, context) => {
|
|
7185
|
+
return {
|
|
7186
|
+
Error: output.Error != null ? deserializeAws_restJson1RuntimeVersionError(output.Error, context) : undefined,
|
|
7187
|
+
RuntimeVersionArn: (0, smithy_client_1.expectString)(output.RuntimeVersionArn),
|
|
7188
|
+
};
|
|
7189
|
+
};
|
|
7190
|
+
const deserializeAws_restJson1RuntimeVersionError = (output, context) => {
|
|
7191
|
+
return {
|
|
7192
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
7193
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
7194
|
+
};
|
|
7195
|
+
};
|
|
7018
7196
|
const deserializeAws_restJson1ScalingConfig = (output, context) => {
|
|
7019
7197
|
return {
|
|
7020
7198
|
MaximumConcurrency: (0, smithy_client_1.expectInt32)(output.MaximumConcurrency),
|