From c2a39fa63d38034ce191bc75dbd77edafe0b3871 Mon Sep 17 00:00:00 2001 From: Daan Rademaker Date: Mon, 27 May 2024 13:12:17 +0200 Subject: [PATCH] all overwrite of lambdaId for backwards compatibility --- typescript/src/resources/deploy-lambda.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typescript/src/resources/deploy-lambda.ts b/typescript/src/resources/deploy-lambda.ts index 735cdfc6..a93860c8 100644 --- a/typescript/src/resources/deploy-lambda.ts +++ b/typescript/src/resources/deploy-lambda.ts @@ -48,6 +48,7 @@ export interface CustomDeployLambdaProps { readonly databricksAccountParam?: string readonly lambdaCode?: aws_lambda.DockerImageCode readonly lambdaName?: string + readonly lambdaId?: string } export abstract class IDatabricksDeployLambda extends Construct { @@ -327,7 +328,8 @@ export class DatabricksDeployLambda extends IDatabricksDeployLambda { ] })); - this.lambda = new aws_lambda.DockerImageFunction(this, `${id}Lambda`, { + const lambdaId = this.props.lambdaId || `${id}Lambda`; + this.lambda = new aws_lambda.DockerImageFunction(this, lambdaId, { functionName: this.props.lambdaName, code: dockerImageCode, timeout: Duration.seconds(300),