namespace Amazon.Lambda.MQEvents
{
using System;
using System.Collections.Generic;
///
/// Apache ActiveMQ event
/// https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html
///
public class ActiveMQEvent
{
///
/// The source of the event.
///
public string EventSource { get; set; }
///
/// The ARN of the event source.
///
public string EventSourceArn { get; set; }
///
/// List of ActiveMQ messages.
///
public IList Messages { get; set; }
///
/// Class that represents an ActiveMQ message.
///
public class ActiveMQMessage
{
///
/// Message ID
///
public string MessageId { get; set; }
///
/// Message Type
///
public string MessageType { get; set; }
///
/// Data sent to Active MQ broker encoded in Base 64.
///
public string Data { get; set; }
///
/// Connection ID
///
public string ConnectionId { get; set; }
///
/// Indicates if the message was redelivered.
///
public bool? Redelivered { get; set; }
///
/// Indicates if the message is persistent.
///
public bool? Persistent { get; set; }
///
/// Message Destination
///
public Destination Destination { get; set; }
///
/// Message Timestamp
///
public long? Timestamp { get; set; }
///
/// Broker In Time
///
public long? BrokerInTime { get; set; }
///
/// Broker Out Time
///
public long? BrokerOutTime { get; set; }
///
/// Custom Properties
///
public IDictionary Properties { get; set; }
}
///
/// Destination queue
///
public class Destination
{
///
/// Queue Name
///
public string PhysicalName { get; set; }
}
}
}