Lambda + https url
🔥 Import
import * as lambda from 'aws-cdk-lib/aws-lambda';
🔥 Code
declare const myFunction: lambda.Function;
const funUrl = myFunction.addFunctionUrl({
authType: lambda.FunctionUrlAuthType.NONE,
cors: {
allowedOrigins: ['*'],
},
});
Last updated