using System; namespace Amazon.Lambda.Annotations.APIGateway { /// /// Configures the Lambda function to be called from an API Gateway HTTP API /// /// /// The HTTP method, HTTP API payload version and resource path are required to be set on the attribute. /// [AttributeUsage(AttributeTargets.Method)] public class HttpApiAttribute : Attribute { /// public HttpApiVersion Version { get; set; } = HttpApiVersion.V2; /// /// Resource path /// public string Template { get; set; } /// public LambdaHttpMethod Method { get; set; } public HttpApiAttribute(LambdaHttpMethod method, string template) { Template = template; Method = method; } } }