hey all
im trying to create a rest api on pulumi that integrates api gateway and sqs together on aws
export const apiGateway = new awsx.apigateway.API(“api”, {
routes: [
{
path: ‘/email’,
method: ‘POST’,
target: {
type: ‘aws’,
uri: Queues.pdfProcessingQueue.arn,
httpMethod: ‘ANY’,
}
},
],
restApiArgs: {
binaryMediaTypes: [],
}
}, {
dependsOn: [Queues.pdfProcessingQueue],
});
this is my code.
but i keep getting this error.
any help is appreciated.