Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WAF2 ¶
type WAF2 struct { // define the AWS region that s3 is located at AwsRegion awsregion.AWSRegion // custom http2 client options HttpOptions *awshttp2.HttpClientSettings // contains filtered or unexported fields }
func (*WAF2) UpdateIPSet ¶
UpdateIPSet will update an existing IPSet with new addresses specified ipsetName = exact name from WAF2 IP Set already created ipsetId = exact id from WAF2 IP Set already created scope = 'REGIONAL' or other scope per aws WAF2 doc (defaults to REGIONAL if blank) newAddr = addresses to add to ip set
note: aws limit is 10000 ip per ip set
func (*WAF2) UpdateRegexPatternSet ¶
func (w *WAF2) UpdateRegexPatternSet(regexPatternSetName string, regexPatternSetId string, scope string, newRegexPatterns []string) error
UpdateRegexPatternSet will update an existing RegexPatternSet with new regex patterns specified regexPatternSetName = exact name from WAF2 Regex Pattern Set already created regexPatternSetId = exact id from WAF2 Regex Pattern Set already created scope = 'REGIONAL' or other scope per aws WAF2 doc (defaults to REGIONAL if blank) newRegexPatterns = regex patterns to add to regex pattern set
NOTE = AWS limits to 10 regex expressions per regex set, and max of 10 regex sets
this method will take the newest regex pattern to replace the older patterns