UNPKG

@gammarers/aws-waf-geo-restrict-rule

Version:
16 lines (15 loc) 514 B
import * as wafv2 from 'aws-cdk-lib/aws-wafv2'; export interface RuleConfig { readonly priority: number; readonly ruleName?: string; readonly cloudWatchMetricsName?: string; } export interface WAFGeoRestrictRuleProps { readonly allowCountries: string[]; } export declare class WAFGeoRestrictRule { private props; constructor(props: WAFGeoRestrictRuleProps); allowRule(config: RuleConfig): wafv2.CfnWebACL.RuleProperty; blockRule(config: RuleConfig): wafv2.CfnWebACL.RuleProperty; }