@aws-sdk/client-lambda 3.697.0 → 3.698.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 +12 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +7 -0
- package/dist-types/Lambda.d.ts +1 -1
- package/dist-types/LambdaClient.d.ts +1 -1
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +19 -5
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +5 -0
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +5 -0
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +5 -0
- package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +4 -1
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +19 -5
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +71 -6
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +1 -1
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
|
|
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,6 +1540,7 @@ 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: [],
|
|
1540
1545
|
Queues: (_) => (0, import_smithy_client._json)(_),
|
|
1541
1546
|
ScalingConfig: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -2368,6 +2373,7 @@ var se_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
2368
2373
|
MaximumBatchingWindowInSeconds: [],
|
|
2369
2374
|
MaximumRecordAgeInSeconds: [],
|
|
2370
2375
|
MaximumRetryAttempts: [],
|
|
2376
|
+
MetricsConfig: (_) => (0, import_smithy_client._json)(_),
|
|
2371
2377
|
ParallelizationFactor: [],
|
|
2372
2378
|
ScalingConfig: (_) => (0, import_smithy_client._json)(_),
|
|
2373
2379
|
SourceAccessConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -2565,6 +2571,7 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2565
2571
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
2566
2572
|
MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
|
|
2567
2573
|
MaximumRetryAttempts: import_smithy_client.expectInt32,
|
|
2574
|
+
MetricsConfig: import_smithy_client._json,
|
|
2568
2575
|
ParallelizationFactor: import_smithy_client.expectInt32,
|
|
2569
2576
|
Queues: import_smithy_client._json,
|
|
2570
2577
|
ScalingConfig: import_smithy_client._json,
|
|
@@ -2696,6 +2703,7 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2696
2703
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
2697
2704
|
MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
|
|
2698
2705
|
MaximumRetryAttempts: import_smithy_client.expectInt32,
|
|
2706
|
+
MetricsConfig: import_smithy_client._json,
|
|
2699
2707
|
ParallelizationFactor: import_smithy_client.expectInt32,
|
|
2700
2708
|
Queues: import_smithy_client._json,
|
|
2701
2709
|
ScalingConfig: import_smithy_client._json,
|
|
@@ -2857,6 +2865,7 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2857
2865
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
2858
2866
|
MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
|
|
2859
2867
|
MaximumRetryAttempts: import_smithy_client.expectInt32,
|
|
2868
|
+
MetricsConfig: import_smithy_client._json,
|
|
2860
2869
|
ParallelizationFactor: import_smithy_client.expectInt32,
|
|
2861
2870
|
Queues: import_smithy_client._json,
|
|
2862
2871
|
ScalingConfig: import_smithy_client._json,
|
|
@@ -3622,6 +3631,7 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3622
3631
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
3623
3632
|
MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
|
|
3624
3633
|
MaximumRetryAttempts: import_smithy_client.expectInt32,
|
|
3634
|
+
MetricsConfig: import_smithy_client._json,
|
|
3625
3635
|
ParallelizationFactor: import_smithy_client.expectInt32,
|
|
3626
3636
|
Queues: import_smithy_client._json,
|
|
3627
3637
|
ScalingConfig: import_smithy_client._json,
|
|
@@ -4549,6 +4559,7 @@ var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name((output, context
|
|
|
4549
4559
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
4550
4560
|
MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
|
|
4551
4561
|
MaximumRetryAttempts: import_smithy_client.expectInt32,
|
|
4562
|
+
MetricsConfig: import_smithy_client._json,
|
|
4552
4563
|
ParallelizationFactor: import_smithy_client.expectInt32,
|
|
4553
4564
|
Queues: import_smithy_client._json,
|
|
4554
4565
|
ScalingConfig: import_smithy_client._json,
|
|
@@ -6083,6 +6094,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
|
|
|
6083
6094
|
CodeSigningPolicy,
|
|
6084
6095
|
FullDocument,
|
|
6085
6096
|
FunctionResponseType,
|
|
6097
|
+
EventSourceMappingMetric,
|
|
6086
6098
|
EndPointType,
|
|
6087
6099
|
SourceAccessType,
|
|
6088
6100
|
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,6 +104,7 @@ export const se_CreateEventSourceMappingCommand = async (input, context) => {
|
|
|
104
104
|
MaximumBatchingWindowInSeconds: [],
|
|
105
105
|
MaximumRecordAgeInSeconds: [],
|
|
106
106
|
MaximumRetryAttempts: [],
|
|
107
|
+
MetricsConfig: (_) => _json(_),
|
|
107
108
|
ParallelizationFactor: [],
|
|
108
109
|
Queues: (_) => _json(_),
|
|
109
110
|
ScalingConfig: (_) => _json(_),
|
|
@@ -908,6 +909,7 @@ export const se_UpdateEventSourceMappingCommand = async (input, context) => {
|
|
|
908
909
|
MaximumBatchingWindowInSeconds: [],
|
|
909
910
|
MaximumRecordAgeInSeconds: [],
|
|
910
911
|
MaximumRetryAttempts: [],
|
|
912
|
+
MetricsConfig: (_) => _json(_),
|
|
911
913
|
ParallelizationFactor: [],
|
|
912
914
|
ScalingConfig: (_) => _json(_),
|
|
913
915
|
SourceAccessConfigurations: (_) => _json(_),
|
|
@@ -1096,6 +1098,7 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
|
1096
1098
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1097
1099
|
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1098
1100
|
MaximumRetryAttempts: __expectInt32,
|
|
1101
|
+
MetricsConfig: _json,
|
|
1099
1102
|
ParallelizationFactor: __expectInt32,
|
|
1100
1103
|
Queues: _json,
|
|
1101
1104
|
ScalingConfig: _json,
|
|
@@ -1227,6 +1230,7 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
|
1227
1230
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1228
1231
|
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1229
1232
|
MaximumRetryAttempts: __expectInt32,
|
|
1233
|
+
MetricsConfig: _json,
|
|
1230
1234
|
ParallelizationFactor: __expectInt32,
|
|
1231
1235
|
Queues: _json,
|
|
1232
1236
|
ScalingConfig: _json,
|
|
@@ -1388,6 +1392,7 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
|
1388
1392
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1389
1393
|
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1390
1394
|
MaximumRetryAttempts: __expectInt32,
|
|
1395
|
+
MetricsConfig: _json,
|
|
1391
1396
|
ParallelizationFactor: __expectInt32,
|
|
1392
1397
|
Queues: _json,
|
|
1393
1398
|
ScalingConfig: _json,
|
|
@@ -2153,6 +2158,7 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
|
2153
2158
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
2154
2159
|
MaximumRecordAgeInSeconds: __expectInt32,
|
|
2155
2160
|
MaximumRetryAttempts: __expectInt32,
|
|
2161
|
+
MetricsConfig: _json,
|
|
2156
2162
|
ParallelizationFactor: __expectInt32,
|
|
2157
2163
|
Queues: _json,
|
|
2158
2164
|
ScalingConfig: _json,
|
|
@@ -3082,6 +3088,7 @@ const de_EventSourceMappingConfiguration = (output, context) => {
|
|
|
3082
3088
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
3083
3089
|
MaximumRecordAgeInSeconds: __expectInt32,
|
|
3084
3090
|
MaximumRetryAttempts: __expectInt32,
|
|
3091
|
+
MetricsConfig: _json,
|
|
3085
3092
|
ParallelizationFactor: __expectInt32,
|
|
3086
3093
|
Queues: _json,
|
|
3087
3094
|
ScalingConfig: _json,
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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,11 @@ 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
|
+
* },
|
|
218
227
|
* };
|
|
219
228
|
* const command = new CreateEventSourceMappingCommand(input);
|
|
220
229
|
* const response = await client.send(command);
|
|
@@ -292,6 +301,11 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
292
301
|
* // Message: "STRING_VALUE",
|
|
293
302
|
* // },
|
|
294
303
|
* // EventSourceMappingArn: "STRING_VALUE",
|
|
304
|
+
* // MetricsConfig: { // EventSourceMappingMetricsConfig
|
|
305
|
+
* // Metrics: [ // EventSourceMappingMetricList
|
|
306
|
+
* // "EventCount",
|
|
307
|
+
* // ],
|
|
308
|
+
* // },
|
|
295
309
|
* // };
|
|
296
310
|
*
|
|
297
311
|
* ```
|
|
@@ -116,6 +116,11 @@ 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
|
+
* // },
|
|
119
124
|
* // };
|
|
120
125
|
*
|
|
121
126
|
* ```
|
|
@@ -114,6 +114,11 @@ 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
|
+
* // },
|
|
117
122
|
* // };
|
|
118
123
|
*
|
|
119
124
|
* ```
|
|
@@ -120,6 +120,11 @@ 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
|
+
* // },
|
|
123
128
|
* // },
|
|
124
129
|
* // ],
|
|
125
130
|
* // };
|
|
@@ -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
|
|
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,11 @@ 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
|
+
* },
|
|
195
204
|
* };
|
|
196
205
|
* const command = new UpdateEventSourceMappingCommand(input);
|
|
197
206
|
* const response = await client.send(command);
|
|
@@ -269,6 +278,11 @@ declare const UpdateEventSourceMappingCommand_base: {
|
|
|
269
278
|
* // Message: "STRING_VALUE",
|
|
270
279
|
* // },
|
|
271
280
|
* // EventSourceMappingArn: "STRING_VALUE",
|
|
281
|
+
* // MetricsConfig: { // EventSourceMappingMetricsConfig
|
|
282
|
+
* // Metrics: [ // EventSourceMappingMetricList
|
|
283
|
+
* // "EventCount",
|
|
284
|
+
* // ],
|
|
285
|
+
* // },
|
|
272
286
|
* // };
|
|
273
287
|
*
|
|
274
288
|
* ```
|
package/dist-types/index.d.ts
CHANGED
|
@@ -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
|
|
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/
|
|
623
|
-
* DynamoDB
|
|
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,34 @@ 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
|
+
}
|
|
743
772
|
/**
|
|
744
773
|
* <p>(Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.</p>
|
|
745
774
|
* @public
|
|
@@ -1099,6 +1128,11 @@ export interface CreateEventSourceMappingRequest {
|
|
|
1099
1128
|
* @public
|
|
1100
1129
|
*/
|
|
1101
1130
|
KMSKeyArn?: string | undefined;
|
|
1131
|
+
/**
|
|
1132
|
+
* <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>
|
|
1133
|
+
* @public
|
|
1134
|
+
*/
|
|
1135
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
1102
1136
|
}
|
|
1103
1137
|
/**
|
|
1104
1138
|
* <p>An object that contains details about an error related to filter criteria encryption.</p>
|
|
@@ -1295,6 +1329,11 @@ export interface EventSourceMappingConfiguration {
|
|
|
1295
1329
|
* @public
|
|
1296
1330
|
*/
|
|
1297
1331
|
EventSourceMappingArn?: string | undefined;
|
|
1332
|
+
/**
|
|
1333
|
+
* <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>
|
|
1334
|
+
* @public
|
|
1335
|
+
*/
|
|
1336
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
1298
1337
|
}
|
|
1299
1338
|
/**
|
|
1300
1339
|
* <p>The specified code signing configuration does not exist.</p>
|
|
@@ -3180,6 +3219,10 @@ export interface FunctionEventInvokeConfig {
|
|
|
3180
3219
|
* </li>
|
|
3181
3220
|
* <li>
|
|
3182
3221
|
* <p>
|
|
3222
|
+
* <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
|
|
3223
|
+
* </li>
|
|
3224
|
+
* <li>
|
|
3225
|
+
* <p>
|
|
3183
3226
|
* <b>Topic</b> - The ARN of a standard SNS topic.</p>
|
|
3184
3227
|
* </li>
|
|
3185
3228
|
* <li>
|
|
@@ -3187,6 +3230,9 @@ export interface FunctionEventInvokeConfig {
|
|
|
3187
3230
|
* <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
|
|
3188
3231
|
* </li>
|
|
3189
3232
|
* </ul>
|
|
3233
|
+
* <note>
|
|
3234
|
+
* <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
|
|
3235
|
+
* </note>
|
|
3190
3236
|
* @public
|
|
3191
3237
|
*/
|
|
3192
3238
|
DestinationConfig?: DestinationConfig | undefined;
|
|
@@ -5564,6 +5610,10 @@ export interface PutFunctionEventInvokeConfigRequest {
|
|
|
5564
5610
|
* </li>
|
|
5565
5611
|
* <li>
|
|
5566
5612
|
* <p>
|
|
5613
|
+
* <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
|
|
5614
|
+
* </li>
|
|
5615
|
+
* <li>
|
|
5616
|
+
* <p>
|
|
5567
5617
|
* <b>Topic</b> - The ARN of a standard SNS topic.</p>
|
|
5568
5618
|
* </li>
|
|
5569
5619
|
* <li>
|
|
@@ -5571,6 +5621,9 @@ export interface PutFunctionEventInvokeConfigRequest {
|
|
|
5571
5621
|
* <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
|
|
5572
5622
|
* </li>
|
|
5573
5623
|
* </ul>
|
|
5624
|
+
* <note>
|
|
5625
|
+
* <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
|
|
5626
|
+
* </note>
|
|
5574
5627
|
* @public
|
|
5575
5628
|
*/
|
|
5576
5629
|
DestinationConfig?: DestinationConfig | undefined;
|
|
@@ -6144,6 +6197,11 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
6144
6197
|
* @public
|
|
6145
6198
|
*/
|
|
6146
6199
|
KMSKeyArn?: string | undefined;
|
|
6200
|
+
/**
|
|
6201
|
+
* <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>
|
|
6202
|
+
* @public
|
|
6203
|
+
*/
|
|
6204
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
6147
6205
|
}
|
|
6148
6206
|
/**
|
|
6149
6207
|
* @public
|
|
@@ -6447,6 +6505,10 @@ export interface UpdateFunctionEventInvokeConfigRequest {
|
|
|
6447
6505
|
* </li>
|
|
6448
6506
|
* <li>
|
|
6449
6507
|
* <p>
|
|
6508
|
+
* <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p>
|
|
6509
|
+
* </li>
|
|
6510
|
+
* <li>
|
|
6511
|
+
* <p>
|
|
6450
6512
|
* <b>Topic</b> - The ARN of a standard SNS topic.</p>
|
|
6451
6513
|
* </li>
|
|
6452
6514
|
* <li>
|
|
@@ -6454,6 +6516,9 @@ export interface UpdateFunctionEventInvokeConfigRequest {
|
|
|
6454
6516
|
* <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p>
|
|
6455
6517
|
* </li>
|
|
6456
6518
|
* </ul>
|
|
6519
|
+
* <note>
|
|
6520
|
+
* <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p>
|
|
6521
|
+
* </note>
|
|
6457
6522
|
* @public
|
|
6458
6523
|
*/
|
|
6459
6524
|
DestinationConfig?: DestinationConfig | undefined;
|
|
@@ -211,6 +211,14 @@ 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
|
+
}
|
|
214
222
|
export interface ScalingConfig {
|
|
215
223
|
MaximumConcurrency?: number | undefined;
|
|
216
224
|
}
|
|
@@ -277,6 +285,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
277
285
|
ScalingConfig?: ScalingConfig | undefined;
|
|
278
286
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig | undefined;
|
|
279
287
|
KMSKeyArn?: string | undefined;
|
|
288
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
280
289
|
}
|
|
281
290
|
export interface FilterCriteriaError {
|
|
282
291
|
ErrorCode?: string | undefined;
|
|
@@ -317,6 +326,7 @@ export interface EventSourceMappingConfiguration {
|
|
|
317
326
|
KMSKeyArn?: string | undefined;
|
|
318
327
|
FilterCriteriaError?: FilterCriteriaError | undefined;
|
|
319
328
|
EventSourceMappingArn?: string | undefined;
|
|
329
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
320
330
|
}
|
|
321
331
|
export declare class CodeSigningConfigNotFoundException extends __BaseException {
|
|
322
332
|
readonly name: "CodeSigningConfigNotFoundException";
|
|
@@ -1512,6 +1522,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
1512
1522
|
ScalingConfig?: ScalingConfig | undefined;
|
|
1513
1523
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig | undefined;
|
|
1514
1524
|
KMSKeyArn?: string | undefined;
|
|
1525
|
+
MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
|
|
1515
1526
|
}
|
|
1516
1527
|
export interface UpdateFunctionCodeRequest {
|
|
1517
1528
|
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.
|
|
4
|
+
"version": "3.698.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",
|