WAF / Client / get_regex_pattern_set
get_regex_pattern_set¶
- WAF.Client.get_regex_pattern_set(**kwargs)¶
Note
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns the RegexPatternSet specified by
RegexPatternSetId.See also: AWS API Documentation
Request Syntax
response = client.get_regex_pattern_set( RegexPatternSetId='string' )
- Parameters:
RegexPatternSetId (string) –
[REQUIRED]
The
RegexPatternSetIdof the RegexPatternSet that you want to get.RegexPatternSetIdis returned by CreateRegexPatternSet and by ListRegexPatternSets.- Return type:
dict
- Returns:
Response Syntax
{ 'RegexPatternSet': { 'RegexPatternSetId': 'string', 'Name': 'string', 'RegexPatternStrings': [ 'string', ] } }
Response Structure
(dict) –
RegexPatternSet (dict) –
Information about the RegexPatternSet that you specified in the
GetRegexPatternSetrequest, including the identifier of the pattern set and the regular expression patterns you want AWS WAF to search for.RegexPatternSetId (string) –
The identifier for the
RegexPatternSet. You useRegexPatternSetIdto get information about aRegexPatternSet, update aRegexPatternSet, remove aRegexPatternSetfrom aRegexMatchSet, and delete aRegexPatternSetfrom AWS WAF.RegexMatchSetIdis returned by CreateRegexPatternSet and by ListRegexPatternSets.Name (string) –
A friendly name or description of the RegexPatternSet. You can’t change
Nameafter you create aRegexPatternSet.RegexPatternStrings (list) –
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.(string) –
Exceptions
WAF.Client.exceptions.WAFInternalErrorExceptionWAF.Client.exceptions.WAFInvalidAccountExceptionWAF.Client.exceptions.WAFNonexistentItemException