File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
lambda-events/src/event/streams Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ impl KinesisEventResponse {
4040 /// This is a convenience method for setting all batch item failures in one call.
4141 /// It replaces any previously registered failures.
4242 ///
43+ /// Besides `item_identifiers`, the generated struct will use default field values for [`KinesisBatchItemFailure`].
44+ ///
4345 /// **Important**: This feature requires `FunctionResponseTypes: ReportBatchItemFailures`
4446 /// to be enabled in your Lambda function's Kinesis event source mapping configuration.
4547 /// Without this setting, Lambda will retry the entire batch on any failure.
@@ -54,6 +56,7 @@ impl KinesisEventResponse {
5456 item_identifier : Some ( id. into ( ) ) ,
5557 #[ cfg( feature = "catch-all-fields" ) ]
5658 other : serde_json:: Map :: new ( ) ,
59+ ..Default :: default ( )
5760 } )
5861 . collect ( ) ;
5962 }
You can’t perform that action at this time.
0 commit comments