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