title: Consuming lambda SNS event as type Promise<APIGatewayProxyResultV2>
body: <p>I don't understand what is the use case to use <code>Promise&lt;APIGatewayProxyResultV2&gt;</code> type when processing an SNS event.</p>
  <pre><code>export async function main (event: SNSEvent) {
      event.Records.forEach((record) =&gt; {
          console.log('This is the record', record);
        });
      return {
        statusCode: 200
      }
    } 
  </code></pre>
  <pre><code>export async function main (event: SNSEvent): Promise&lt;APIGatewayProxyResultV2&gt; {
      event.Records.forEach((record) =&gt; {
          console.log('This is the record', record);
        });
      return {
        statusCode: 200
      }
    } 
  </code></pre>
  <p>What is the benefit of using <code>Promise&lt;APIGatewayProxyResultV2&gt;</code> ?</p>
  <p>Does it mean that I could define the event structure and not have it accepted, basically an if-else statement, but transformed in Web Logic? Can you point to an example if this is the case?</p>