Skip to content

Commit

Permalink
Fixup formatting in NetworkFirewall
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Jul 24, 2021
1 parent 53e8e69 commit 8735a84
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions troposphere/networkfirewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@
from . import AWSObject, AWSProperty
from .validators import boolean, integer


VALID_RULE_GROUP_TYPES = (
"STATEFUL",
"STATELESS"
)
VALID_RULE_GROUP_TYPES = ("STATEFUL", "STATELESS")


def validate_rule_group_type(rule_group_type):
"""Validate Type for RuleGroup"""
if rule_group_type not in VALID_RULE_GROUP_TYPES:
raise ValueError(
"RuleGroup Type must be one of %s"
% ", ".join(VALID_RULE_GROUP_TYPES)
"RuleGroup Type must be one of %s" % ", ".join(VALID_RULE_GROUP_TYPES)
)
return rule_group_type

Expand Down Expand Up @@ -104,9 +99,9 @@ class FirewallPolicy(AWSObject):

props = {
"Description": (str, False),
"FirewallPolicy": (FirewallPolicyProperty, True),
"FirewallPolicyName": (str, True),
"Tags": (Tags, False),
"FirewallPolicy": (FirewallPolicyProperty, True),
}


Expand Down Expand Up @@ -242,5 +237,5 @@ class RuleGroup(AWSObject):
"RuleGroup": (RuleGroupProperty, False),
"RuleGroupName": (str, True),
"Tags": (Tags, False),
"Type": (validate_rule_group_type, True)
"Type": (validate_rule_group_type, True),
}

0 comments on commit 8735a84

Please sign in to comment.