boundless-dawn-94219
05/21/2024, 4:09 AMexports.handler = async function(event, context) {
console.log("EVENT: \n" + JSON.stringify(event, null, 2))
return {
statusCode: 200,
body: "Hello, Pulumi!"
};
}
What are the pulumi types for event
and context
?boundless-dawn-94219
05/21/2024, 4:14 AMboundless-dawn-94219
05/21/2024, 4:14 AMexport const apiHandler = async (
event: any,
context: any,
): Promise<any> => {
boundless-dawn-94219
05/21/2024, 4:15 AMany
is frowned uponboundless-dawn-94219
05/21/2024, 4:20 AMevent: awsx.classic.apigateway.Request
little-cartoon-10569
05/21/2024, 4:59 AMlittle-cartoon-10569
05/21/2024, 5:00 AMlittle-cartoon-10569
05/21/2024, 5:01 AMboundless-dawn-94219
05/21/2024, 5:06 AM/node_modules/@pulumi
reveals nothing. I can only conclude there are no Pulumi types defined yet for HTTP ApiGateway.little-cartoon-10569
05/21/2024, 5:14 AMboundless-dawn-94219
05/21/2024, 5:14 AMlittle-cartoon-10569
05/21/2024, 5:16 AMlittle-cartoon-10569
05/21/2024, 5:16 AMlittle-cartoon-10569
05/21/2024, 5:17 AMlittle-cartoon-10569
05/21/2024, 5:17 AMboundless-dawn-94219
05/21/2024, 5:17 AMlittle-cartoon-10569
05/21/2024, 5:18 AMlittle-cartoon-10569
05/21/2024, 5:18 AMboundless-dawn-94219
05/21/2024, 5:19 AMboundless-dawn-94219
05/21/2024, 9:50 PMimport { APIGatewayProxyEventV2WithJWTAuthorizer, APIGatewayProxyResultV2 } from 'aws-lambda';
export const handler = async (
event: APIGatewayProxyEventV2WithJWTAuthorizer
): Promise<APIGatewayProxyResultV2> => {
return { statusCode: 200, body: '{}' };
};