@aws-sdk/client-lambda 3.1160.0 → 3.1162.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 +1 -1
- package/dist-cjs/index.js +9 -3
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +3 -2
- package/dist-types/Lambda.d.ts +1 -1
- package/dist-types/LambdaClient.d.ts +1 -1
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +2 -0
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -0
- package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +1 -1
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -0
- package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
- package/dist-types/commands/PublishVersionCommand.d.ts +1 -1
- package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +13 -8
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls.
|
|
9
|
+
<fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls. In the Lambda API, the Amazon Web Services SDKs, and the CLI, Event Functions are still called <i>functions</i>, for example in <code>CreateFunction</code> and <code>Invoke</code>. You don't need to change any existing code.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods for Lambda Event Functions, including details about the parameters in each API request and response.</p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
12
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const commonParams = {
|
|
|
70
70
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
var version = "3.
|
|
73
|
+
var version = "3.1161.0";
|
|
74
74
|
var packageInfo = {
|
|
75
75
|
version: version};
|
|
76
76
|
|
|
@@ -1141,6 +1141,7 @@ const _CISD = "ChainedInvokeStartedDetails";
|
|
|
1141
1141
|
const _CISDh = "ChainedInvokeStoppedDetails";
|
|
1142
1142
|
const _CISDha = "ChainedInvokeSucceededDetails";
|
|
1143
1143
|
const _CITOD = "ChainedInvokeTimedOutDetails";
|
|
1144
|
+
const _CM = "ConsumptionMode";
|
|
1144
1145
|
const _CN = "CollectionName";
|
|
1145
1146
|
const _CO = "CallbackOptions";
|
|
1146
1147
|
const _COo = "ContextOptions";
|
|
@@ -3309,8 +3310,8 @@ var SelfManagedEventSource$ = [3, n0, _SMES,
|
|
|
3309
3310
|
];
|
|
3310
3311
|
var SelfManagedKafkaEventSourceConfig$ = [3, n0, _SMKESC,
|
|
3311
3312
|
0,
|
|
3312
|
-
[_CGI, _SRC],
|
|
3313
|
-
[0, () => KafkaSchemaRegistryConfig
|
|
3313
|
+
[_CGI, _SRC, _CM],
|
|
3314
|
+
[0, () => KafkaSchemaRegistryConfig$, 0]
|
|
3314
3315
|
];
|
|
3315
3316
|
var SendDurableExecutionCallbackFailureRequest$ = [3, n0, _SDECFR,
|
|
3316
3317
|
0,
|
|
@@ -4862,6 +4863,10 @@ const EventSourceMappingMetric = {
|
|
|
4862
4863
|
const EndPointType = {
|
|
4863
4864
|
KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
|
|
4864
4865
|
};
|
|
4866
|
+
const KafkaEventSourceMappingConsumptionMode = {
|
|
4867
|
+
Queue: "Queue",
|
|
4868
|
+
Stream: "Stream",
|
|
4869
|
+
};
|
|
4865
4870
|
const SourceAccessType = {
|
|
4866
4871
|
BASIC_AUTH: "BASIC_AUTH",
|
|
4867
4872
|
CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
|
|
@@ -5424,6 +5429,7 @@ exports.KMSInvalidStateException = KMSInvalidStateException;
|
|
|
5424
5429
|
exports.KMSInvalidStateException$ = KMSInvalidStateException$;
|
|
5425
5430
|
exports.KMSNotFoundException = KMSNotFoundException;
|
|
5426
5431
|
exports.KMSNotFoundException$ = KMSNotFoundException$;
|
|
5432
|
+
exports.KafkaEventSourceMappingConsumptionMode = KafkaEventSourceMappingConsumptionMode;
|
|
5427
5433
|
exports.KafkaSchemaRegistryAccessConfig$ = KafkaSchemaRegistryAccessConfig$;
|
|
5428
5434
|
exports.KafkaSchemaRegistryAuthType = KafkaSchemaRegistryAuthType;
|
|
5429
5435
|
exports.KafkaSchemaRegistryConfig$ = KafkaSchemaRegistryConfig$;
|
package/dist-es/models/enums.js
CHANGED
|
@@ -150,6 +150,10 @@ export const EventSourceMappingMetric = {
|
|
|
150
150
|
export const EndPointType = {
|
|
151
151
|
KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
|
|
152
152
|
};
|
|
153
|
+
export const KafkaEventSourceMappingConsumptionMode = {
|
|
154
|
+
Queue: "Queue",
|
|
155
|
+
Stream: "Stream",
|
|
156
|
+
};
|
|
153
157
|
export const SourceAccessType = {
|
|
154
158
|
BASIC_AUTH: "BASIC_AUTH",
|
|
155
159
|
CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
|
|
@@ -78,6 +78,7 @@ const _CISD = "ChainedInvokeStartedDetails";
|
|
|
78
78
|
const _CISDh = "ChainedInvokeStoppedDetails";
|
|
79
79
|
const _CISDha = "ChainedInvokeSucceededDetails";
|
|
80
80
|
const _CITOD = "ChainedInvokeTimedOutDetails";
|
|
81
|
+
const _CM = "ConsumptionMode";
|
|
81
82
|
const _CN = "CollectionName";
|
|
82
83
|
const _CO = "CallbackOptions";
|
|
83
84
|
const _COo = "ContextOptions";
|
|
@@ -2249,8 +2250,8 @@ export var SelfManagedEventSource$ = [3, n0, _SMES,
|
|
|
2249
2250
|
];
|
|
2250
2251
|
export var SelfManagedKafkaEventSourceConfig$ = [3, n0, _SMKESC,
|
|
2251
2252
|
0,
|
|
2252
|
-
[_CGI, _SRC],
|
|
2253
|
-
[0, () => KafkaSchemaRegistryConfig
|
|
2253
|
+
[_CGI, _SRC, _CM],
|
|
2254
|
+
[0, () => KafkaSchemaRegistryConfig$, 0]
|
|
2254
2255
|
];
|
|
2255
2256
|
export var SendDurableExecutionCallbackFailureRequest$ = [3, n0, _SDECFR,
|
|
2256
2257
|
0,
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -780,7 +780,7 @@ export interface Lambda {
|
|
|
780
780
|
waitUntilPublishedVersionActive(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
|
|
781
781
|
}
|
|
782
782
|
/**
|
|
783
|
-
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls.
|
|
783
|
+
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls. In the Lambda API, the Amazon Web Services SDKs, and the CLI, Event Functions are still called <i>functions</i>, for example in <code>CreateFunction</code> and <code>Invoke</code>. You don't need to change any existing code.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods for Lambda Event Functions, including details about the parameters in each API request and response.</p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
|
|
784
784
|
* @public
|
|
785
785
|
*/
|
|
786
786
|
export declare class Lambda extends LambdaClient implements Lambda {
|
|
@@ -262,7 +262,7 @@ export type LambdaClientResolvedConfigType = __SmithyResolvedConfiguration<__Htt
|
|
|
262
262
|
export interface LambdaClientResolvedConfig extends LambdaClientResolvedConfigType {
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls.
|
|
265
|
+
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls. In the Lambda API, the Amazon Web Services SDKs, and the CLI, Event Functions are still called <i>functions</i>, for example in <code>CreateFunction</code> and <code>Invoke</code>. You don't need to change any existing code.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods for Lambda Event Functions, including details about the parameters in each API request and response.</p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
|
|
266
266
|
* @public
|
|
267
267
|
*/
|
|
268
268
|
export declare class LambdaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaClientResolvedConfig> {
|
|
@@ -133,6 +133,7 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
133
133
|
* },
|
|
134
134
|
* ],
|
|
135
135
|
* },
|
|
136
|
+
* ConsumptionMode: "Stream" || "Queue",
|
|
136
137
|
* },
|
|
137
138
|
* DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
138
139
|
* DatabaseName: "STRING_VALUE",
|
|
@@ -252,6 +253,7 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
252
253
|
* // },
|
|
253
254
|
* // ],
|
|
254
255
|
* // },
|
|
256
|
+
* // ConsumptionMode: "Stream" || "Queue",
|
|
255
257
|
* // },
|
|
256
258
|
* // DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
257
259
|
* // DatabaseName: "STRING_VALUE",
|
|
@@ -143,6 +143,7 @@ declare const DeleteEventSourceMappingCommand_base: {
|
|
|
143
143
|
* // },
|
|
144
144
|
* // ],
|
|
145
145
|
* // },
|
|
146
|
+
* // ConsumptionMode: "Stream" || "Queue",
|
|
146
147
|
* // },
|
|
147
148
|
* // DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
148
149
|
* // DatabaseName: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const DeleteFunctionConcurrencyCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Removes a concurrent execution limit from a
|
|
27
|
+
* <p>Removes a concurrent execution limit from a Lambda Event Function.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -143,6 +143,7 @@ declare const GetEventSourceMappingCommand_base: {
|
|
|
143
143
|
* // },
|
|
144
144
|
* // ],
|
|
145
145
|
* // },
|
|
146
|
+
* // ConsumptionMode: "Stream" || "Queue",
|
|
146
147
|
* // },
|
|
147
148
|
* // DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
148
149
|
* // DatabaseName: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const GetFunctionCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Returns information about
|
|
27
|
+
* <p>Returns information about a Lambda Event Function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -149,6 +149,7 @@ declare const ListEventSourceMappingsCommand_base: {
|
|
|
149
149
|
* // },
|
|
150
150
|
* // ],
|
|
151
151
|
* // },
|
|
152
|
+
* // ConsumptionMode: "Stream" || "Queue",
|
|
152
153
|
* // },
|
|
153
154
|
* // DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
154
155
|
* // DatabaseName: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const ListFunctionEventInvokeConfigsCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Retrieves a list of configurations for asynchronous invocation for a
|
|
27
|
+
* <p>Retrieves a list of configurations for asynchronous invocation for a Lambda Event Function. To retrieve more configurations, use the <code>Marker</code> parameter.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ declare const ListVersionsByFunctionCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">versions</a
|
|
27
|
+
* <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">versions</a> of a Lambda Event Function, with the version-specific configuration of each. Lambda returns up to 50 versions per call.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ declare const PublishVersionCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the current code and configuration of a
|
|
27
|
+
* <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the current code and configuration of a Lambda Event Function. Use versions to create a snapshot of your function code and configuration that doesn't change.</p> <p>Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the function before publishing a version.</p> <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ declare const PutFunctionConcurrencyCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Sets the maximum number of simultaneous executions for a
|
|
27
|
+
* <p>Sets the maximum number of simultaneous executions for a Lambda Event Function, and reserves capacity for that concurrency level.</p> <p>Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use <a>GetFunction</a> to see the current setting for a function.</p> <p>Use <a>GetAccountSettings</a> to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html">Lambda function scaling</a>.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ declare const PutFunctionRecursionConfigCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Sets
|
|
27
|
+
* <p>Sets the <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html">recursive loop detection</a> configuration for a Lambda Event Function.</p> <p>When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.</p> <p>Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to <code>Terminate</code>, it stops your function being invoked and notifies you.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -115,6 +115,7 @@ declare const UpdateEventSourceMappingCommand_base: {
|
|
|
115
115
|
* },
|
|
116
116
|
* ],
|
|
117
117
|
* },
|
|
118
|
+
* ConsumptionMode: "Stream" || "Queue",
|
|
118
119
|
* },
|
|
119
120
|
* DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
120
121
|
* DatabaseName: "STRING_VALUE",
|
|
@@ -234,6 +235,7 @@ declare const UpdateEventSourceMappingCommand_base: {
|
|
|
234
235
|
* // },
|
|
235
236
|
* // ],
|
|
236
237
|
* // },
|
|
238
|
+
* // ConsumptionMode: "Stream" || "Queue",
|
|
237
239
|
* // },
|
|
238
240
|
* // DocumentDBEventSourceConfig: { // DocumentDBEventSourceConfig
|
|
239
241
|
* // DatabaseName: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const UpdateFunctionUrlConfigCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Updates the configuration for a Lambda
|
|
27
|
+
* <p>Updates the configuration for a function URL of a Lambda Event Function.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls.
|
|
2
|
+
* <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>Lambda Event Functions, previously known as Lambda functions, run your code in response to events and API calls. In the Lambda API, the Amazon Web Services SDKs, and the CLI, Event Functions are still called <i>functions</i>, for example in <code>CreateFunction</code> and <code>Invoke</code>. You don't need to change any existing code.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods for Lambda Event Functions, including details about the parameters in each API request and response.</p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
@@ -348,6 +348,18 @@ export declare const EndPointType: {
|
|
|
348
348
|
* @public
|
|
349
349
|
*/
|
|
350
350
|
export type EndPointType = (typeof EndPointType)[keyof typeof EndPointType];
|
|
351
|
+
/**
|
|
352
|
+
* @public
|
|
353
|
+
* @enum
|
|
354
|
+
*/
|
|
355
|
+
export declare const KafkaEventSourceMappingConsumptionMode: {
|
|
356
|
+
readonly Queue: "Queue";
|
|
357
|
+
readonly Stream: "Stream";
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
export type KafkaEventSourceMappingConsumptionMode = (typeof KafkaEventSourceMappingConsumptionMode)[keyof typeof KafkaEventSourceMappingConsumptionMode];
|
|
351
363
|
/**
|
|
352
364
|
* @public
|
|
353
365
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
|
|
2
|
+
import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaEventSourceMappingConsumptionMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
|
|
5
5
|
* @public
|
|
@@ -1018,7 +1018,7 @@ export interface ChainedInvokeOptions {
|
|
|
1018
1018
|
*/
|
|
1019
1019
|
TenantId?: string | undefined;
|
|
1020
1020
|
/**
|
|
1021
|
-
* <p>The
|
|
1021
|
+
* <p>The X-Ray trace header to use when starting the chained invocation. This parameter is optional. If you omit this value, the child invocation inherits the parent durable execution's trace header.</p> <p>Specify this value on the <code>START</code> update for the chained invocation operation. For more information about the header format, see <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader">Tracing header</a> in the <i>X-Ray Developer Guide</i>.</p>
|
|
1022
1022
|
* @public
|
|
1023
1023
|
*/
|
|
1024
1024
|
XAmznTraceId?: string | undefined;
|
|
@@ -2327,6 +2327,11 @@ export interface SelfManagedKafkaEventSourceConfig {
|
|
|
2327
2327
|
* @public
|
|
2328
2328
|
*/
|
|
2329
2329
|
SchemaRegistryConfig?: KafkaSchemaRegistryConfig | undefined;
|
|
2330
|
+
/**
|
|
2331
|
+
* <p>The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. The default is <code>Stream</code>.</p> <ul> <li> <p> <code>Stream</code> – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. This is the default when you omit <code>ConsumptionMode</code>.</p> </li> <li> <p> <code>Queue</code> – Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partitions concurrently. Queue mode does not preserve per-partition order. Queue mode requires an Apache Kafka cluster running version 4.2 or later with share groups enabled.</p> </li> </ul> <p>You cannot change <code>ConsumptionMode</code> after you create the event source mapping. To use a different consumption mode, create a new event source mapping.</p> <p>When <code>ConsumptionMode</code> is <code>Queue</code>, the <code>StartingPosition</code>, <code>StartingPositionTimestamp</code>, and <code>MaximumBatchingWindowInSeconds</code> parameters are not supported.</p>
|
|
2332
|
+
* @public
|
|
2333
|
+
*/
|
|
2334
|
+
ConsumptionMode?: KafkaEventSourceMappingConsumptionMode | undefined;
|
|
2330
2335
|
}
|
|
2331
2336
|
/**
|
|
2332
2337
|
* <p>To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.</p>
|
|
@@ -2394,7 +2399,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
2394
2399
|
*/
|
|
2395
2400
|
ScalingConfig?: ScalingConfig | undefined;
|
|
2396
2401
|
/**
|
|
2397
|
-
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
2402
|
+
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p> <p>Not supported for Kafka event source mappings when <code>ConsumptionMode</code> is <code>Queue</code>.</p>
|
|
2398
2403
|
* @public
|
|
2399
2404
|
*/
|
|
2400
2405
|
MaximumBatchingWindowInSeconds?: number | undefined;
|
|
@@ -2404,12 +2409,12 @@ export interface CreateEventSourceMappingRequest {
|
|
|
2404
2409
|
*/
|
|
2405
2410
|
ParallelizationFactor?: number | undefined;
|
|
2406
2411
|
/**
|
|
2407
|
-
* <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
|
|
2412
|
+
* <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p> <p>Not supported for Kafka event source mappings when <code>ConsumptionMode</code> is <code>Queue</code>.</p>
|
|
2408
2413
|
* @public
|
|
2409
2414
|
*/
|
|
2410
2415
|
StartingPosition?: EventSourcePosition | undefined;
|
|
2411
2416
|
/**
|
|
2412
|
-
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
|
|
2417
|
+
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p> <p>Not supported for Kafka event source mappings when <code>ConsumptionMode</code> is <code>Queue</code>.</p>
|
|
2413
2418
|
* @public
|
|
2414
2419
|
*/
|
|
2415
2420
|
StartingPositionTimestamp?: Date | undefined;
|
|
@@ -2429,7 +2434,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
2429
2434
|
*/
|
|
2430
2435
|
BisectBatchOnFunctionError?: boolean | undefined;
|
|
2431
2436
|
/**
|
|
2432
|
-
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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>
|
|
2437
|
+
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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> <p>For Kafka <code>Stream</code> consumption mode, the default is <code>-1</code> (infinite retries; capped at 10 when an on-failure destination is configured). For Kafka <code>Queue</code> consumption mode, the default is <code>0</code>, and if no on-failure destination is configured the Kafka broker performs retries.</p>
|
|
2433
2438
|
* @public
|
|
2434
2439
|
*/
|
|
2435
2440
|
MaximumRetryAttempts?: number | undefined;
|
|
@@ -2786,7 +2791,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
2786
2791
|
*/
|
|
2787
2792
|
ScalingConfig?: ScalingConfig | undefined;
|
|
2788
2793
|
/**
|
|
2789
|
-
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
2794
|
+
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p> <p>Not supported for Kafka event source mappings when <code>ConsumptionMode</code> is <code>Queue</code>.</p>
|
|
2790
2795
|
* @public
|
|
2791
2796
|
*/
|
|
2792
2797
|
MaximumBatchingWindowInSeconds?: number | undefined;
|
|
@@ -2811,7 +2816,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
2811
2816
|
*/
|
|
2812
2817
|
BisectBatchOnFunctionError?: boolean | undefined;
|
|
2813
2818
|
/**
|
|
2814
|
-
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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>
|
|
2819
|
+
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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> <p>For Kafka <code>Stream</code> consumption mode, the default is <code>-1</code> (infinite retries; capped at 10 when an on-failure destination is configured). For Kafka <code>Queue</code> consumption mode, the default is <code>0</code>, and if no on-failure destination is configured the Kafka broker performs retries.</p>
|
|
2815
2820
|
* @public
|
|
2816
2821
|
*/
|
|
2817
2822
|
MaximumRetryAttempts?: number | undefined;
|
|
@@ -182,6 +182,12 @@ export declare const EndPointType: {
|
|
|
182
182
|
readonly KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS";
|
|
183
183
|
};
|
|
184
184
|
export type EndPointType = (typeof EndPointType)[keyof typeof EndPointType];
|
|
185
|
+
export declare const KafkaEventSourceMappingConsumptionMode: {
|
|
186
|
+
readonly Queue: "Queue";
|
|
187
|
+
readonly Stream: "Stream";
|
|
188
|
+
};
|
|
189
|
+
export type KafkaEventSourceMappingConsumptionMode =
|
|
190
|
+
(typeof KafkaEventSourceMappingConsumptionMode)[keyof typeof KafkaEventSourceMappingConsumptionMode];
|
|
185
191
|
export declare const SourceAccessType: {
|
|
186
192
|
readonly BASIC_AUTH: "BASIC_AUTH";
|
|
187
193
|
readonly CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
FunctionVersionLatestPublished,
|
|
21
21
|
InvocationType,
|
|
22
22
|
InvokeMode,
|
|
23
|
+
KafkaEventSourceMappingConsumptionMode,
|
|
23
24
|
KafkaSchemaRegistryAuthType,
|
|
24
25
|
KafkaSchemaValidationAttribute,
|
|
25
26
|
LastUpdateStatus,
|
|
@@ -613,6 +614,7 @@ export interface SelfManagedEventSource {
|
|
|
613
614
|
export interface SelfManagedKafkaEventSourceConfig {
|
|
614
615
|
ConsumerGroupId?: string | undefined;
|
|
615
616
|
SchemaRegistryConfig?: KafkaSchemaRegistryConfig | undefined;
|
|
617
|
+
ConsumptionMode?: KafkaEventSourceMappingConsumptionMode | undefined;
|
|
616
618
|
}
|
|
617
619
|
export interface SourceAccessConfiguration {
|
|
618
620
|
Type?: SourceAccessType | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1162.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.980.0",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
57
57
|
"@aws-sdk/types": "^3.975.0",
|
|
58
|
-
"@smithy/core": "^3.
|
|
58
|
+
"@smithy/core": "^3.38.0",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
60
|
-
"@smithy/node-http-handler": "^4.
|
|
60
|
+
"@smithy/node-http-handler": "^4.14.0",
|
|
61
61
|
"@smithy/types": "^4.19.0",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|