@aws-sdk/client-lambda 3.241.0 → 3.250.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/README.md CHANGED
@@ -36,7 +36,6 @@ see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.h
36
36
  <p>
37
37
  <b>CA certificates</b>
38
38
  </p>
39
-
40
39
  <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
41
40
  can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
42
41
  computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const r = "fn", s = "argv", t = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "fn", r = "argv", s = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KMSNotFoundException = 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.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.TracingConfigResponseFilterSensitiveLog = exports.SnapStartResponseFilterSensitiveLog = 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.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 = void 0;
5
- exports.ListAliasesRequestFilterSensitiveLog = exports.InvokeAsyncResponseFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = 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 = void 0;
6
- exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = 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 = void 0;
4
+ exports.SnapStartResponseFilterSensitiveLog = 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 = void 0;
5
+ exports.InvokeAsyncResponseFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = 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 = void 0;
6
+ exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = 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 = void 0;
7
+ exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = void 0;
7
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
9
  const LambdaServiceException_1 = require("./LambdaServiceException");
9
10
  class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
@@ -818,6 +819,10 @@ const FilterCriteriaFilterSensitiveLog = (obj) => ({
818
819
  ...obj,
819
820
  });
820
821
  exports.FilterCriteriaFilterSensitiveLog = FilterCriteriaFilterSensitiveLog;
822
+ const ScalingConfigFilterSensitiveLog = (obj) => ({
823
+ ...obj,
824
+ });
825
+ exports.ScalingConfigFilterSensitiveLog = ScalingConfigFilterSensitiveLog;
821
826
  const SelfManagedEventSourceFilterSensitiveLog = (obj) => ({
822
827
  ...obj,
823
828
  });
@@ -160,6 +160,9 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
160
160
  ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
161
161
  ...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
162
162
  ...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
163
+ ...(input.ScalingConfig != null && {
164
+ ScalingConfig: serializeAws_restJson1ScalingConfig(input.ScalingConfig, context),
165
+ }),
163
166
  ...(input.SelfManagedEventSource != null && {
164
167
  SelfManagedEventSource: serializeAws_restJson1SelfManagedEventSource(input.SelfManagedEventSource, context),
165
168
  }),
@@ -171,7 +174,7 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
171
174
  }),
172
175
  ...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
173
176
  ...(input.StartingPositionTimestamp != null && {
174
- StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
177
+ StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000).toString(),
175
178
  }),
176
179
  ...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
177
180
  ...(input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
@@ -1426,6 +1429,9 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
1426
1429
  ...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
1427
1430
  ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
1428
1431
  ...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
1432
+ ...(input.ScalingConfig != null && {
1433
+ ScalingConfig: serializeAws_restJson1ScalingConfig(input.ScalingConfig, context),
1434
+ }),
1429
1435
  ...(input.SourceAccessConfigurations != null && {
1430
1436
  SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
1431
1437
  }),
@@ -1837,6 +1843,9 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
1837
1843
  if (data.Queues != null) {
1838
1844
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
1839
1845
  }
1846
+ if (data.ScalingConfig != null) {
1847
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
1848
+ }
1840
1849
  if (data.SelfManagedEventSource != null) {
1841
1850
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
1842
1851
  }
@@ -2250,6 +2259,9 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2250
2259
  if (data.Queues != null) {
2251
2260
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
2252
2261
  }
2262
+ if (data.ScalingConfig != null) {
2263
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
2264
+ }
2253
2265
  if (data.SelfManagedEventSource != null) {
2254
2266
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
2255
2267
  }
@@ -2798,6 +2810,9 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
2798
2810
  if (data.Queues != null) {
2799
2811
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
2800
2812
  }
2813
+ if (data.ScalingConfig != null) {
2814
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
2815
+ }
2801
2816
  if (data.SelfManagedEventSource != null) {
2802
2817
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
2803
2818
  }
@@ -5012,6 +5027,9 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
5012
5027
  if (data.Queues != null) {
5013
5028
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
5014
5029
  }
5030
+ if (data.ScalingConfig != null) {
5031
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
5032
+ }
5015
5033
  if (data.SelfManagedEventSource != null) {
5016
5034
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
5017
5035
  }
@@ -6304,6 +6322,11 @@ const serializeAws_restJson1Queues = (input, context) => {
6304
6322
  return entry;
6305
6323
  });
6306
6324
  };
6325
+ const serializeAws_restJson1ScalingConfig = (input, context) => {
6326
+ return {
6327
+ ...(input.MaximumConcurrency != null && { MaximumConcurrency: input.MaximumConcurrency }),
6328
+ };
6329
+ };
6307
6330
  const serializeAws_restJson1SecurityGroupIds = (input, context) => {
6308
6331
  return input
6309
6332
  .filter((e) => e != null)
@@ -6639,6 +6662,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
6639
6662
  MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
6640
6663
  ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
6641
6664
  Queues: output.Queues != null ? deserializeAws_restJson1Queues(output.Queues, context) : undefined,
6665
+ ScalingConfig: output.ScalingConfig != null ? deserializeAws_restJson1ScalingConfig(output.ScalingConfig, context) : undefined,
6642
6666
  SelfManagedEventSource: output.SelfManagedEventSource != null
6643
6667
  ? deserializeAws_restJson1SelfManagedEventSource(output.SelfManagedEventSource, context)
6644
6668
  : undefined,
@@ -6991,6 +7015,11 @@ const deserializeAws_restJson1Queues = (output, context) => {
6991
7015
  });
6992
7016
  return retVal;
6993
7017
  };
7018
+ const deserializeAws_restJson1ScalingConfig = (output, context) => {
7019
+ return {
7020
+ MaximumConcurrency: (0, smithy_client_1.expectInt32)(output.MaximumConcurrency),
7021
+ };
7022
+ };
6994
7023
  const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
6995
7024
  const retVal = (output || [])
6996
7025
  .filter((e) => e != null)
@@ -1,4 +1,4 @@
1
- const r = "fn", s = "argv", t = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "fn", r = "argv", s = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
4
  export const ruleSet = _data;
@@ -755,6 +755,9 @@ export const FilterFilterSensitiveLog = (obj) => ({
755
755
  export const FilterCriteriaFilterSensitiveLog = (obj) => ({
756
756
  ...obj,
757
757
  });
758
+ export const ScalingConfigFilterSensitiveLog = (obj) => ({
759
+ ...obj,
760
+ });
758
761
  export const SelfManagedEventSourceFilterSensitiveLog = (obj) => ({
759
762
  ...obj,
760
763
  });
@@ -151,6 +151,9 @@ export const serializeAws_restJson1CreateEventSourceMappingCommand = async (inpu
151
151
  ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
152
152
  ...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
153
153
  ...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
154
+ ...(input.ScalingConfig != null && {
155
+ ScalingConfig: serializeAws_restJson1ScalingConfig(input.ScalingConfig, context),
156
+ }),
154
157
  ...(input.SelfManagedEventSource != null && {
155
158
  SelfManagedEventSource: serializeAws_restJson1SelfManagedEventSource(input.SelfManagedEventSource, context),
156
159
  }),
@@ -162,7 +165,7 @@ export const serializeAws_restJson1CreateEventSourceMappingCommand = async (inpu
162
165
  }),
163
166
  ...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
164
167
  ...(input.StartingPositionTimestamp != null && {
165
- StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
168
+ StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000).toString(),
166
169
  }),
167
170
  ...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
168
171
  ...(input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds }),
@@ -1363,6 +1366,9 @@ export const serializeAws_restJson1UpdateEventSourceMappingCommand = async (inpu
1363
1366
  ...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
1364
1367
  ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
1365
1368
  ...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
1369
+ ...(input.ScalingConfig != null && {
1370
+ ScalingConfig: serializeAws_restJson1ScalingConfig(input.ScalingConfig, context),
1371
+ }),
1366
1372
  ...(input.SourceAccessConfigurations != null && {
1367
1373
  SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
1368
1374
  }),
@@ -1765,6 +1771,9 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (ou
1765
1771
  if (data.Queues != null) {
1766
1772
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
1767
1773
  }
1774
+ if (data.ScalingConfig != null) {
1775
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
1776
+ }
1768
1777
  if (data.SelfManagedEventSource != null) {
1769
1778
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
1770
1779
  }
@@ -2173,6 +2182,9 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (ou
2173
2182
  if (data.Queues != null) {
2174
2183
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
2175
2184
  }
2185
+ if (data.ScalingConfig != null) {
2186
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
2187
+ }
2176
2188
  if (data.SelfManagedEventSource != null) {
2177
2189
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
2178
2190
  }
@@ -2710,6 +2722,9 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (outpu
2710
2722
  if (data.Queues != null) {
2711
2723
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
2712
2724
  }
2725
+ if (data.ScalingConfig != null) {
2726
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
2727
+ }
2713
2728
  if (data.SelfManagedEventSource != null) {
2714
2729
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
2715
2730
  }
@@ -4886,6 +4901,9 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (ou
4886
4901
  if (data.Queues != null) {
4887
4902
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
4888
4903
  }
4904
+ if (data.ScalingConfig != null) {
4905
+ contents.ScalingConfig = deserializeAws_restJson1ScalingConfig(data.ScalingConfig, context);
4906
+ }
4889
4907
  if (data.SelfManagedEventSource != null) {
4890
4908
  contents.SelfManagedEventSource = deserializeAws_restJson1SelfManagedEventSource(data.SelfManagedEventSource, context);
4891
4909
  }
@@ -6173,6 +6191,11 @@ const serializeAws_restJson1Queues = (input, context) => {
6173
6191
  return entry;
6174
6192
  });
6175
6193
  };
6194
+ const serializeAws_restJson1ScalingConfig = (input, context) => {
6195
+ return {
6196
+ ...(input.MaximumConcurrency != null && { MaximumConcurrency: input.MaximumConcurrency }),
6197
+ };
6198
+ };
6176
6199
  const serializeAws_restJson1SecurityGroupIds = (input, context) => {
6177
6200
  return input
6178
6201
  .filter((e) => e != null)
@@ -6508,6 +6531,7 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
6508
6531
  MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
6509
6532
  ParallelizationFactor: __expectInt32(output.ParallelizationFactor),
6510
6533
  Queues: output.Queues != null ? deserializeAws_restJson1Queues(output.Queues, context) : undefined,
6534
+ ScalingConfig: output.ScalingConfig != null ? deserializeAws_restJson1ScalingConfig(output.ScalingConfig, context) : undefined,
6511
6535
  SelfManagedEventSource: output.SelfManagedEventSource != null
6512
6536
  ? deserializeAws_restJson1SelfManagedEventSource(output.SelfManagedEventSource, context)
6513
6537
  : undefined,
@@ -6860,6 +6884,11 @@ const deserializeAws_restJson1Queues = (output, context) => {
6860
6884
  });
6861
6885
  return retVal;
6862
6886
  };
6887
+ const deserializeAws_restJson1ScalingConfig = (output, context) => {
6888
+ return {
6889
+ MaximumConcurrency: __expectInt32(output.MaximumConcurrency),
6890
+ };
6891
+ };
6863
6892
  const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
6864
6893
  const retVal = (output || [])
6865
6894
  .filter((e) => e != null)
@@ -90,7 +90,6 @@ import { LambdaClient } from "./LambdaClient";
90
90
  * <p>
91
91
  * <b>CA certificates</b>
92
92
  * </p>
93
- *
94
93
  * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
95
94
  * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
96
95
  * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
@@ -149,14 +148,12 @@ export declare class Lambda extends LambdaClient {
149
148
  * access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
150
149
  * (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
151
150
  * to version $LATEST.</p>
152
- *
153
151
  * <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant
154
152
  * permission to an organization defined in Organizations, specify the organization ID as the
155
153
  * <code>PrincipalOrgID</code>. For Amazon Web Services, the principal is a domain-style identifier that
156
154
  * the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Services, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If
157
155
  * you grant permission to a service principal without specifying the source, other accounts could potentially
158
156
  * configure resources in their account to invoke your Lambda function.</p>
159
- *
160
157
  * <p>This operation adds a statement to a resource-based permissions policy for the function. For more information
161
158
  * about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Using resource-based policies for Lambda</a>.</p>
162
159
  */
@@ -183,8 +180,7 @@ export declare class Lambda extends LambdaClient {
183
180
  createCodeSigningConfig(args: CreateCodeSigningConfigCommandInput, cb: (err: any, data?: CreateCodeSigningConfigCommandOutput) => void): void;
184
181
  createCodeSigningConfig(args: CreateCodeSigningConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCodeSigningConfigCommandOutput) => void): void;
185
182
  /**
186
- * <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
187
- * event source and invokes the function.</p>
183
+ * <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.</p>
188
184
  * <p>For details about how to configure different event sources, see the following topics. </p>
189
185
  * <ul>
190
186
  * <li>
@@ -224,28 +220,27 @@ export declare class Lambda extends LambdaClient {
224
220
  * </p>
225
221
  * </li>
226
222
  * </ul>
227
- *
228
223
  * <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
229
224
  * <ul>
230
225
  * <li>
231
226
  * <p>
232
- * <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
227
+ * <code>BisectBatchOnFunctionError</code> If the function returns an error, split the batch in two and retry.</p>
233
228
  * </li>
234
229
  * <li>
235
230
  * <p>
236
- * <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
231
+ * <code>DestinationConfig</code> Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
237
232
  * </li>
238
233
  * <li>
239
234
  * <p>
240
- * <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
235
+ * <code>MaximumRecordAgeInSeconds</code> Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
241
236
  * </li>
242
237
  * <li>
243
238
  * <p>
244
- * <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
239
+ * <code>MaximumRetryAttempts</code> Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
245
240
  * </li>
246
241
  * <li>
247
242
  * <p>
248
- * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
243
+ * <code>ParallelizationFactor</code> Process multiple batches from each shard concurrently.</p>
249
244
  * </li>
250
245
  * </ul>
251
246
  * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
@@ -296,44 +291,36 @@ export declare class Lambda extends LambdaClient {
296
291
  * deployment package is a .zip file archive or container image that contains your function code. The execution role
297
292
  * grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log
298
293
  * streaming and X-Ray for request tracing.</p>
299
- *
300
294
  * <p>If the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container
301
295
  * image</a>, then you set the package type to <code>Image</code>. For a container image, the code property
302
296
  * must include the URI of a container image in the Amazon ECR registry. You do not need to specify the
303
297
  * handler and runtime properties.</p>
304
- *
305
298
  * <p>If the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file archive</a>, then
306
299
  * you set the package type to <code>Zip</code>. For a .zip file archive, the code property specifies the location of
307
300
  * the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must
308
301
  * be compatible with the target instruction set architecture of the function (<code>x86-64</code> or
309
302
  * <code>arm64</code>). If you do not specify the architecture, then the default value is
310
303
  * <code>x86-64</code>.</p>
311
- *
312
304
  * <p>When you create a function, Lambda provisions an instance of the function and its supporting
313
305
  * resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't
314
306
  * invoke or modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code>
315
307
  * fields in the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to
316
308
  * invoke. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda function states</a>.</p>
317
- *
318
309
  * <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version
319
310
  * changes when you update your function's code and configuration. A published version is a snapshot of your function
320
311
  * code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be
321
312
  * changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of
322
313
  * your function from its initial configuration.</p>
323
- *
324
314
  * <p>The other parameters let you configure version-specific and function-level settings. You can modify
325
315
  * version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply
326
316
  * to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>)
327
317
  * and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p>
328
- *
329
318
  * <p>You can use code signing if your deployment package is a .zip file archive. To enable code signing for this
330
319
  * function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with
331
320
  * <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from
332
321
  * a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted
333
322
  * publishers for this function.</p>
334
- *
335
323
  * <p>If another Amazon Web Services account or an Amazon Web Service invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.</p>
336
- *
337
324
  * <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
338
325
  * in other Amazon Web Services, create an event source mapping (<a>CreateEventSourceMapping</a>),
339
326
  * or configure a function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Lambda
@@ -374,7 +361,6 @@ export declare class Lambda extends LambdaClient {
374
361
  /**
375
362
  * <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter.
376
363
  * Otherwise, all versions and aliases are deleted.</p>
377
- *
378
364
  * <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Services and resources that invoke your function
379
365
  * directly, delete the trigger in the service where you originally configured it.</p>
380
366
  */
@@ -526,32 +512,26 @@ export declare class Lambda extends LambdaClient {
526
512
  /**
527
513
  * <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
528
514
  * asynchronously. To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>.</p>
529
- *
530
515
  * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>,
531
516
  * details about the function response, including errors, are included in the response body and headers. For either
532
517
  * invocation type, you can find more information in the <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p>
533
- *
534
518
  * <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,
535
519
  * client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an
536
520
  * error, Lambda executes the function up to two more times. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html">Error handling and automatic retries in
537
521
  * Lambda</a>.</p>
538
- *
539
522
  * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>,
540
523
  * Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity
541
524
  * to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple
542
525
  * times, even if no error occurs. To retain events that were not processed, configure your function with a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq">dead-letter queue</a>.</p>
543
- *
544
526
  * <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
545
527
  * prevent your function from executing, such as permissions errors, <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">quota</a> errors, or issues with your function's code and
546
528
  * configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the
547
529
  * function would cause you to exceed a concurrency limit at either the account level
548
530
  * (<code>ConcurrentInvocationLimitExceeded</code>) or function level
549
531
  * (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>
550
- *
551
532
  * <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits
552
533
  * for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long
553
534
  * connections with timeout or keep-alive settings.</p>
554
- *
555
535
  * <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action. For details on how to set up
556
536
  * permissions for cross-account invocations, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke">Granting function
557
537
  * access to other accounts</a>.</p>
@@ -679,11 +659,9 @@ export declare class Lambda extends LambdaClient {
679
659
  * <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the
680
660
  * current code and configuration of a function. Use versions to create a snapshot of your function code and
681
661
  * configuration that doesn't change.</p>
682
- *
683
662
  * <p>Lambda doesn't publish a version if the function's configuration and code haven't changed since the last
684
663
  * version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the
685
664
  * function before publishing a version.</p>
686
- *
687
665
  * <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>
688
666
  */
689
667
  publishVersion(args: PublishVersionCommandInput, options?: __HttpHandlerOptions): Promise<PublishVersionCommandOutput>;
@@ -814,28 +792,27 @@ export declare class Lambda extends LambdaClient {
814
792
  * </p>
815
793
  * </li>
816
794
  * </ul>
817
- *
818
795
  * <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
819
796
  * <ul>
820
797
  * <li>
821
798
  * <p>
822
- * <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
799
+ * <code>BisectBatchOnFunctionError</code> If the function returns an error, split the batch in two and retry.</p>
823
800
  * </li>
824
801
  * <li>
825
802
  * <p>
826
- * <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
803
+ * <code>DestinationConfig</code> Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
827
804
  * </li>
828
805
  * <li>
829
806
  * <p>
830
- * <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
807
+ * <code>MaximumRecordAgeInSeconds</code> Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
831
808
  * </li>
832
809
  * <li>
833
810
  * <p>
834
- * <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
811
+ * <code>MaximumRetryAttempts</code> Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
835
812
  * </li>
836
813
  * <li>
837
814
  * <p>
838
- * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
815
+ * <code>ParallelizationFactor</code> Process multiple batches from each shard concurrently.</p>
839
816
  * </li>
840
817
  * </ul>
841
818
  * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
@@ -884,16 +861,13 @@ export declare class Lambda extends LambdaClient {
884
861
  /**
885
862
  * <p>Updates a Lambda function's code. If code signing is enabled for the function, the code package
886
863
  * must be signed by a trusted publisher. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">Configuring code signing for Lambda</a>.</p>
887
- *
888
864
  * <p>If the function's package type is <code>Image</code>, then you must specify the code package in
889
865
  * <code>ImageUri</code> as the URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p>
890
- *
891
866
  * <p>If the function's package type is <code>Zip</code>, then you must specify the deployment package as a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file
892
867
  * archive</a>. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide
893
868
  * the function code inline using the <code>ZipFile</code> field.</p>
894
869
  * <p>The code in the deployment package must be compatible with the target instruction set architecture of the
895
870
  * function (<code>x86-64</code> or <code>arm64</code>).</p>
896
- *
897
871
  * <p>The function's code is locked when you publish a version. You can't modify the code of a published version,
898
872
  * only the unpublished version.</p>
899
873
  * <note>
@@ -907,7 +881,6 @@ export declare class Lambda extends LambdaClient {
907
881
  updateFunctionCode(args: UpdateFunctionCodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFunctionCodeCommandOutput) => void): void;
908
882
  /**
909
883
  * <p>Modify the version-specific settings of a Lambda function.</p>
910
- *
911
884
  * <p>When you update a function, Lambda provisions an instance of the function and its supporting
912
885
  * resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify
913
886
  * the function, but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>,
@@ -915,10 +888,8 @@ export declare class Lambda extends LambdaClient {
915
888
  * indicate when the update is complete and the function is processing events with the new configuration. For more
916
889
  * information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda
917
890
  * function states</a>.</p>
918
- *
919
891
  * <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
920
892
  * modify the configuration of a published version, only the unpublished version.</p>
921
- *
922
893
  * <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
923
894
  * to an Amazon Web Services account or Amazon Web Service, use <a>AddPermission</a>.</p>
924
895
  */
@@ -212,7 +212,6 @@ export interface LambdaClientResolvedConfig extends LambdaClientResolvedConfigTy
212
212
  * <p>
213
213
  * <b>CA certificates</b>
214
214
  * </p>
215
- *
216
215
  * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
217
216
  * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
218
217
  * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
@@ -13,14 +13,12 @@ export interface AddPermissionCommandOutput extends AddPermissionResponse, __Met
13
13
  * access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
14
14
  * (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
15
15
  * to version $LATEST.</p>
16
- *
17
16
  * <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant
18
17
  * permission to an organization defined in Organizations, specify the organization ID as the
19
18
  * <code>PrincipalOrgID</code>. For Amazon Web Services, the principal is a domain-style identifier that
20
19
  * the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Services, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If
21
20
  * you grant permission to a service principal without specifying the source, other accounts could potentially
22
21
  * configure resources in their account to invoke your Lambda function.</p>
23
- *
24
22
  * <p>This operation adds a statement to a resource-based permissions policy for the function. For more information
25
23
  * about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Using resource-based policies for Lambda</a>.</p>
26
24
  * @example