Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
Javascript: How to specify http method with AWS Lambda.invoke()?

From AWS documentation: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html#invoke-property

var params = {
   FunctionName: 'STRING_VALUE', /* required */
   ClientContext: 'STRING_VALUE',
   InvocationType: Event | RequestResponse | DryRun,
   LogType: None | Tail,
   Payload: Buffer.from('...') || 'STRING_VALUE',
   Qualifier: 'STRING_VALUE'
};
lambda.invoke(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
});

How do I specify http method, e.g. GET, POST, PUT, DELETE when calling lambda.invoke()?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

lambda.invoke() invokes the Lambda function - HTTP methods are for invoking Amazon API Gateway routes, not a Lambda function.

A Lambda function just takes in an event.

Either call the Amazon API Gateway endpoint (which then invokes the Lambda), or just directly invoke the Lambda as above.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda