Skip to content

Commit

Permalink
Add EventBus class in events script (#1518)
Browse files Browse the repository at this point in the history
* Add EventBus class in events script
* Add EventBusName prop for Rule and EventBusPolicy
  • Loading branch information
jamescarignan authored and markpeek committed Nov 12, 2019
1 parent 975856b commit dbb606b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions troposphere/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ class Condition(AWSProperty):
}


class EventBus(AWSObject):
resource_type = "AWS::Events::EventBus"

props = {
'EventSourceName': (basestring, False),
'Name': (basestring, True)
}


class EventBusPolicy(AWSObject):
resource_type = "AWS::Events::EventBusPolicy"

props = {
'Action': (basestring, True),
'Condition': (Condition, False),
'EventBusName': (basestring, False),
'Principal': (basestring, True),
'StatementId': (basestring, True),
}
Expand Down Expand Up @@ -105,6 +115,7 @@ class Rule(AWSObject):

props = {
'Description': (basestring, False),
'EventBusName': (basestring, False),
'EventPattern': (dict, False),
'Name': (basestring, False),
'RoleArn': (basestring, False),
Expand Down

0 comments on commit dbb606b

Please sign in to comment.