waf2

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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) Connect

func (w *WAF2) Connect() error

Connect will establish a connection to the WAF2 service

func (*WAF2) UpdateIPSet

func (w *WAF2) UpdateIPSet(ipsetName string, ipsetId string, scope string, newAddr []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL