@aws-sdk/client-lambda 3.697.0 → 3.699.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,7 @@ response. </p>
24
24
  line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
25
25
  Amazon Web Services</a>. </p>
26
26
  <p>For a list of Region-specific endpoints that Lambda supports,
27
- see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
27
+ see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
28
28
  endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
29
29
  <p>When making the API calls, you will need to
30
30
  authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
package/dist-cjs/index.js CHANGED
@@ -57,6 +57,7 @@ __export(src_exports, {
57
57
  EnvironmentErrorFilterSensitiveLog: () => EnvironmentErrorFilterSensitiveLog,
58
58
  EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
59
59
  EnvironmentResponseFilterSensitiveLog: () => EnvironmentResponseFilterSensitiveLog,
60
+ EventSourceMappingMetric: () => EventSourceMappingMetric,
60
61
  EventSourcePosition: () => EventSourcePosition,
61
62
  FullDocument: () => FullDocument,
62
63
  FunctionCodeFilterSensitiveLog: () => FunctionCodeFilterSensitiveLog,
@@ -544,6 +545,9 @@ var FullDocument = {
544
545
  var FunctionResponseType = {
545
546
  ReportBatchItemFailures: "ReportBatchItemFailures"
546
547
  };
548
+ var EventSourceMappingMetric = {
549
+ EventCount: "EventCount"
550
+ };
547
551
  var EndPointType = {
548
552
  KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS"
549
553
  };
@@ -1536,7 +1540,9 @@ var se_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
1536
1540
  MaximumBatchingWindowInSeconds: [],
1537
1541
  MaximumRecordAgeInSeconds: [],
1538
1542
  MaximumRetryAttempts: [],
1543
+ MetricsConfig: (_) => (0, import_smithy_client._json)(_),
1539
1544
  ParallelizationFactor: [],
1545
+ ProvisionedPollerConfig: (_) => (0, import_smithy_client._json)(_),
1540
1546
  Queues: (_) => (0, import_smithy_client._json)(_),
1541
1547
  ScalingConfig: (_) => (0, import_smithy_client._json)(_),
1542
1548
  SelfManagedEventSource: (_) => (0, import_smithy_client._json)(_),
@@ -2368,7 +2374,9 @@ var se_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
2368
2374
  MaximumBatchingWindowInSeconds: [],
2369
2375
  MaximumRecordAgeInSeconds: [],
2370
2376
  MaximumRetryAttempts: [],
2377
+ MetricsConfig: (_) => (0, import_smithy_client._json)(_),
2371
2378
  ParallelizationFactor: [],
2379
+ ProvisionedPollerConfig: (_) => (0, import_smithy_client._json)(_),
2372
2380
  ScalingConfig: (_) => (0, import_smithy_client._json)(_),
2373
2381
  SourceAccessConfigurations: (_) => (0, import_smithy_client._json)(_),
2374
2382
  TumblingWindowInSeconds: []
@@ -2565,7 +2573,9 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
2565
2573
  MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
2566
2574
  MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
2567
2575
  MaximumRetryAttempts: import_smithy_client.expectInt32,
2576
+ MetricsConfig: import_smithy_client._json,
2568
2577
  ParallelizationFactor: import_smithy_client.expectInt32,
2578
+ ProvisionedPollerConfig: import_smithy_client._json,
2569
2579
  Queues: import_smithy_client._json,
2570
2580
  ScalingConfig: import_smithy_client._json,
2571
2581
  SelfManagedEventSource: import_smithy_client._json,
@@ -2696,7 +2706,9 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
2696
2706
  MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
2697
2707
  MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
2698
2708
  MaximumRetryAttempts: import_smithy_client.expectInt32,
2709
+ MetricsConfig: import_smithy_client._json,
2699
2710
  ParallelizationFactor: import_smithy_client.expectInt32,
2711
+ ProvisionedPollerConfig: import_smithy_client._json,
2700
2712
  Queues: import_smithy_client._json,
2701
2713
  ScalingConfig: import_smithy_client._json,
2702
2714
  SelfManagedEventSource: import_smithy_client._json,
@@ -2857,7 +2869,9 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
2857
2869
  MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
2858
2870
  MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
2859
2871
  MaximumRetryAttempts: import_smithy_client.expectInt32,
2872
+ MetricsConfig: import_smithy_client._json,
2860
2873
  ParallelizationFactor: import_smithy_client.expectInt32,
2874
+ ProvisionedPollerConfig: import_smithy_client._json,
2861
2875
  Queues: import_smithy_client._json,
2862
2876
  ScalingConfig: import_smithy_client._json,
2863
2877
  SelfManagedEventSource: import_smithy_client._json,
@@ -3622,7 +3636,9 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
3622
3636
  MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
3623
3637
  MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
3624
3638
  MaximumRetryAttempts: import_smithy_client.expectInt32,
3639
+ MetricsConfig: import_smithy_client._json,
3625
3640
  ParallelizationFactor: import_smithy_client.expectInt32,
3641
+ ProvisionedPollerConfig: import_smithy_client._json,
3626
3642
  Queues: import_smithy_client._json,
3627
3643
  ScalingConfig: import_smithy_client._json,
3628
3644
  SelfManagedEventSource: import_smithy_client._json,
@@ -4549,7 +4565,9 @@ var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name((output, context
4549
4565
  MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
4550
4566
  MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
4551
4567
  MaximumRetryAttempts: import_smithy_client.expectInt32,
4568
+ MetricsConfig: import_smithy_client._json,
4552
4569
  ParallelizationFactor: import_smithy_client.expectInt32,
4570
+ ProvisionedPollerConfig: import_smithy_client._json,
4553
4571
  Queues: import_smithy_client._json,
4554
4572
  ScalingConfig: import_smithy_client._json,
4555
4573
  SelfManagedEventSource: import_smithy_client._json,
@@ -6083,6 +6101,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6083
6101
  CodeSigningPolicy,
6084
6102
  FullDocument,
6085
6103
  FunctionResponseType,
6104
+ EventSourceMappingMetric,
6086
6105
  EndPointType,
6087
6106
  SourceAccessType,
6088
6107
  EventSourcePosition,
@@ -130,6 +130,9 @@ export const FullDocument = {
130
130
  export const FunctionResponseType = {
131
131
  ReportBatchItemFailures: "ReportBatchItemFailures",
132
132
  };
133
+ export const EventSourceMappingMetric = {
134
+ EventCount: "EventCount",
135
+ };
133
136
  export const EndPointType = {
134
137
  KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
135
138
  };
@@ -104,7 +104,9 @@ export const se_CreateEventSourceMappingCommand = async (input, context) => {
104
104
  MaximumBatchingWindowInSeconds: [],
105
105
  MaximumRecordAgeInSeconds: [],
106
106
  MaximumRetryAttempts: [],
107
+ MetricsConfig: (_) => _json(_),
107
108
  ParallelizationFactor: [],
109
+ ProvisionedPollerConfig: (_) => _json(_),
108
110
  Queues: (_) => _json(_),
109
111
  ScalingConfig: (_) => _json(_),
110
112
  SelfManagedEventSource: (_) => _json(_),
@@ -908,7 +910,9 @@ export const se_UpdateEventSourceMappingCommand = async (input, context) => {
908
910
  MaximumBatchingWindowInSeconds: [],
909
911
  MaximumRecordAgeInSeconds: [],
910
912
  MaximumRetryAttempts: [],
913
+ MetricsConfig: (_) => _json(_),
911
914
  ParallelizationFactor: [],
915
+ ProvisionedPollerConfig: (_) => _json(_),
912
916
  ScalingConfig: (_) => _json(_),
913
917
  SourceAccessConfigurations: (_) => _json(_),
914
918
  TumblingWindowInSeconds: [],
@@ -1096,7 +1100,9 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
1096
1100
  MaximumBatchingWindowInSeconds: __expectInt32,
1097
1101
  MaximumRecordAgeInSeconds: __expectInt32,
1098
1102
  MaximumRetryAttempts: __expectInt32,
1103
+ MetricsConfig: _json,
1099
1104
  ParallelizationFactor: __expectInt32,
1105
+ ProvisionedPollerConfig: _json,
1100
1106
  Queues: _json,
1101
1107
  ScalingConfig: _json,
1102
1108
  SelfManagedEventSource: _json,
@@ -1227,7 +1233,9 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
1227
1233
  MaximumBatchingWindowInSeconds: __expectInt32,
1228
1234
  MaximumRecordAgeInSeconds: __expectInt32,
1229
1235
  MaximumRetryAttempts: __expectInt32,
1236
+ MetricsConfig: _json,
1230
1237
  ParallelizationFactor: __expectInt32,
1238
+ ProvisionedPollerConfig: _json,
1231
1239
  Queues: _json,
1232
1240
  ScalingConfig: _json,
1233
1241
  SelfManagedEventSource: _json,
@@ -1388,7 +1396,9 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
1388
1396
  MaximumBatchingWindowInSeconds: __expectInt32,
1389
1397
  MaximumRecordAgeInSeconds: __expectInt32,
1390
1398
  MaximumRetryAttempts: __expectInt32,
1399
+ MetricsConfig: _json,
1391
1400
  ParallelizationFactor: __expectInt32,
1401
+ ProvisionedPollerConfig: _json,
1392
1402
  Queues: _json,
1393
1403
  ScalingConfig: _json,
1394
1404
  SelfManagedEventSource: _json,
@@ -2153,7 +2163,9 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
2153
2163
  MaximumBatchingWindowInSeconds: __expectInt32,
2154
2164
  MaximumRecordAgeInSeconds: __expectInt32,
2155
2165
  MaximumRetryAttempts: __expectInt32,
2166
+ MetricsConfig: _json,
2156
2167
  ParallelizationFactor: __expectInt32,
2168
+ ProvisionedPollerConfig: _json,
2157
2169
  Queues: _json,
2158
2170
  ScalingConfig: _json,
2159
2171
  SelfManagedEventSource: _json,
@@ -3082,7 +3094,9 @@ const de_EventSourceMappingConfiguration = (output, context) => {
3082
3094
  MaximumBatchingWindowInSeconds: __expectInt32,
3083
3095
  MaximumRecordAgeInSeconds: __expectInt32,
3084
3096
  MaximumRetryAttempts: __expectInt32,
3097
+ MetricsConfig: _json,
3085
3098
  ParallelizationFactor: __expectInt32,
3099
+ ProvisionedPollerConfig: _json,
3086
3100
  Queues: _json,
3087
3101
  ScalingConfig: _json,
3088
3102
  SelfManagedEventSource: _json,
@@ -501,7 +501,7 @@ export interface Lambda {
501
501
  * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
502
502
  * Amazon Web Services</a>. </p>
503
503
  * <p>For a list of Region-specific endpoints that Lambda supports,
504
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
504
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
505
505
  * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
506
506
  * <p>When making the API calls, you will need to
507
507
  * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
@@ -241,7 +241,7 @@ export interface LambdaClientResolvedConfig extends LambdaClientResolvedConfigTy
241
241
  * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
242
242
  * Amazon Web Services</a>. </p>
243
243
  * <p>For a list of Region-specific endpoints that Lambda supports,
244
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
244
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
245
245
  * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
246
246
  * <p>When making the API calls, you will need to
247
247
  * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
@@ -73,7 +73,7 @@ declare const CreateEventSourceMappingCommand_base: {
73
73
  * </p>
74
74
  * </li>
75
75
  * </ul>
76
- * <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
76
+ * <p>The following error handling options are available only for DynamoDB and Kinesis event sources:</p>
77
77
  * <ul>
78
78
  * <li>
79
79
  * <p>
@@ -81,10 +81,6 @@ declare const CreateEventSourceMappingCommand_base: {
81
81
  * </li>
82
82
  * <li>
83
83
  * <p>
84
- * <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
85
- * </li>
86
- * <li>
87
- * <p>
88
84
  * <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>
89
85
  * </li>
90
86
  * <li>
@@ -96,6 +92,14 @@ declare const CreateEventSourceMappingCommand_base: {
96
92
  * <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p>
97
93
  * </li>
98
94
  * </ul>
95
+ * <p>For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka), the following option is also available:</p>
96
+ * <ul>
97
+ * <li>
98
+ * <p>
99
+ * <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, or
100
+ * Amazon S3 bucket.</p>
101
+ * </li>
102
+ * </ul>
99
103
  * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
100
104
  * <ul>
101
105
  * <li>
@@ -215,6 +219,15 @@ declare const CreateEventSourceMappingCommand_base: {
215
219
  * FullDocument: "UpdateLookup" || "Default",
216
220
  * },
217
221
  * KMSKeyArn: "STRING_VALUE",
222
+ * MetricsConfig: { // EventSourceMappingMetricsConfig
223
+ * Metrics: [ // EventSourceMappingMetricList
224
+ * "EventCount",
225
+ * ],
226
+ * },
227
+ * ProvisionedPollerConfig: { // ProvisionedPollerConfig
228
+ * MinimumPollers: Number("int"),
229
+ * MaximumPollers: Number("int"),
230
+ * },
218
231
  * };
219
232
  * const command = new CreateEventSourceMappingCommand(input);
220
233
  * const response = await client.send(command);
@@ -292,6 +305,15 @@ declare const CreateEventSourceMappingCommand_base: {
292
305
  * // Message: "STRING_VALUE",
293
306
  * // },
294
307
  * // EventSourceMappingArn: "STRING_VALUE",
308
+ * // MetricsConfig: { // EventSourceMappingMetricsConfig
309
+ * // Metrics: [ // EventSourceMappingMetricList
310
+ * // "EventCount",
311
+ * // ],
312
+ * // },
313
+ * // ProvisionedPollerConfig: { // ProvisionedPollerConfig
314
+ * // MinimumPollers: Number("int"),
315
+ * // MaximumPollers: Number("int"),
316
+ * // },
295
317
  * // };
296
318
  *
297
319
  * ```
@@ -116,6 +116,15 @@ declare const DeleteEventSourceMappingCommand_base: {
116
116
  * // Message: "STRING_VALUE",
117
117
  * // },
118
118
  * // EventSourceMappingArn: "STRING_VALUE",
119
+ * // MetricsConfig: { // EventSourceMappingMetricsConfig
120
+ * // Metrics: [ // EventSourceMappingMetricList
121
+ * // "EventCount",
122
+ * // ],
123
+ * // },
124
+ * // ProvisionedPollerConfig: { // ProvisionedPollerConfig
125
+ * // MinimumPollers: Number("int"),
126
+ * // MaximumPollers: Number("int"),
127
+ * // },
119
128
  * // };
120
129
  *
121
130
  * ```
@@ -114,6 +114,15 @@ declare const GetEventSourceMappingCommand_base: {
114
114
  * // Message: "STRING_VALUE",
115
115
  * // },
116
116
  * // EventSourceMappingArn: "STRING_VALUE",
117
+ * // MetricsConfig: { // EventSourceMappingMetricsConfig
118
+ * // Metrics: [ // EventSourceMappingMetricList
119
+ * // "EventCount",
120
+ * // ],
121
+ * // },
122
+ * // ProvisionedPollerConfig: { // ProvisionedPollerConfig
123
+ * // MinimumPollers: Number("int"),
124
+ * // MaximumPollers: Number("int"),
125
+ * // },
117
126
  * // };
118
127
  *
119
128
  * ```
@@ -120,6 +120,15 @@ declare const ListEventSourceMappingsCommand_base: {
120
120
  * // Message: "STRING_VALUE",
121
121
  * // },
122
122
  * // EventSourceMappingArn: "STRING_VALUE",
123
+ * // MetricsConfig: { // EventSourceMappingMetricsConfig
124
+ * // Metrics: [ // EventSourceMappingMetricList
125
+ * // "EventCount",
126
+ * // ],
127
+ * // },
128
+ * // ProvisionedPollerConfig: { // ProvisionedPollerConfig
129
+ * // MinimumPollers: Number("int"),
130
+ * // MaximumPollers: Number("int"),
131
+ * // },
123
132
  * // },
124
133
  * // ],
125
134
  * // };
@@ -35,9 +35,12 @@ declare const PutFunctionEventInvokeConfigCommand_base: {
35
35
  * events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous
36
36
  * invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with
37
37
  * <a>UpdateFunctionConfiguration</a>.</p>
38
- * <p>To send an invocation record to a queue, topic, function, or event bus, specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">destination</a>. You can configure separate destinations for successful invocations (on-success) and events
38
+ * <p>To send an invocation record to a queue, topic, S3 bucket, function, or event bus, specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">destination</a>. You can configure separate destinations for successful invocations (on-success) and events
39
39
  * that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a
40
40
  * dead-letter queue.</p>
41
+ * <note>
42
+ * <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
43
+ * </note>
41
44
  * @example
42
45
  * Use a bare-bones client and the command you need to make an API call.
43
46
  * ```javascript
@@ -74,7 +74,7 @@ declare const UpdateEventSourceMappingCommand_base: {
74
74
  * </p>
75
75
  * </li>
76
76
  * </ul>
77
- * <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
77
+ * <p>The following error handling options are available only for DynamoDB and Kinesis event sources:</p>
78
78
  * <ul>
79
79
  * <li>
80
80
  * <p>
@@ -82,10 +82,6 @@ declare const UpdateEventSourceMappingCommand_base: {
82
82
  * </li>
83
83
  * <li>
84
84
  * <p>
85
- * <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
86
- * </li>
87
- * <li>
88
- * <p>
89
85
  * <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>
90
86
  * </li>
91
87
  * <li>
@@ -97,6 +93,14 @@ declare const UpdateEventSourceMappingCommand_base: {
97
93
  * <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p>
98
94
  * </li>
99
95
  * </ul>
96
+ * <p>For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka), the following option is also available:</p>
97
+ * <ul>
98
+ * <li>
99
+ * <p>
100
+ * <code>DestinationConfig</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, or
101
+ * Amazon S3 bucket.</p>
102
+ * </li>
103
+ * </ul>
100
104
  * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
101
105
  * <ul>
102
106
  * <li>
@@ -192,6 +196,15 @@ declare const UpdateEventSourceMappingCommand_base: {
192
196
  * FullDocument: "UpdateLookup" || "Default",
193
197
  * },
194
198
  * KMSKeyArn: "STRING_VALUE",
199
+ * MetricsConfig: { // EventSourceMappingMetricsConfig
200
+ * Metrics: [ // EventSourceMappingMetricList
201
+ * "EventCount",
202
+ * ],
203
+ * },
204
+ * ProvisionedPollerConfig: { // ProvisionedPollerConfig
205
+ * MinimumPollers: Number("int"),
206
+ * MaximumPollers: Number("int"),
207
+ * },
195
208
  * };
196
209
  * const command = new UpdateEventSourceMappingCommand(input);
197
210
  * const response = await client.send(command);
@@ -269,6 +282,15 @@ declare const UpdateEventSourceMappingCommand_base: {
269
282
  * // Message: "STRING_VALUE",
270
283
  * // },
271
284
  * // EventSourceMappingArn: "STRING_VALUE",
285
+ * // MetricsConfig: { // EventSourceMappingMetricsConfig
286
+ * // Metrics: [ // EventSourceMappingMetricList
287
+ * // "EventCount",
288
+ * // ],
289
+ * // },
290
+ * // ProvisionedPollerConfig: { // ProvisionedPollerConfig
291
+ * // MinimumPollers: Number("int"),
292
+ * // MaximumPollers: Number("int"),
293
+ * // },
272
294
  * // };
273
295
  *
274
296
  * ```
@@ -16,7 +16,7 @@
16
16
  * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
17
17
  * Amazon Web Services</a>. </p>
18
18
  * <p>For a list of Region-specific endpoints that Lambda supports,
19
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
19
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
20
20
  * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
21
21
  * <p>When making the API calls, you will need to
22
22
  * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
@@ -616,13 +616,11 @@ export interface CreateCodeSigningConfigResponse {
616
616
  export interface OnFailure {
617
617
  /**
618
618
  * <p>The Amazon Resource Name (ARN) of the destination resource.</p>
619
- * <p>To retain records of <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">asynchronous invocations</a>,
620
- * you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function,
619
+ * <p>To retain records of unsuccessful <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">asynchronous invocations</a>,
620
+ * you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function,
621
621
  * or Amazon EventBridge event bus as the destination.</p>
622
- * <p>To retain records of failed invocations from <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations">Kinesis and
623
- * DynamoDB event sources</a>, you can configure an Amazon SNS topic or
624
- * Amazon SQS queue as the destination.</p>
625
- * <p>To retain records of failed invocations from <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination">self-managed Kafka</a> or
622
+ * <p>To retain records of failed invocations from <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html">Kinesis</a>,
623
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html">DynamoDB</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination">self-managed Kafka</a> or
626
624
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination">Amazon MSK</a>,
627
625
  * you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.</p>
628
626
  * @public
@@ -631,6 +629,9 @@ export interface OnFailure {
631
629
  }
632
630
  /**
633
631
  * <p>A destination for events that were processed successfully.</p>
632
+ * <p>To retain records of successful <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">asynchronous invocations</a>,
633
+ * you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function,
634
+ * or Amazon EventBridge event bus as the destination.</p>
634
635
  * @public
635
636
  */
636
637
  export interface OnSuccess {
@@ -740,6 +741,52 @@ export declare const FunctionResponseType: {
740
741
  * @public
741
742
  */
742
743
  export type FunctionResponseType = (typeof FunctionResponseType)[keyof typeof FunctionResponseType];
744
+ /**
745
+ * @public
746
+ * @enum
747
+ */
748
+ export declare const EventSourceMappingMetric: {
749
+ readonly EventCount: "EventCount";
750
+ };
751
+ /**
752
+ * @public
753
+ */
754
+ export type EventSourceMappingMetric = (typeof EventSourceMappingMetric)[keyof typeof EventSourceMappingMetric];
755
+ /**
756
+ * <p>The metrics configuration for your event source. Use this configuration object to define which metrics you want your
757
+ * event source mapping to produce.</p>
758
+ * @public
759
+ */
760
+ export interface EventSourceMappingMetricsConfig {
761
+ /**
762
+ * <p>
763
+ * The metrics you want your event source mapping to produce. Include <code>EventCount</code> to receive event source mapping
764
+ * metrics related to the number of events processed by your event source mapping. For more information about these metrics,
765
+ * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics">
766
+ * Event source mapping metrics</a>.
767
+ * </p>
768
+ * @public
769
+ */
770
+ Metrics?: EventSourceMappingMetric[] | undefined;
771
+ }
772
+ /**
773
+ * <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode">
774
+ * Provisioned Mode</a> configuration for the event source. Use Provisioned Mode to customize the minimum and maximum number of event pollers
775
+ * for your event source. An event poller is a compute unit that provides approximately 5 MBps of throughput.</p>
776
+ * @public
777
+ */
778
+ export interface ProvisionedPollerConfig {
779
+ /**
780
+ * <p>The minimum number of event pollers this event source can scale down to.</p>
781
+ * @public
782
+ */
783
+ MinimumPollers?: number | undefined;
784
+ /**
785
+ * <p>The maximum number of event pollers this event source can scale up to.</p>
786
+ * @public
787
+ */
788
+ MaximumPollers?: number | undefined;
789
+ }
743
790
  /**
744
791
  * <p>(Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.</p>
745
792
  * @public
@@ -1099,6 +1146,17 @@ export interface CreateEventSourceMappingRequest {
1099
1146
  * @public
1100
1147
  */
1101
1148
  KMSKeyArn?: string | undefined;
1149
+ /**
1150
+ * <p>The metrics configuration for your event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics">Event source mapping metrics</a>.</p>
1151
+ * @public
1152
+ */
1153
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
1154
+ /**
1155
+ * <p>(Amazon MSK and self-managed Apache Kafka only) The Provisioned Mode configuration for the event source.
1156
+ * For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode">Provisioned Mode</a>.</p>
1157
+ * @public
1158
+ */
1159
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
1102
1160
  }
1103
1161
  /**
1104
1162
  * <p>An object that contains details about an error related to filter criteria encryption.</p>
@@ -1295,6 +1353,17 @@ export interface EventSourceMappingConfiguration {
1295
1353
  * @public
1296
1354
  */
1297
1355
  EventSourceMappingArn?: string | undefined;
1356
+ /**
1357
+ * <p>The metrics configuration for your event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics">Event source mapping metrics</a>.</p>
1358
+ * @public
1359
+ */
1360
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
1361
+ /**
1362
+ * <p>(Amazon MSK and self-managed Apache Kafka only) The Provisioned Mode configuration for the event source.
1363
+ * For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode">Provisioned Mode</a>.</p>
1364
+ * @public
1365
+ */
1366
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
1298
1367
  }
1299
1368
  /**
1300
1369
  * <p>The specified code signing configuration does not exist.</p>
@@ -3180,6 +3249,10 @@ export interface FunctionEventInvokeConfig {
3180
3249
  * </li>
3181
3250
  * <li>
3182
3251
  * <p>
3252
+ * <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
3253
+ * </li>
3254
+ * <li>
3255
+ * <p>
3183
3256
  * <b>Topic</b> - The ARN of a standard SNS topic.</p>
3184
3257
  * </li>
3185
3258
  * <li>
@@ -3187,6 +3260,9 @@ export interface FunctionEventInvokeConfig {
3187
3260
  * <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
3188
3261
  * </li>
3189
3262
  * </ul>
3263
+ * <note>
3264
+ * <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
3265
+ * </note>
3190
3266
  * @public
3191
3267
  */
3192
3268
  DestinationConfig?: DestinationConfig | undefined;
@@ -5564,6 +5640,10 @@ export interface PutFunctionEventInvokeConfigRequest {
5564
5640
  * </li>
5565
5641
  * <li>
5566
5642
  * <p>
5643
+ * <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
5644
+ * </li>
5645
+ * <li>
5646
+ * <p>
5567
5647
  * <b>Topic</b> - The ARN of a standard SNS topic.</p>
5568
5648
  * </li>
5569
5649
  * <li>
@@ -5571,6 +5651,9 @@ export interface PutFunctionEventInvokeConfigRequest {
5571
5651
  * <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
5572
5652
  * </li>
5573
5653
  * </ul>
5654
+ * <note>
5655
+ * <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
5656
+ * </note>
5574
5657
  * @public
5575
5658
  */
5576
5659
  DestinationConfig?: DestinationConfig | undefined;
@@ -6144,6 +6227,17 @@ export interface UpdateEventSourceMappingRequest {
6144
6227
  * @public
6145
6228
  */
6146
6229
  KMSKeyArn?: string | undefined;
6230
+ /**
6231
+ * <p>The metrics configuration for your event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics">Event source mapping metrics</a>.</p>
6232
+ * @public
6233
+ */
6234
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
6235
+ /**
6236
+ * <p>(Amazon MSK and self-managed Apache Kafka only) The Provisioned Mode configuration for the event source.
6237
+ * For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode">Provisioned Mode</a>.</p>
6238
+ * @public
6239
+ */
6240
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
6147
6241
  }
6148
6242
  /**
6149
6243
  * @public
@@ -6447,6 +6541,10 @@ export interface UpdateFunctionEventInvokeConfigRequest {
6447
6541
  * </li>
6448
6542
  * <li>
6449
6543
  * <p>
6544
+ * <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
6545
+ * </li>
6546
+ * <li>
6547
+ * <p>
6450
6548
  * <b>Topic</b> - The ARN of a standard SNS topic.</p>
6451
6549
  * </li>
6452
6550
  * <li>
@@ -6454,6 +6552,9 @@ export interface UpdateFunctionEventInvokeConfigRequest {
6454
6552
  * <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
6455
6553
  * </li>
6456
6554
  * </ul>
6555
+ * <note>
6556
+ * <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
6557
+ * </note>
6457
6558
  * @public
6458
6559
  */
6459
6560
  DestinationConfig?: DestinationConfig | undefined;
@@ -211,6 +211,18 @@ export declare const FunctionResponseType: {
211
211
  };
212
212
  export type FunctionResponseType =
213
213
  (typeof FunctionResponseType)[keyof typeof FunctionResponseType];
214
+ export declare const EventSourceMappingMetric: {
215
+ readonly EventCount: "EventCount";
216
+ };
217
+ export type EventSourceMappingMetric =
218
+ (typeof EventSourceMappingMetric)[keyof typeof EventSourceMappingMetric];
219
+ export interface EventSourceMappingMetricsConfig {
220
+ Metrics?: EventSourceMappingMetric[] | undefined;
221
+ }
222
+ export interface ProvisionedPollerConfig {
223
+ MinimumPollers?: number | undefined;
224
+ MaximumPollers?: number | undefined;
225
+ }
214
226
  export interface ScalingConfig {
215
227
  MaximumConcurrency?: number | undefined;
216
228
  }
@@ -277,6 +289,8 @@ export interface CreateEventSourceMappingRequest {
277
289
  ScalingConfig?: ScalingConfig | undefined;
278
290
  DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig | undefined;
279
291
  KMSKeyArn?: string | undefined;
292
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
293
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
280
294
  }
281
295
  export interface FilterCriteriaError {
282
296
  ErrorCode?: string | undefined;
@@ -317,6 +331,8 @@ export interface EventSourceMappingConfiguration {
317
331
  KMSKeyArn?: string | undefined;
318
332
  FilterCriteriaError?: FilterCriteriaError | undefined;
319
333
  EventSourceMappingArn?: string | undefined;
334
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
335
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
320
336
  }
321
337
  export declare class CodeSigningConfigNotFoundException extends __BaseException {
322
338
  readonly name: "CodeSigningConfigNotFoundException";
@@ -1512,6 +1528,8 @@ export interface UpdateEventSourceMappingRequest {
1512
1528
  ScalingConfig?: ScalingConfig | undefined;
1513
1529
  DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig | undefined;
1514
1530
  KMSKeyArn?: string | undefined;
1531
+ MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
1532
+ ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
1515
1533
  }
1516
1534
  export interface UpdateFunctionCodeRequest {
1517
1535
  FunctionName: string | undefined;
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.697.0",
4
+ "version": "3.699.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lambda",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.696.0",
24
- "@aws-sdk/client-sts": "3.696.0",
23
+ "@aws-sdk/client-sso-oidc": "3.699.0",
24
+ "@aws-sdk/client-sts": "3.699.0",
25
25
  "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.696.0",
26
+ "@aws-sdk/credential-provider-node": "3.699.0",
27
27
  "@aws-sdk/middleware-host-header": "3.696.0",
28
28
  "@aws-sdk/middleware-logger": "3.696.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.696.0",