@gammarers/aws-waf-geo-restrict-rule
Version:
This is an AWS CDK Geo Restric Rule on WAF V2
16 lines (15 loc) • 514 B
TypeScript
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;
}