After upgrading to version 2.0 of CDK and running npm install, I encountered an issue with the code line Name: 'application-name'
.
const nonplclAppNames = configs['nonplclAppNames'].split(',');
let nonplclAppNamesMatchingStatements: wafv2.CfnWebACL.StatementProperty[] = [];
nonplclAppNames.forEach((appName: string) => {
const statement: wafv2.CfnWebACL.StatementProperty = {
notStatement: {
statement: {
byteMatchStatement: {
searchString: appName,
fieldToMatch: {
singleHeader: {
Name: 'application-name' // <- Issue
.
.
.
Type '{ Name: string; }' is not assignable to type 'IResolvable | SingleHeaderProperty | undefined'.
Object literal may only specify known properties, and 'Name' does not exist in type 'IResolvable | SingleHeaderProperty'.
What steps should I take to resolve this technical issue?