@aws-sdk/client-lambda 3.55.0 → 3.56.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-lambda:** Adds support for increased ephemeral storage (/tmp) up to 10GB for Lambda functions. Customers can now provision up to 10 GB of ephemeral storage per function instance, a 20x increase over the previous limit of 512 MB. ([d77b86b](https://github.com/aws/aws-sdk-js-v3/commit/d77b86b6fa2e3bd9c9226f107a6a476dd16a7d81))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
18
 
8
19
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VpcConfig = exports.TracingConfig = exports.TracingMode = exports.Runtime = exports.PackageType = exports.ImageConfig = exports.FileSystemConfig = exports.Environment = exports.DeadLetterConfig = exports.FunctionCode = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourceMappingConfiguration = exports.CreateEventSourceMappingRequest = exports.EventSourcePosition = exports.SourceAccessConfiguration = exports.SourceAccessType = exports.SelfManagedEventSource = exports.EndPointType = exports.FunctionResponseType = exports.FilterCriteria = exports.Filter = exports.DestinationConfig = exports.OnSuccess = exports.OnFailure = exports.CreateCodeSigningConfigResponse = exports.CodeSigningConfig = exports.CreateCodeSigningConfigRequest = exports.CodeSigningPolicies = exports.CodeSigningPolicy = exports.CreateAliasRequest = exports.Architecture = exports.AllowedPublishers = exports.AliasConfiguration = exports.AliasRoutingConfiguration = exports.AddPermissionResponse = exports.AddPermissionRequest = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = exports.AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionRequest = exports.AccountUsage = exports.AccountLimit = void 0;
4
- exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetLayerVersionPolicyResponse = exports.GetLayerVersionPolicyRequest = exports.GetLayerVersionByArnRequest = exports.GetLayerVersionResponse = exports.LayerVersionContentOutput = exports.GetLayerVersionRequest = exports.GetFunctionEventInvokeConfigRequest = exports.FunctionEventInvokeConfig = exports.GetFunctionConfigurationRequest = exports.GetFunctionConcurrencyResponse = exports.GetFunctionConcurrencyRequest = exports.GetFunctionCodeSigningConfigResponse = exports.GetFunctionCodeSigningConfigRequest = exports.GetFunctionResponse = exports.Concurrency = exports.FunctionCodeLocation = exports.GetFunctionRequest = exports.GetEventSourceMappingRequest = exports.GetCodeSigningConfigResponse = exports.GetCodeSigningConfigRequest = exports.GetAliasRequest = exports.GetAccountSettingsResponse = exports.GetAccountSettingsRequest = exports.DeleteProvisionedConcurrencyConfigRequest = exports.DeleteLayerVersionRequest = exports.DeleteFunctionEventInvokeConfigRequest = exports.DeleteFunctionConcurrencyRequest = exports.DeleteFunctionCodeSigningConfigRequest = exports.DeleteFunctionRequest = exports.ResourceInUseException = exports.DeleteEventSourceMappingRequest = exports.DeleteCodeSigningConfigResponse = exports.DeleteCodeSigningConfigRequest = exports.DeleteAliasRequest = exports.InvalidCodeSignatureException = exports.FunctionConfiguration = exports.VpcConfigResponse = exports.TracingConfigResponse = exports.StateReasonCode = exports.State = exports.Layer = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.ImageConfigResponse = exports.ImageConfigError = exports.EnvironmentResponse = exports.EnvironmentError = exports.CreateFunctionRequest = void 0;
5
- exports.ListLayerVersionsResponse = exports.ListLayerVersionsRequest = exports.ListLayersResponse = exports.LayersListItem = exports.LayerVersionsListItem = exports.ListLayersRequest = exports.ListFunctionsByCodeSigningConfigResponse = exports.ListFunctionsByCodeSigningConfigRequest = exports.ListFunctionsResponse = exports.ListFunctionsRequest = exports.FunctionVersion = exports.ListFunctionEventInvokeConfigsResponse = exports.ListFunctionEventInvokeConfigsRequest = exports.ListEventSourceMappingsResponse = exports.ListEventSourceMappingsRequest = exports.ListCodeSigningConfigsResponse = exports.ListCodeSigningConfigsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.InvokeAsyncResponse = exports.InvokeAsyncRequest = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvocationResponse = exports.InvocationRequest = 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.ProvisionedConcurrencyConfigNotFoundException = exports.GetProvisionedConcurrencyConfigResponse = exports.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = void 0;
6
- exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = void 0;
3
+ exports.TracingConfig = exports.TracingMode = exports.Runtime = exports.PackageType = exports.ImageConfig = exports.FileSystemConfig = exports.EphemeralStorage = exports.Environment = exports.DeadLetterConfig = exports.FunctionCode = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourceMappingConfiguration = exports.CreateEventSourceMappingRequest = exports.EventSourcePosition = exports.SourceAccessConfiguration = exports.SourceAccessType = exports.SelfManagedEventSource = exports.EndPointType = exports.FunctionResponseType = exports.FilterCriteria = exports.Filter = exports.DestinationConfig = exports.OnSuccess = exports.OnFailure = exports.CreateCodeSigningConfigResponse = exports.CodeSigningConfig = exports.CreateCodeSigningConfigRequest = exports.CodeSigningPolicies = exports.CodeSigningPolicy = exports.CreateAliasRequest = exports.Architecture = exports.AllowedPublishers = exports.AliasConfiguration = exports.AliasRoutingConfiguration = exports.AddPermissionResponse = exports.AddPermissionRequest = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = exports.AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionRequest = exports.AccountUsage = exports.AccountLimit = void 0;
4
+ exports.GetPolicyRequest = exports.GetLayerVersionPolicyResponse = exports.GetLayerVersionPolicyRequest = exports.GetLayerVersionByArnRequest = exports.GetLayerVersionResponse = exports.LayerVersionContentOutput = exports.GetLayerVersionRequest = exports.GetFunctionEventInvokeConfigRequest = exports.FunctionEventInvokeConfig = exports.GetFunctionConfigurationRequest = exports.GetFunctionConcurrencyResponse = exports.GetFunctionConcurrencyRequest = exports.GetFunctionCodeSigningConfigResponse = exports.GetFunctionCodeSigningConfigRequest = exports.GetFunctionResponse = exports.Concurrency = exports.FunctionCodeLocation = exports.GetFunctionRequest = exports.GetEventSourceMappingRequest = exports.GetCodeSigningConfigResponse = exports.GetCodeSigningConfigRequest = exports.GetAliasRequest = exports.GetAccountSettingsResponse = exports.GetAccountSettingsRequest = exports.DeleteProvisionedConcurrencyConfigRequest = exports.DeleteLayerVersionRequest = exports.DeleteFunctionEventInvokeConfigRequest = exports.DeleteFunctionConcurrencyRequest = exports.DeleteFunctionCodeSigningConfigRequest = exports.DeleteFunctionRequest = exports.ResourceInUseException = exports.DeleteEventSourceMappingRequest = exports.DeleteCodeSigningConfigResponse = exports.DeleteCodeSigningConfigRequest = exports.DeleteAliasRequest = exports.InvalidCodeSignatureException = exports.FunctionConfiguration = exports.VpcConfigResponse = exports.TracingConfigResponse = exports.StateReasonCode = exports.State = exports.Layer = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.ImageConfigResponse = exports.ImageConfigError = exports.EnvironmentResponse = exports.EnvironmentError = exports.CreateFunctionRequest = exports.VpcConfig = void 0;
5
+ exports.ListLayerVersionsRequest = exports.ListLayersResponse = exports.LayersListItem = exports.LayerVersionsListItem = exports.ListLayersRequest = exports.ListFunctionsByCodeSigningConfigResponse = exports.ListFunctionsByCodeSigningConfigRequest = exports.ListFunctionsResponse = exports.ListFunctionsRequest = exports.FunctionVersion = exports.ListFunctionEventInvokeConfigsResponse = exports.ListFunctionEventInvokeConfigsRequest = exports.ListEventSourceMappingsResponse = exports.ListEventSourceMappingsRequest = exports.ListCodeSigningConfigsResponse = exports.ListCodeSigningConfigsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.InvokeAsyncResponse = exports.InvokeAsyncRequest = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvocationResponse = exports.InvocationRequest = 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.ProvisionedConcurrencyConfigNotFoundException = exports.GetProvisionedConcurrencyConfigResponse = exports.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = exports.GetPolicyResponse = void 0;
6
+ exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = exports.ListLayerVersionsResponse = void 0;
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const LambdaServiceException_1 = require("./LambdaServiceException");
9
9
  var AccountLimit;
@@ -353,6 +353,12 @@ var Environment;
353
353
  ...(obj.Variables && { Variables: smithy_client_1.SENSITIVE_STRING }),
354
354
  });
355
355
  })(Environment = exports.Environment || (exports.Environment = {}));
356
+ var EphemeralStorage;
357
+ (function (EphemeralStorage) {
358
+ EphemeralStorage.filterSensitiveLog = (obj) => ({
359
+ ...obj,
360
+ });
361
+ })(EphemeralStorage = exports.EphemeralStorage || (exports.EphemeralStorage = {}));
356
362
  var FileSystemConfig;
357
363
  (function (FileSystemConfig) {
358
364
  FileSystemConfig.filterSensitiveLog = (obj) => ({
@@ -262,6 +262,10 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
262
262
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
263
263
  ...(input.Environment !== undefined &&
264
264
  input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
265
+ ...(input.EphemeralStorage !== undefined &&
266
+ input.EphemeralStorage !== null && {
267
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
268
+ }),
265
269
  ...(input.FileSystemConfigs !== undefined &&
266
270
  input.FileSystemConfigs !== null && {
267
271
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
@@ -1966,6 +1970,10 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
1966
1970
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1967
1971
  ...(input.Environment !== undefined &&
1968
1972
  input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
1973
+ ...(input.EphemeralStorage !== undefined &&
1974
+ input.EphemeralStorage !== null && {
1975
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
1976
+ }),
1969
1977
  ...(input.FileSystemConfigs !== undefined &&
1970
1978
  input.FileSystemConfigs !== null && {
1971
1979
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
@@ -2414,6 +2422,7 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2414
2422
  DeadLetterConfig: undefined,
2415
2423
  Description: undefined,
2416
2424
  Environment: undefined,
2425
+ EphemeralStorage: undefined,
2417
2426
  FileSystemConfigs: undefined,
2418
2427
  FunctionArn: undefined,
2419
2428
  FunctionName: undefined,
@@ -2460,6 +2469,9 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2460
2469
  if (data.Environment !== undefined && data.Environment !== null) {
2461
2470
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
2462
2471
  }
2472
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
2473
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
2474
+ }
2463
2475
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
2464
2476
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
2465
2477
  }
@@ -3525,6 +3537,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
3525
3537
  DeadLetterConfig: undefined,
3526
3538
  Description: undefined,
3527
3539
  Environment: undefined,
3540
+ EphemeralStorage: undefined,
3528
3541
  FileSystemConfigs: undefined,
3529
3542
  FunctionArn: undefined,
3530
3543
  FunctionName: undefined,
@@ -3571,6 +3584,9 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
3571
3584
  if (data.Environment !== undefined && data.Environment !== null) {
3572
3585
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
3573
3586
  }
3587
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
3588
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
3589
+ }
3574
3590
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
3575
3591
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
3576
3592
  }
@@ -4872,6 +4888,7 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
4872
4888
  DeadLetterConfig: undefined,
4873
4889
  Description: undefined,
4874
4890
  Environment: undefined,
4891
+ EphemeralStorage: undefined,
4875
4892
  FileSystemConfigs: undefined,
4876
4893
  FunctionArn: undefined,
4877
4894
  FunctionName: undefined,
@@ -4918,6 +4935,9 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
4918
4935
  if (data.Environment !== undefined && data.Environment !== null) {
4919
4936
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
4920
4937
  }
4938
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
4939
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
4940
+ }
4921
4941
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
4922
4942
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
4923
4943
  }
@@ -5728,6 +5748,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
5728
5748
  DeadLetterConfig: undefined,
5729
5749
  Description: undefined,
5730
5750
  Environment: undefined,
5751
+ EphemeralStorage: undefined,
5731
5752
  FileSystemConfigs: undefined,
5732
5753
  FunctionArn: undefined,
5733
5754
  FunctionName: undefined,
@@ -5774,6 +5795,9 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
5774
5795
  if (data.Environment !== undefined && data.Environment !== null) {
5775
5796
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
5776
5797
  }
5798
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
5799
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
5800
+ }
5777
5801
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
5778
5802
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
5779
5803
  }
@@ -5916,6 +5940,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
5916
5940
  DeadLetterConfig: undefined,
5917
5941
  Description: undefined,
5918
5942
  Environment: undefined,
5943
+ EphemeralStorage: undefined,
5919
5944
  FileSystemConfigs: undefined,
5920
5945
  FunctionArn: undefined,
5921
5946
  FunctionName: undefined,
@@ -5962,6 +5987,9 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
5962
5987
  if (data.Environment !== undefined && data.Environment !== null) {
5963
5988
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
5964
5989
  }
5990
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
5991
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
5992
+ }
5965
5993
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
5966
5994
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
5967
5995
  }
@@ -6789,6 +6817,11 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
6789
6817
  };
6790
6818
  }, {});
6791
6819
  };
6820
+ const serializeAws_restJson1EphemeralStorage = (input, context) => {
6821
+ return {
6822
+ ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
6823
+ };
6824
+ };
6792
6825
  const serializeAws_restJson1FileSystemConfig = (input, context) => {
6793
6826
  return {
6794
6827
  ...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
@@ -7189,6 +7222,11 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
7189
7222
  };
7190
7223
  }, {});
7191
7224
  };
7225
+ const deserializeAws_restJson1EphemeralStorage = (output, context) => {
7226
+ return {
7227
+ Size: (0, smithy_client_1.expectInt32)(output.Size),
7228
+ };
7229
+ };
7192
7230
  const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context) => {
7193
7231
  return {
7194
7232
  BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
@@ -7318,6 +7356,9 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
7318
7356
  Environment: output.Environment !== undefined && output.Environment !== null
7319
7357
  ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
7320
7358
  : undefined,
7359
+ EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
7360
+ ? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
7361
+ : undefined,
7321
7362
  FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
7322
7363
  ? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
7323
7364
  : undefined,
@@ -284,6 +284,10 @@ export var Environment;
284
284
  (function (Environment) {
285
285
  Environment.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Variables && { Variables: SENSITIVE_STRING }))); };
286
286
  })(Environment || (Environment = {}));
287
+ export var EphemeralStorage;
288
+ (function (EphemeralStorage) {
289
+ EphemeralStorage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
+ })(EphemeralStorage || (EphemeralStorage = {}));
287
291
  export var FileSystemConfig;
288
292
  (function (FileSystemConfig) {
289
293
  FileSystemConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -224,7 +224,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
224
224
  "content-type": "application/json",
225
225
  };
226
226
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
227
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures !== undefined &&
227
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures !== undefined &&
228
228
  input.Architectures !== null && {
229
229
  Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
230
230
  })), (input.Code !== undefined &&
@@ -233,7 +233,10 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
233
233
  input.DeadLetterConfig !== null && {
234
234
  DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
235
235
  })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
236
- input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.FileSystemConfigs !== undefined &&
236
+ input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
237
+ input.EphemeralStorage !== null && {
238
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
239
+ })), (input.FileSystemConfigs !== undefined &&
237
240
  input.FileSystemConfigs !== null && {
238
241
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
239
242
  })), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
@@ -2037,11 +2040,14 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
2037
2040
  else {
2038
2041
  throw new Error("No value provided for input HTTP label: FunctionName.");
2039
2042
  }
2040
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
2043
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig !== undefined &&
2041
2044
  input.DeadLetterConfig !== null && {
2042
2045
  DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
2043
2046
  })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined &&
2044
- input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.FileSystemConfigs !== undefined &&
2047
+ input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
2048
+ input.EphemeralStorage !== null && {
2049
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
2050
+ })), (input.FileSystemConfigs !== undefined &&
2045
2051
  input.FileSystemConfigs !== null && {
2046
2052
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
2047
2053
  })), (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.ImageConfig !== undefined &&
@@ -2597,6 +2603,7 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
2597
2603
  DeadLetterConfig: undefined,
2598
2604
  Description: undefined,
2599
2605
  Environment: undefined,
2606
+ EphemeralStorage: undefined,
2600
2607
  FileSystemConfigs: undefined,
2601
2608
  FunctionArn: undefined,
2602
2609
  FunctionName: undefined,
@@ -2647,6 +2654,9 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
2647
2654
  if (data.Environment !== undefined && data.Environment !== null) {
2648
2655
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
2649
2656
  }
2657
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
2658
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
2659
+ }
2650
2660
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
2651
2661
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
2652
2662
  }
@@ -4073,6 +4083,7 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
4073
4083
  DeadLetterConfig: undefined,
4074
4084
  Description: undefined,
4075
4085
  Environment: undefined,
4086
+ EphemeralStorage: undefined,
4076
4087
  FileSystemConfigs: undefined,
4077
4088
  FunctionArn: undefined,
4078
4089
  FunctionName: undefined,
@@ -4123,6 +4134,9 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
4123
4134
  if (data.Environment !== undefined && data.Environment !== null) {
4124
4135
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
4125
4136
  }
4137
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
4138
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
4139
+ }
4126
4140
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
4127
4141
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
4128
4142
  }
@@ -5898,6 +5912,7 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
5898
5912
  DeadLetterConfig: undefined,
5899
5913
  Description: undefined,
5900
5914
  Environment: undefined,
5915
+ EphemeralStorage: undefined,
5901
5916
  FileSystemConfigs: undefined,
5902
5917
  FunctionArn: undefined,
5903
5918
  FunctionName: undefined,
@@ -5948,6 +5963,9 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
5948
5963
  if (data.Environment !== undefined && data.Environment !== null) {
5949
5964
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
5950
5965
  }
5966
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
5967
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
5968
+ }
5951
5969
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
5952
5970
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
5953
5971
  }
@@ -7025,6 +7043,7 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
7025
7043
  DeadLetterConfig: undefined,
7026
7044
  Description: undefined,
7027
7045
  Environment: undefined,
7046
+ EphemeralStorage: undefined,
7028
7047
  FileSystemConfigs: undefined,
7029
7048
  FunctionArn: undefined,
7030
7049
  FunctionName: undefined,
@@ -7075,6 +7094,9 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
7075
7094
  if (data.Environment !== undefined && data.Environment !== null) {
7076
7095
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
7077
7096
  }
7097
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
7098
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
7099
+ }
7078
7100
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
7079
7101
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
7080
7102
  }
@@ -7241,6 +7263,7 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
7241
7263
  DeadLetterConfig: undefined,
7242
7264
  Description: undefined,
7243
7265
  Environment: undefined,
7266
+ EphemeralStorage: undefined,
7244
7267
  FileSystemConfigs: undefined,
7245
7268
  FunctionArn: undefined,
7246
7269
  FunctionName: undefined,
@@ -7291,6 +7314,9 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
7291
7314
  if (data.Environment !== undefined && data.Environment !== null) {
7292
7315
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
7293
7316
  }
7317
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
7318
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
7319
+ }
7294
7320
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
7295
7321
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
7296
7322
  }
@@ -8144,6 +8170,9 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
8144
8170
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
8145
8171
  }, {});
8146
8172
  };
8173
+ var serializeAws_restJson1EphemeralStorage = function (input, context) {
8174
+ return __assign({}, (input.Size !== undefined && input.Size !== null && { Size: input.Size }));
8175
+ };
8147
8176
  var serializeAws_restJson1FileSystemConfig = function (input, context) {
8148
8177
  return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.LocalMountPath !== undefined &&
8149
8178
  input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }));
@@ -8504,6 +8533,11 @@ var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
8504
8533
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
8505
8534
  }, {});
8506
8535
  };
8536
+ var deserializeAws_restJson1EphemeralStorage = function (output, context) {
8537
+ return {
8538
+ Size: __expectInt32(output.Size),
8539
+ };
8540
+ };
8507
8541
  var deserializeAws_restJson1EventSourceMappingConfiguration = function (output, context) {
8508
8542
  return {
8509
8543
  BatchSize: __expectInt32(output.BatchSize),
@@ -8633,6 +8667,9 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
8633
8667
  Environment: output.Environment !== undefined && output.Environment !== null
8634
8668
  ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
8635
8669
  : undefined,
8670
+ EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
8671
+ ? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
8672
+ : undefined,
8636
8673
  FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
8637
8674
  ? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
8638
8675
  : undefined,
@@ -1092,6 +1092,21 @@ export declare namespace Environment {
1092
1092
  */
1093
1093
  const filterSensitiveLog: (obj: Environment) => any;
1094
1094
  }
1095
+ /**
1096
+ * <p>The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.</p>
1097
+ */
1098
+ export interface EphemeralStorage {
1099
+ /**
1100
+ * <p>The size of the function’s /tmp directory.</p>
1101
+ */
1102
+ Size: number | undefined;
1103
+ }
1104
+ export declare namespace EphemeralStorage {
1105
+ /**
1106
+ * @internal
1107
+ */
1108
+ const filterSensitiveLog: (obj: EphemeralStorage) => any;
1109
+ }
1095
1110
  /**
1096
1111
  * <p>Details about the connection between a Lambda function and an
1097
1112
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a>.</p>
@@ -1330,6 +1345,10 @@ export interface CreateFunctionRequest {
1330
1345
  * The default value is <code>x86_64</code>.</p>
1331
1346
  */
1332
1347
  Architectures?: (Architecture | string)[];
1348
+ /**
1349
+ * <p>The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.</p>
1350
+ */
1351
+ EphemeralStorage?: EphemeralStorage;
1333
1352
  }
1334
1353
  export declare namespace CreateFunctionRequest {
1335
1354
  /**
@@ -1658,6 +1677,10 @@ export interface FunctionConfiguration {
1658
1677
  * valid values. The default architecture value is <code>x86_64</code>.</p>
1659
1678
  */
1660
1679
  Architectures?: (Architecture | string)[];
1680
+ /**
1681
+ * <p>The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.</p>
1682
+ */
1683
+ EphemeralStorage?: EphemeralStorage;
1661
1684
  }
1662
1685
  export declare namespace FunctionConfiguration {
1663
1686
  /**
@@ -4627,6 +4650,10 @@ export interface UpdateFunctionConfigurationRequest {
4627
4650
  * values</a> that override the values in the container image Docker file.</p>
4628
4651
  */
4629
4652
  ImageConfig?: ImageConfig;
4653
+ /**
4654
+ * <p>The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.</p>
4655
+ */
4656
+ EphemeralStorage?: EphemeralStorage;
4630
4657
  }
4631
4658
  export declare namespace UpdateFunctionConfigurationRequest {
4632
4659
  /**
@@ -528,6 +528,15 @@ export declare namespace Environment {
528
528
  const filterSensitiveLog: (obj: Environment) => any;
529
529
  }
530
530
 
531
+ export interface EphemeralStorage {
532
+
533
+ Size: number | undefined;
534
+ }
535
+ export declare namespace EphemeralStorage {
536
+
537
+ const filterSensitiveLog: (obj: EphemeralStorage) => any;
538
+ }
539
+
531
540
  export interface FileSystemConfig {
532
541
 
533
542
  Arn: string | undefined;
@@ -652,6 +661,8 @@ export interface CreateFunctionRequest {
652
661
  CodeSigningConfigArn?: string;
653
662
 
654
663
  Architectures?: (Architecture | string)[];
664
+
665
+ EphemeralStorage?: EphemeralStorage;
655
666
  }
656
667
  export declare namespace CreateFunctionRequest {
657
668
 
@@ -844,6 +855,8 @@ export interface FunctionConfiguration {
844
855
  SigningJobArn?: string;
845
856
 
846
857
  Architectures?: (Architecture | string)[];
858
+
859
+ EphemeralStorage?: EphemeralStorage;
847
860
  }
848
861
  export declare namespace FunctionConfiguration {
849
862
 
@@ -2151,6 +2164,8 @@ export interface UpdateFunctionConfigurationRequest {
2151
2164
  FileSystemConfigs?: FileSystemConfig[];
2152
2165
 
2153
2166
  ImageConfig?: ImageConfig;
2167
+
2168
+ EphemeralStorage?: EphemeralStorage;
2154
2169
  }
2155
2170
  export declare namespace UpdateFunctionConfigurationRequest {
2156
2171
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.55.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,21 +18,21 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.55.0",
22
- "@aws-sdk/config-resolver": "3.55.0",
23
- "@aws-sdk/credential-provider-node": "3.55.0",
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.55.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
27
27
  "@aws-sdk/middleware-content-length": "3.55.0",
28
28
  "@aws-sdk/middleware-host-header": "3.55.0",
29
29
  "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
31
  "@aws-sdk/middleware-serde": "3.55.0",
32
- "@aws-sdk/middleware-signing": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
33
  "@aws-sdk/middleware-stack": "3.55.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.55.0",
35
- "@aws-sdk/node-config-provider": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
36
  "@aws-sdk/node-http-handler": "3.55.0",
37
37
  "@aws-sdk/protocol-http": "3.55.0",
38
38
  "@aws-sdk/smithy-client": "3.55.0",
@@ -43,9 +43,9 @@
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
45
  "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.55.0",
48
- "@aws-sdk/util-user-agent-node": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "@aws-sdk/util-waiter": "3.55.0",