aws-cdk-lib.aws_wafv2.CfnRuleGroup.NotStatementProperty

interface NotStatementProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnRuleGroup.NotStatementProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnRuleGroup_NotStatementProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnRuleGroup.NotStatementProperty
Pythonaws_cdk.aws_wafv2.CfnRuleGroup.NotStatementProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnRuleGroup » NotStatementProperty

A logical rule statement used to negate the results of another rule statement.

You provide one Statement within the NotStatement .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';

declare const all: any;
declare const allQueryArguments: any;
declare const method: any;
declare const queryString: any;
declare const singleHeader: any;
declare const singleQueryArgument: any;
declare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;
declare const uriPath: any;
const notStatementProperty: wafv2.CfnRuleGroup.NotStatementProperty = {
  statement: {
    andStatement: {
      statements: [statementProperty_],
    },
    byteMatchStatement: {
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      positionalConstraint: 'positionalConstraint',
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],

      // the properties below are optional
      searchString: 'searchString',
      searchStringBase64: 'searchStringBase64',
    },
    geoMatchStatement: {
      countryCodes: ['countryCodes'],
      forwardedIpConfig: {
        fallbackBehavior: 'fallbackBehavior',
        headerName: 'headerName',
      },
    },
    ipSetReferenceStatement: {
      arn: 'arn',

      // the properties below are optional
      ipSetForwardedIpConfig: {
        fallbackBehavior: 'fallbackBehavior',
        headerName: 'headerName',
        position: 'position',
      },
    },
    labelMatchStatement: {
      key: 'key',
      scope: 'scope',
    },
    notStatement: {
      statement: statementProperty_,
    },
    orStatement: {
      statements: [statementProperty_],
    },
    rateBasedStatement: {
      aggregateKeyType: 'aggregateKeyType',
      limit: 123,

      // the properties below are optional
      forwardedIpConfig: {
        fallbackBehavior: 'fallbackBehavior',
        headerName: 'headerName',
      },
      scopeDownStatement: statementProperty_,
    },
    regexMatchStatement: {
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      regexString: 'regexString',
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],
    },
    regexPatternSetReferenceStatement: {
      arn: 'arn',
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],
    },
    sizeConstraintStatement: {
      comparisonOperator: 'comparisonOperator',
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      size: 123,
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],
    },
    sqliMatchStatement: {
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],

      // the properties below are optional
      sensitivityLevel: 'sensitivityLevel',
    },
    xssMatchStatement: {
      fieldToMatch: {
        allQueryArguments: allQueryArguments,
        body: {
          oversizeHandling: 'oversizeHandling',
        },
        cookies: {
          matchPattern: {
            all: all,
            excludedCookies: ['excludedCookies'],
            includedCookies: ['includedCookies'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        headers: {
          matchPattern: {
            all: all,
            excludedHeaders: ['excludedHeaders'],
            includedHeaders: ['includedHeaders'],
          },
          matchScope: 'matchScope',
          oversizeHandling: 'oversizeHandling',
        },
        jsonBody: {
          matchPattern: {
            all: all,
            includedPaths: ['includedPaths'],
          },
          matchScope: 'matchScope',

          // the properties below are optional
          invalidFallbackBehavior: 'invalidFallbackBehavior',
          oversizeHandling: 'oversizeHandling',
        },
        method: method,
        queryString: queryString,
        singleHeader: singleHeader,
        singleQueryArgument: singleQueryArgument,
        uriPath: uriPath,
      },
      textTransformations: [{
        priority: 123,
        type: 'type',
      }],
    },
  },
};

Properties

NameTypeDescription
statementIResolvable | StatementPropertyThe statement to negate.

statement

Type: IResolvable | StatementProperty

The statement to negate.

You can use any statement that can be nested.