@aws-sdk/client-lambda 3.245.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 +0 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +8 -3
- package/dist-cjs/protocols/Aws_restJson1.js +30 -1
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +30 -1
- package/dist-types/Lambda.d.ts +11 -40
- package/dist-types/LambdaClient.d.ts +0 -1
- package/dist-types/commands/AddPermissionCommand.d.ts +0 -2
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +6 -8
- package/dist-types/commands/CreateFunctionCommand.d.ts +0 -8
- package/dist-types/commands/DeleteFunctionCommand.d.ts +0 -1
- package/dist-types/commands/InvokeCommand.d.ts +0 -6
- package/dist-types/commands/PublishVersionCommand.d.ts +0 -2
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +5 -6
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +0 -3
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +0 -3
- package/dist-types/models/models_0.d.ts +73 -47
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +1 -1
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
|
|
5
|
-
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [
|
|
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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
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
|
|
2
|
-
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [
|
|
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)
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
@@ -8,8 +8,7 @@ export interface CreateEventSourceMappingCommandInput extends CreateEventSourceM
|
|
|
8
8
|
export interface CreateEventSourceMappingCommandOutput extends EventSourceMappingConfiguration, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
|
|
12
|
-
* event source and invokes the function.</p>
|
|
11
|
+
* <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.</p>
|
|
13
12
|
* <p>For details about how to configure different event sources, see the following topics. </p>
|
|
14
13
|
* <ul>
|
|
15
14
|
* <li>
|
|
@@ -49,28 +48,27 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
49
48
|
* </p>
|
|
50
49
|
* </li>
|
|
51
50
|
* </ul>
|
|
52
|
-
*
|
|
53
51
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
54
52
|
* <ul>
|
|
55
53
|
* <li>
|
|
56
54
|
* <p>
|
|
57
|
-
* <code>BisectBatchOnFunctionError</code>
|
|
55
|
+
* <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p>
|
|
58
56
|
* </li>
|
|
59
57
|
* <li>
|
|
60
58
|
* <p>
|
|
61
|
-
* <code>DestinationConfig</code>
|
|
59
|
+
* <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
|
|
62
60
|
* </li>
|
|
63
61
|
* <li>
|
|
64
62
|
* <p>
|
|
65
|
-
* <code>MaximumRecordAgeInSeconds</code>
|
|
63
|
+
* <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>
|
|
66
64
|
* </li>
|
|
67
65
|
* <li>
|
|
68
66
|
* <p>
|
|
69
|
-
* <code>MaximumRetryAttempts</code>
|
|
67
|
+
* <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>
|
|
70
68
|
* </li>
|
|
71
69
|
* <li>
|
|
72
70
|
* <p>
|
|
73
|
-
* <code>ParallelizationFactor</code>
|
|
71
|
+
* <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p>
|
|
74
72
|
* </li>
|
|
75
73
|
* </ul>
|
|
76
74
|
* <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
|
|
@@ -12,44 +12,36 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
|
|
|
12
12
|
* deployment package is a .zip file archive or container image that contains your function code. The execution role
|
|
13
13
|
* grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log
|
|
14
14
|
* streaming and X-Ray for request tracing.</p>
|
|
15
|
-
*
|
|
16
15
|
* <p>If the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container
|
|
17
16
|
* image</a>, then you set the package type to <code>Image</code>. For a container image, the code property
|
|
18
17
|
* must include the URI of a container image in the Amazon ECR registry. You do not need to specify the
|
|
19
18
|
* handler and runtime properties.</p>
|
|
20
|
-
*
|
|
21
19
|
* <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
|
|
22
20
|
* you set the package type to <code>Zip</code>. For a .zip file archive, the code property specifies the location of
|
|
23
21
|
* the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must
|
|
24
22
|
* be compatible with the target instruction set architecture of the function (<code>x86-64</code> or
|
|
25
23
|
* <code>arm64</code>). If you do not specify the architecture, then the default value is
|
|
26
24
|
* <code>x86-64</code>.</p>
|
|
27
|
-
*
|
|
28
25
|
* <p>When you create a function, Lambda provisions an instance of the function and its supporting
|
|
29
26
|
* resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't
|
|
30
27
|
* invoke or modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code>
|
|
31
28
|
* fields in the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to
|
|
32
29
|
* invoke. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda function states</a>.</p>
|
|
33
|
-
*
|
|
34
30
|
* <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version
|
|
35
31
|
* changes when you update your function's code and configuration. A published version is a snapshot of your function
|
|
36
32
|
* code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be
|
|
37
33
|
* changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of
|
|
38
34
|
* your function from its initial configuration.</p>
|
|
39
|
-
*
|
|
40
35
|
* <p>The other parameters let you configure version-specific and function-level settings. You can modify
|
|
41
36
|
* version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply
|
|
42
37
|
* to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>)
|
|
43
38
|
* and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p>
|
|
44
|
-
*
|
|
45
39
|
* <p>You can use code signing if your deployment package is a .zip file archive. To enable code signing for this
|
|
46
40
|
* function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with
|
|
47
41
|
* <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from
|
|
48
42
|
* a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted
|
|
49
43
|
* publishers for this function.</p>
|
|
50
|
-
*
|
|
51
44
|
* <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>
|
|
52
|
-
*
|
|
53
45
|
* <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
|
|
54
46
|
* in other Amazon Web Services, create an event source mapping (<a>CreateEventSourceMapping</a>),
|
|
55
47
|
* 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
|
|
@@ -10,7 +10,6 @@ export interface DeleteFunctionCommandOutput extends __MetadataBearer {
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter.
|
|
12
12
|
* Otherwise, all versions and aliases are deleted.</p>
|
|
13
|
-
*
|
|
14
13
|
* <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
|
|
15
14
|
* directly, delete the trigger in the service where you originally configured it.</p>
|
|
16
15
|
* @example
|
|
@@ -10,32 +10,26 @@ export interface InvokeCommandOutput extends InvocationResponse, __MetadataBeare
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
|
|
12
12
|
* asynchronously. To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>.</p>
|
|
13
|
-
*
|
|
14
13
|
* <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>,
|
|
15
14
|
* details about the function response, including errors, are included in the response body and headers. For either
|
|
16
15
|
* 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>
|
|
17
|
-
*
|
|
18
16
|
* <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,
|
|
19
17
|
* client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an
|
|
20
18
|
* 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
|
|
21
19
|
* Lambda</a>.</p>
|
|
22
|
-
*
|
|
23
20
|
* <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>,
|
|
24
21
|
* Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity
|
|
25
22
|
* to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple
|
|
26
23
|
* 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>
|
|
27
|
-
*
|
|
28
24
|
* <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
|
|
29
25
|
* 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
|
|
30
26
|
* configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the
|
|
31
27
|
* function would cause you to exceed a concurrency limit at either the account level
|
|
32
28
|
* (<code>ConcurrentInvocationLimitExceeded</code>) or function level
|
|
33
29
|
* (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>
|
|
34
|
-
*
|
|
35
30
|
* <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits
|
|
36
31
|
* for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long
|
|
37
32
|
* connections with timeout or keep-alive settings.</p>
|
|
38
|
-
*
|
|
39
33
|
* <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
|
|
40
34
|
* 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
|
|
41
35
|
* access to other accounts</a>.</p>
|
|
@@ -11,11 +11,9 @@ export interface PublishVersionCommandOutput extends FunctionConfiguration, __Me
|
|
|
11
11
|
* <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the
|
|
12
12
|
* current code and configuration of a function. Use versions to create a snapshot of your function code and
|
|
13
13
|
* configuration that doesn't change.</p>
|
|
14
|
-
*
|
|
15
14
|
* <p>Lambda doesn't publish a version if the function's configuration and code haven't changed since the last
|
|
16
15
|
* version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the
|
|
17
16
|
* function before publishing a version.</p>
|
|
18
|
-
*
|
|
19
17
|
* <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>
|
|
20
18
|
* @example
|
|
21
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -49,28 +49,27 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
49
49
|
* </p>
|
|
50
50
|
* </li>
|
|
51
51
|
* </ul>
|
|
52
|
-
*
|
|
53
52
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
54
53
|
* <ul>
|
|
55
54
|
* <li>
|
|
56
55
|
* <p>
|
|
57
|
-
* <code>BisectBatchOnFunctionError</code>
|
|
56
|
+
* <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p>
|
|
58
57
|
* </li>
|
|
59
58
|
* <li>
|
|
60
59
|
* <p>
|
|
61
|
-
* <code>DestinationConfig</code>
|
|
60
|
+
* <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
|
|
62
61
|
* </li>
|
|
63
62
|
* <li>
|
|
64
63
|
* <p>
|
|
65
|
-
* <code>MaximumRecordAgeInSeconds</code>
|
|
64
|
+
* <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>
|
|
66
65
|
* </li>
|
|
67
66
|
* <li>
|
|
68
67
|
* <p>
|
|
69
|
-
* <code>MaximumRetryAttempts</code>
|
|
68
|
+
* <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>
|
|
70
69
|
* </li>
|
|
71
70
|
* <li>
|
|
72
71
|
* <p>
|
|
73
|
-
* <code>ParallelizationFactor</code>
|
|
72
|
+
* <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p>
|
|
74
73
|
* </li>
|
|
75
74
|
* </ul>
|
|
76
75
|
* <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
|
|
@@ -10,16 +10,13 @@ export interface UpdateFunctionCodeCommandOutput extends FunctionConfiguration,
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Updates a Lambda function's code. If code signing is enabled for the function, the code package
|
|
12
12
|
* 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>
|
|
13
|
-
*
|
|
14
13
|
* <p>If the function's package type is <code>Image</code>, then you must specify the code package in
|
|
15
14
|
* <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>
|
|
16
|
-
*
|
|
17
15
|
* <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
|
|
18
16
|
* archive</a>. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide
|
|
19
17
|
* the function code inline using the <code>ZipFile</code> field.</p>
|
|
20
18
|
* <p>The code in the deployment package must be compatible with the target instruction set architecture of the
|
|
21
19
|
* function (<code>x86-64</code> or <code>arm64</code>).</p>
|
|
22
|
-
*
|
|
23
20
|
* <p>The function's code is locked when you publish a version. You can't modify the code of a published version,
|
|
24
21
|
* only the unpublished version.</p>
|
|
25
22
|
* <note>
|
|
@@ -9,7 +9,6 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Modify the version-specific settings of a Lambda function.</p>
|
|
12
|
-
*
|
|
13
12
|
* <p>When you update a function, Lambda provisions an instance of the function and its supporting
|
|
14
13
|
* resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify
|
|
15
14
|
* the function, but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>,
|
|
@@ -17,10 +16,8 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
|
|
|
17
16
|
* indicate when the update is complete and the function is processing events with the new configuration. For more
|
|
18
17
|
* information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda
|
|
19
18
|
* function states</a>.</p>
|
|
20
|
-
*
|
|
21
19
|
* <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
|
|
22
20
|
* modify the configuration of a published version, only the unpublished version.</p>
|
|
23
|
-
*
|
|
24
21
|
* <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
|
|
25
22
|
* to an Amazon Web Services account or Amazon Web Service, use <a>AddPermission</a>.</p>
|
|
26
23
|
* @example
|
|
@@ -517,6 +517,15 @@ export interface FilterCriteria {
|
|
|
517
517
|
export declare enum FunctionResponseType {
|
|
518
518
|
ReportBatchItemFailures = "ReportBatchItemFailures"
|
|
519
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* <p>(Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.</p>
|
|
522
|
+
*/
|
|
523
|
+
export interface ScalingConfig {
|
|
524
|
+
/**
|
|
525
|
+
* <p>Limits the number of concurrent instances that the Amazon SQS event source can invoke.</p>
|
|
526
|
+
*/
|
|
527
|
+
MaximumConcurrency?: number;
|
|
528
|
+
}
|
|
520
529
|
export declare enum EndPointType {
|
|
521
530
|
KAFKA_BOOTSTRAP_SERVERS = "KAFKA_BOOTSTRAP_SERVERS"
|
|
522
531
|
}
|
|
@@ -560,41 +569,41 @@ export interface SourceAccessConfiguration {
|
|
|
560
569
|
* <ul>
|
|
561
570
|
* <li>
|
|
562
571
|
* <p>
|
|
563
|
-
* <code>BASIC_AUTH</code>
|
|
572
|
+
* <code>BASIC_AUTH</code> – (Amazon MQ) The Secrets Manager secret that stores your broker credentials.</p>
|
|
564
573
|
* </li>
|
|
565
574
|
* <li>
|
|
566
575
|
* <p>
|
|
567
|
-
* <code>BASIC_AUTH</code>
|
|
576
|
+
* <code>BASIC_AUTH</code> – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.</p>
|
|
568
577
|
* </li>
|
|
569
578
|
* <li>
|
|
570
579
|
* <p>
|
|
571
|
-
* <code>VPC_SUBNET</code>
|
|
580
|
+
* <code>VPC_SUBNET</code> – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.</p>
|
|
572
581
|
* </li>
|
|
573
582
|
* <li>
|
|
574
583
|
* <p>
|
|
575
|
-
* <code>VPC_SECURITY_GROUP</code>
|
|
584
|
+
* <code>VPC_SECURITY_GROUP</code> – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.</p>
|
|
576
585
|
* </li>
|
|
577
586
|
* <li>
|
|
578
587
|
* <p>
|
|
579
|
-
* <code>SASL_SCRAM_256_AUTH</code>
|
|
588
|
+
* <code>SASL_SCRAM_256_AUTH</code> – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.</p>
|
|
580
589
|
* </li>
|
|
581
590
|
* <li>
|
|
582
591
|
* <p>
|
|
583
|
-
* <code>SASL_SCRAM_512_AUTH</code>
|
|
592
|
+
* <code>SASL_SCRAM_512_AUTH</code> – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.</p>
|
|
584
593
|
* </li>
|
|
585
594
|
* <li>
|
|
586
595
|
* <p>
|
|
587
|
-
* <code>VIRTUAL_HOST</code>
|
|
596
|
+
* <code>VIRTUAL_HOST</code> –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.
|
|
588
597
|
* This property cannot be specified in an UpdateEventSourceMapping API call.</p>
|
|
589
598
|
* </li>
|
|
590
599
|
* <li>
|
|
591
600
|
* <p>
|
|
592
|
-
* <code>CLIENT_CERTIFICATE_TLS_AUTH</code>
|
|
601
|
+
* <code>CLIENT_CERTIFICATE_TLS_AUTH</code> – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM),
|
|
593
602
|
* private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.</p>
|
|
594
603
|
* </li>
|
|
595
604
|
* <li>
|
|
596
605
|
* <p>
|
|
597
|
-
* <code>SERVER_ROOT_CA_CERTIFICATE</code>
|
|
606
|
+
* <code>SERVER_ROOT_CA_CERTIFICATE</code> – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
|
|
598
607
|
* </p>
|
|
599
608
|
* </li>
|
|
600
609
|
* </ul>
|
|
@@ -616,23 +625,23 @@ export interface CreateEventSourceMappingRequest {
|
|
|
616
625
|
* <ul>
|
|
617
626
|
* <li>
|
|
618
627
|
* <p>
|
|
619
|
-
* <b>Amazon Kinesis</b>
|
|
628
|
+
* <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p>
|
|
620
629
|
* </li>
|
|
621
630
|
* <li>
|
|
622
631
|
* <p>
|
|
623
|
-
* <b>Amazon DynamoDB Streams</b>
|
|
632
|
+
* <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p>
|
|
624
633
|
* </li>
|
|
625
634
|
* <li>
|
|
626
635
|
* <p>
|
|
627
|
-
* <b>Amazon Simple Queue Service</b>
|
|
636
|
+
* <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p>
|
|
628
637
|
* </li>
|
|
629
638
|
* <li>
|
|
630
639
|
* <p>
|
|
631
|
-
* <b>Amazon Managed Streaming for Apache Kafka</b>
|
|
640
|
+
* <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster.</p>
|
|
632
641
|
* </li>
|
|
633
642
|
* <li>
|
|
634
643
|
* <p>
|
|
635
|
-
* <b>Amazon MQ</b>
|
|
644
|
+
* <b>Amazon MQ</b> – The ARN of the broker.</p>
|
|
636
645
|
* </li>
|
|
637
646
|
* </ul>
|
|
638
647
|
*/
|
|
@@ -645,19 +654,19 @@ export interface CreateEventSourceMappingRequest {
|
|
|
645
654
|
* <ul>
|
|
646
655
|
* <li>
|
|
647
656
|
* <p>
|
|
648
|
-
* <b>Function name</b>
|
|
657
|
+
* <b>Function name</b> – <code>MyFunction</code>.</p>
|
|
649
658
|
* </li>
|
|
650
659
|
* <li>
|
|
651
660
|
* <p>
|
|
652
|
-
* <b>Function ARN</b>
|
|
661
|
+
* <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
|
653
662
|
* </li>
|
|
654
663
|
* <li>
|
|
655
664
|
* <p>
|
|
656
|
-
* <b>Version or Alias ARN</b>
|
|
665
|
+
* <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
|
|
657
666
|
* </li>
|
|
658
667
|
* <li>
|
|
659
668
|
* <p>
|
|
660
|
-
* <b>Partial ARN</b>
|
|
669
|
+
* <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p>
|
|
661
670
|
* </li>
|
|
662
671
|
* </ul>
|
|
663
672
|
* <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64
|
|
@@ -675,27 +684,27 @@ export interface CreateEventSourceMappingRequest {
|
|
|
675
684
|
* <ul>
|
|
676
685
|
* <li>
|
|
677
686
|
* <p>
|
|
678
|
-
* <b>Amazon Kinesis</b>
|
|
687
|
+
* <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p>
|
|
679
688
|
* </li>
|
|
680
689
|
* <li>
|
|
681
690
|
* <p>
|
|
682
|
-
* <b>Amazon DynamoDB Streams</b>
|
|
691
|
+
* <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p>
|
|
683
692
|
* </li>
|
|
684
693
|
* <li>
|
|
685
694
|
* <p>
|
|
686
|
-
* <b>Amazon Simple Queue Service</b>
|
|
695
|
+
* <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p>
|
|
687
696
|
* </li>
|
|
688
697
|
* <li>
|
|
689
698
|
* <p>
|
|
690
|
-
* <b>Amazon Managed Streaming for Apache Kafka</b>
|
|
699
|
+
* <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p>
|
|
691
700
|
* </li>
|
|
692
701
|
* <li>
|
|
693
702
|
* <p>
|
|
694
|
-
* <b>Self-managed Apache Kafka</b>
|
|
703
|
+
* <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p>
|
|
695
704
|
* </li>
|
|
696
705
|
* <li>
|
|
697
706
|
* <p>
|
|
698
|
-
* <b>Amazon MQ (ActiveMQ and RabbitMQ)</b>
|
|
707
|
+
* <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p>
|
|
699
708
|
* </li>
|
|
700
709
|
* </ul>
|
|
701
710
|
*/
|
|
@@ -777,6 +786,10 @@ export interface CreateEventSourceMappingRequest {
|
|
|
777
786
|
* <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
|
|
778
787
|
*/
|
|
779
788
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
789
|
+
/**
|
|
790
|
+
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
791
|
+
*/
|
|
792
|
+
ScalingConfig?: ScalingConfig;
|
|
780
793
|
}
|
|
781
794
|
/**
|
|
782
795
|
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <a>CreateEventSourceMapping</a>.</p>
|
|
@@ -896,6 +909,10 @@ export interface EventSourceMappingConfiguration {
|
|
|
896
909
|
* <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
|
|
897
910
|
*/
|
|
898
911
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
912
|
+
/**
|
|
913
|
+
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
914
|
+
*/
|
|
915
|
+
ScalingConfig?: ScalingConfig;
|
|
899
916
|
}
|
|
900
917
|
/**
|
|
901
918
|
* <p>The specified code signing configuration does not exist.</p>
|
|
@@ -1070,9 +1087,10 @@ export declare enum SnapStartApplyOn {
|
|
|
1070
1087
|
PublishedVersions = "PublishedVersions"
|
|
1071
1088
|
}
|
|
1072
1089
|
/**
|
|
1073
|
-
* <p>The function's SnapStart setting. Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a
|
|
1074
|
-
* snapshot of the initialized execution environment when you publish a function version
|
|
1075
|
-
*
|
|
1090
|
+
* <p>The function's Lambda SnapStart setting. Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a
|
|
1091
|
+
* snapshot of the initialized execution environment when you publish a function version.</p>
|
|
1092
|
+
* <p>SnapStart is supported with the <code>java11</code> runtime. For more information, see
|
|
1093
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving startup performance with Lambda
|
|
1076
1094
|
* SnapStart</a>.</p>
|
|
1077
1095
|
*/
|
|
1078
1096
|
export interface SnapStart {
|
|
@@ -1562,7 +1580,7 @@ export interface FunctionConfiguration {
|
|
|
1562
1580
|
EphemeralStorage?: EphemeralStorage;
|
|
1563
1581
|
/**
|
|
1564
1582
|
* <p>Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a snapshot of the initialized execution
|
|
1565
|
-
* environment when you publish a function version. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">
|
|
1583
|
+
* environment when you publish a function version. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving startup performance with Lambda SnapStart</a>.</p>
|
|
1566
1584
|
*/
|
|
1567
1585
|
SnapStart?: SnapStartResponse;
|
|
1568
1586
|
}
|
|
@@ -3049,23 +3067,23 @@ export interface ListEventSourceMappingsRequest {
|
|
|
3049
3067
|
* <ul>
|
|
3050
3068
|
* <li>
|
|
3051
3069
|
* <p>
|
|
3052
|
-
* <b>Amazon Kinesis</b>
|
|
3070
|
+
* <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p>
|
|
3053
3071
|
* </li>
|
|
3054
3072
|
* <li>
|
|
3055
3073
|
* <p>
|
|
3056
|
-
* <b>Amazon DynamoDB Streams</b>
|
|
3074
|
+
* <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p>
|
|
3057
3075
|
* </li>
|
|
3058
3076
|
* <li>
|
|
3059
3077
|
* <p>
|
|
3060
|
-
* <b>Amazon Simple Queue Service</b>
|
|
3078
|
+
* <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p>
|
|
3061
3079
|
* </li>
|
|
3062
3080
|
* <li>
|
|
3063
3081
|
* <p>
|
|
3064
|
-
* <b>Amazon Managed Streaming for Apache Kafka</b>
|
|
3082
|
+
* <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster.</p>
|
|
3065
3083
|
* </li>
|
|
3066
3084
|
* <li>
|
|
3067
3085
|
* <p>
|
|
3068
|
-
* <b>Amazon MQ</b>
|
|
3086
|
+
* <b>Amazon MQ</b> – The ARN of the broker.</p>
|
|
3069
3087
|
* </li>
|
|
3070
3088
|
* </ul>
|
|
3071
3089
|
*/
|
|
@@ -3078,19 +3096,19 @@ export interface ListEventSourceMappingsRequest {
|
|
|
3078
3096
|
* <ul>
|
|
3079
3097
|
* <li>
|
|
3080
3098
|
* <p>
|
|
3081
|
-
* <b>Function name</b>
|
|
3099
|
+
* <b>Function name</b> – <code>MyFunction</code>.</p>
|
|
3082
3100
|
* </li>
|
|
3083
3101
|
* <li>
|
|
3084
3102
|
* <p>
|
|
3085
|
-
* <b>Function ARN</b>
|
|
3103
|
+
* <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
|
3086
3104
|
* </li>
|
|
3087
3105
|
* <li>
|
|
3088
3106
|
* <p>
|
|
3089
|
-
* <b>Version or Alias ARN</b>
|
|
3107
|
+
* <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
|
|
3090
3108
|
* </li>
|
|
3091
3109
|
* <li>
|
|
3092
3110
|
* <p>
|
|
3093
|
-
* <b>Partial ARN</b>
|
|
3111
|
+
* <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p>
|
|
3094
3112
|
* </li>
|
|
3095
3113
|
* </ul>
|
|
3096
3114
|
* <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64
|
|
@@ -4059,19 +4077,19 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
4059
4077
|
* <ul>
|
|
4060
4078
|
* <li>
|
|
4061
4079
|
* <p>
|
|
4062
|
-
* <b>Function name</b>
|
|
4080
|
+
* <b>Function name</b> – <code>MyFunction</code>.</p>
|
|
4063
4081
|
* </li>
|
|
4064
4082
|
* <li>
|
|
4065
4083
|
* <p>
|
|
4066
|
-
* <b>Function ARN</b>
|
|
4084
|
+
* <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
|
4067
4085
|
* </li>
|
|
4068
4086
|
* <li>
|
|
4069
4087
|
* <p>
|
|
4070
|
-
* <b>Version or Alias ARN</b>
|
|
4088
|
+
* <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
|
|
4071
4089
|
* </li>
|
|
4072
4090
|
* <li>
|
|
4073
4091
|
* <p>
|
|
4074
|
-
* <b>Partial ARN</b>
|
|
4092
|
+
* <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p>
|
|
4075
4093
|
* </li>
|
|
4076
4094
|
* </ul>
|
|
4077
4095
|
* <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64
|
|
@@ -4089,27 +4107,27 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
4089
4107
|
* <ul>
|
|
4090
4108
|
* <li>
|
|
4091
4109
|
* <p>
|
|
4092
|
-
* <b>Amazon Kinesis</b>
|
|
4110
|
+
* <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p>
|
|
4093
4111
|
* </li>
|
|
4094
4112
|
* <li>
|
|
4095
4113
|
* <p>
|
|
4096
|
-
* <b>Amazon DynamoDB Streams</b>
|
|
4114
|
+
* <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p>
|
|
4097
4115
|
* </li>
|
|
4098
4116
|
* <li>
|
|
4099
4117
|
* <p>
|
|
4100
|
-
* <b>Amazon Simple Queue Service</b>
|
|
4118
|
+
* <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p>
|
|
4101
4119
|
* </li>
|
|
4102
4120
|
* <li>
|
|
4103
4121
|
* <p>
|
|
4104
|
-
* <b>Amazon Managed Streaming for Apache Kafka</b>
|
|
4122
|
+
* <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p>
|
|
4105
4123
|
* </li>
|
|
4106
4124
|
* <li>
|
|
4107
4125
|
* <p>
|
|
4108
|
-
* <b>Self-managed Apache Kafka</b>
|
|
4126
|
+
* <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p>
|
|
4109
4127
|
* </li>
|
|
4110
4128
|
* <li>
|
|
4111
4129
|
* <p>
|
|
4112
|
-
* <b>Amazon MQ (ActiveMQ and RabbitMQ)</b>
|
|
4130
|
+
* <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p>
|
|
4113
4131
|
* </li>
|
|
4114
4132
|
* </ul>
|
|
4115
4133
|
*/
|
|
@@ -4160,6 +4178,10 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
4160
4178
|
* <p>(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
|
|
4161
4179
|
*/
|
|
4162
4180
|
FunctionResponseTypes?: (FunctionResponseType | string)[];
|
|
4181
|
+
/**
|
|
4182
|
+
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
4183
|
+
*/
|
|
4184
|
+
ScalingConfig?: ScalingConfig;
|
|
4163
4185
|
}
|
|
4164
4186
|
export interface UpdateFunctionCodeRequest {
|
|
4165
4187
|
/**
|
|
@@ -4549,6 +4571,10 @@ export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
|
|
|
4549
4571
|
* @internal
|
|
4550
4572
|
*/
|
|
4551
4573
|
export declare const FilterCriteriaFilterSensitiveLog: (obj: FilterCriteria) => any;
|
|
4574
|
+
/**
|
|
4575
|
+
* @internal
|
|
4576
|
+
*/
|
|
4577
|
+
export declare const ScalingConfigFilterSensitiveLog: (obj: ScalingConfig) => any;
|
|
4552
4578
|
/**
|
|
4553
4579
|
* @internal
|
|
4554
4580
|
*/
|
|
@@ -181,6 +181,9 @@ export interface FilterCriteria {
|
|
|
181
181
|
export declare enum FunctionResponseType {
|
|
182
182
|
ReportBatchItemFailures = "ReportBatchItemFailures",
|
|
183
183
|
}
|
|
184
|
+
export interface ScalingConfig {
|
|
185
|
+
MaximumConcurrency?: number;
|
|
186
|
+
}
|
|
184
187
|
export declare enum EndPointType {
|
|
185
188
|
KAFKA_BOOTSTRAP_SERVERS = "KAFKA_BOOTSTRAP_SERVERS",
|
|
186
189
|
}
|
|
@@ -231,6 +234,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
231
234
|
FunctionResponseTypes?: (FunctionResponseType | string)[];
|
|
232
235
|
AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
|
|
233
236
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
237
|
+
ScalingConfig?: ScalingConfig;
|
|
234
238
|
}
|
|
235
239
|
export interface EventSourceMappingConfiguration {
|
|
236
240
|
UUID?: string;
|
|
@@ -258,6 +262,7 @@ export interface EventSourceMappingConfiguration {
|
|
|
258
262
|
FunctionResponseTypes?: (FunctionResponseType | string)[];
|
|
259
263
|
AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
|
|
260
264
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
265
|
+
ScalingConfig?: ScalingConfig;
|
|
261
266
|
}
|
|
262
267
|
export declare class CodeSigningConfigNotFoundException extends __BaseException {
|
|
263
268
|
readonly name: "CodeSigningConfigNotFoundException";
|
|
@@ -1254,6 +1259,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
1254
1259
|
SourceAccessConfigurations?: SourceAccessConfiguration[];
|
|
1255
1260
|
TumblingWindowInSeconds?: number;
|
|
1256
1261
|
FunctionResponseTypes?: (FunctionResponseType | string)[];
|
|
1262
|
+
ScalingConfig?: ScalingConfig;
|
|
1257
1263
|
}
|
|
1258
1264
|
export interface UpdateFunctionCodeRequest {
|
|
1259
1265
|
FunctionName: string | undefined;
|
|
@@ -1358,6 +1364,9 @@ export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
|
|
|
1358
1364
|
export declare const FilterCriteriaFilterSensitiveLog: (
|
|
1359
1365
|
obj: FilterCriteria
|
|
1360
1366
|
) => any;
|
|
1367
|
+
export declare const ScalingConfigFilterSensitiveLog: (
|
|
1368
|
+
obj: ScalingConfig
|
|
1369
|
+
) => any;
|
|
1361
1370
|
export declare const SelfManagedEventSourceFilterSensitiveLog: (
|
|
1362
1371
|
obj: SelfManagedEventSource
|
|
1363
1372
|
) => any;
|
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.
|
|
4
|
+
"version": "3.250.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",
|