Skip to content

Commit

Permalink
Add new wafregional resources (cloudtools#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
oussemos authored and Dave Masino committed Oct 17, 2019
1 parent b106a4e commit 4d26715
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions troposphere/wafregional.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ class Predicates(AWSProperty):
}


class GeoMatchConstraints(AWSProperty):
props = {
'Type': (basestring, True),
'Value': (basestring, True)
}


class Rules(AWSProperty):
props = {
'Action': (Action, True),
Expand Down Expand Up @@ -149,3 +156,33 @@ class XssMatchSet(AWSObject):
'Name': (basestring, True),
'XssMatchTuples': ([XssMatchTuple], False),
}


class RegexPatternSet(AWSObject):
resource_type = "AWS::WAFRegional::RegexPatternSet"

props = {
'Name': (basestring, True),
'RegexPatternStrings': ([basestring], True),
}


class RateBasedRule(AWSObject):
resource_type = "AWS::WAFRegional::RateBasedRule"

props = {
'MatchPredicates': ([Predicates], False),
'MetricName': (basestring, True),
'Name': (basestring, True),
'RateKey': (basestring, True),
'RateLimit': (integer, True),
}


class GeoMatchSet(AWSObject):
resource_type = "AWS::WAFRegional::GeoMatchSet"

props = {
'GeoMatchConstraints': ([GeoMatchConstraints], False),
'Name': (basestring, True),
}

0 comments on commit 4d26715

Please sign in to comment.