using System.Collections.Generic; using System.Runtime.Serialization; using System.Text.Json.Serialization; namespace KinesisEventHandler.Models; /// /// This class is used as the return type for AWS Lambda functions that are invoked by Kinesis to report batch item failures. /// [DataContract] public class KinesisEventResponse { /// /// A list of records which failed processing. Returning the first record which failed would retry all remaining records from the batch. /// [DataMember(EmitDefaultValue = false, Name = "batchItemFailures")] [JsonPropertyName("batchItemFailures")] public IList BatchItemFailures { get; set; } /// The class representing the BatchItemFailure. [DataContract] public class BatchItemFailure { /// /// Sequence number of the record which failed processing. /// [DataMember(EmitDefaultValue = false, Name = "itemIdentifier")] [JsonPropertyName("itemIdentifier")] public string ItemIdentifier { get; set; } } }