namespace Amazon.Lambda.SQSEvents
{
using System;
using System.Collections.Generic;
using System.IO;
///
/// Simple Queue Service event
///
public class SQSEvent
{
///
/// Get and sets the Records
///
public List Records { get; set; }
///
/// Class containing the data for message attributes
///
public class MessageAttribute
{
///
/// Get and sets value of message attribute of type String or type Number
///
public string StringValue { get; set; }
///
/// Get and sets value of message attribute of type Binary
///
public MemoryStream BinaryValue { get; set; }
///
/// Get and sets the list of String values of message attribute
///
public List StringListValues { get; set; }
///
/// Get and sets the list of Binary values of message attribute
///
public List BinaryListValues { get; set; }
///
/// Get and sets the dataType of message attribute
///
public string DataType { get; set; }
}
///
/// Class representing a SQS message event coming into a Lambda function
///
public class SQSMessage
{
///
/// Get and sets the message id
///
public string MessageId { get; set; }
///
/// Get and sets the receipt handle
///
public string ReceiptHandle { get; set; }
///
/// Get and sets the Body
///
public string Body { get; set; }
///
/// Get and sets the Md5OfBody
///
public string Md5OfBody { get; set; }
///
/// Get and sets the Md5OfMessageAttributes
///
public string Md5OfMessageAttributes { get; set; }
///
/// Get and sets the EventSourceArn
///
public string EventSourceArn { get; set; }
///
/// Get and sets the EventSource
///
public string EventSource { get; set; }
///
/// Get and sets the AwsRegion
///
public string AwsRegion { get; set; }
///
/// Get and sets the Attributes
///
public Dictionary Attributes { get; set; }
///
/// Get and sets the MessageAttributes
///
public Dictionary MessageAttributes { get; set; }
}
}
}