import * as cdk from '@aws-cdk/core'; /** * Base amplify stack class */ // eslint-disable-next-line @typescript-eslint/naming-convention export class cdkStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); /* Do not remove - Amplify CLI automatically injects the current deployment environment in this input parameter */ // eslint-disable-next-line no-new new cdk.CfnParameter(this, 'env', { type: 'String', description: 'Current Amplify CLI env name', }); // intentional compilation error below: compile error } }