Lambda from existing
🔥 Import
import * as lambda from 'aws-cdk-lib/aws-lambda';
🔥 Code
const myFunction = lambda.Function.fromFunctionArn(
this,
'imported-lambda-func',
'EXTERNAL_LAMBDA_FUNCTION_ARN',
);
const myFunction = lambda.Function.fromFunctionName(
this,
'imported-lambda-func',
'EXTERNAL_LAMBDA_FUNCTION_NAME',
);
Last updated