namespace Amazon.Lambda.Core { using System; /// /// This attribute is required for serialization of input/output parameters of /// a Lambda function if your Lambda function uses types other than string or /// System.IO.Stream as input/output parameters. /// /// This attribute can be applied to a method (serializer used for method input /// and output), or to an assembly (serializer used for all methods). /// [AttributeUsage(AttributeTargets.Method | AttributeTargets.Assembly, AllowMultiple = false)] public sealed class LambdaSerializerAttribute : System.Attribute { /// /// Type of the serializer. /// The custom serializer must implement Amazon.Lambda.ILambdaSerializer /// interface, or an exception will be thrown. /// public Type SerializerType { get; set; } /// /// Constructs attribute with a specific serializer type. /// /// public LambdaSerializerAttribute(Type serializerType) { this.SerializerType = serializerType; } } }