1- import type { GuStackProps } from " @guardian/cdk/lib/constructs/core/stack.js" ;
2- import { GuStack } from " @guardian/cdk/lib/constructs/core/stack.js" ;
3- import { GuLambdaFunction } from " @guardian/cdk/lib/constructs/lambda/index.js" ;
4- import { GuS3Bucket } from " @guardian/cdk/lib/constructs/s3/index.js" ;
5- import type { App } from " aws-cdk-lib" ;
6- import { Runtime } from " aws-cdk-lib/aws-lambda" ;
7- import { StringParameter } from " aws-cdk-lib/aws-ssm" ;
1+ import type { GuStackProps } from ' @guardian/cdk/lib/constructs/core/stack.js' ;
2+ import { GuStack } from ' @guardian/cdk/lib/constructs/core/stack.js' ;
3+ import { GuLambdaFunction } from ' @guardian/cdk/lib/constructs/lambda/index.js' ;
4+ import { GuS3Bucket } from ' @guardian/cdk/lib/constructs/s3/index.js' ;
5+ import type { App } from ' aws-cdk-lib' ;
6+ import { Runtime } from ' aws-cdk-lib/aws-lambda' ;
7+ import { StringParameter } from ' aws-cdk-lib/aws-ssm' ;
88
9- export const lambdaFunctionName = " ab-testing-deployment-lambda" ;
9+ export const lambdaFunctionName = ' ab-testing-deployment-lambda' ;
1010
1111export class AbTestingDeploymentLambda extends GuStack {
1212 constructor ( scope : App , id : string , props : GuStackProps ) {
1313 super ( scope , id , props ) ;
1414
1515 const s3Bucket = GuS3Bucket . fromBucketName (
1616 this ,
17- " DictionaryDeployBucket" ,
17+ ' DictionaryDeployBucket' ,
1818 StringParameter . valueForStringParameter (
1919 this ,
2020 `/account/services/dotcom-store.bucket` ,
@@ -24,7 +24,7 @@ export class AbTestingDeploymentLambda extends GuStack {
2424 const fastlyApiKeyParameter =
2525 StringParameter . fromSecureStringParameterAttributes (
2626 this ,
27- " FastlyApiKeyParameter" ,
27+ ' FastlyApiKeyParameter' ,
2828 {
2929 parameterName : `/ab-testing/${ this . stage } /fastly-api-token` ,
3030 } ,
@@ -33,16 +33,16 @@ export class AbTestingDeploymentLambda extends GuStack {
3333 const fastlyConfigParameter =
3434 StringParameter . fromSecureStringParameterAttributes (
3535 this ,
36- " FastlyAbTestingConfigParameter" ,
36+ ' FastlyAbTestingConfigParameter' ,
3737 {
3838 parameterName : `/ab-testing/${ this . stage } /fastly-config` ,
3939 } ,
4040 ) ;
4141
42- const lambda = new GuLambdaFunction ( this , " AbTestingDeploymentLambda" , {
42+ const lambda = new GuLambdaFunction ( this , ' AbTestingDeploymentLambda' , {
4343 functionName : `${ lambdaFunctionName } -${ this . stage } ` ,
44- fileName : " lambda.zip" ,
45- handler : " index.handler" ,
44+ fileName : ' lambda.zip' ,
45+ handler : ' index.handler' ,
4646 app : lambdaFunctionName ,
4747 runtime : Runtime . NODEJS_22_X ,
4848 memorySize : 256 ,
0 commit comments