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