in smdebug_rulesconfig/actions/actions.py [0:0]
def __init__(self, *actions: Action):
"""
Higher level object to maintain a list of actions to be invoked when a rule is fired. Offers higher level
`serialize` function to handle serialization of actions as a string list of dictionaries.
:param actions: List of actions.
"""
if not all(isinstance(action, Action) for action in actions):
raise TypeError("actions must be list of Action objects!")
self.actions = actions