'Add a rule to this Lifecycle configuration.  This only adds the rule to
the local copy.  To install the new rule(s) on the bucket, you need to
pass this Lifecycle config object to the configure_lifecycle method of
the Bucket object.
:type action: str
:param action: Action to be taken.
:type action_text: str
:param action_text: Value for the specified action.
:type conditions: dict
:param conditions: A dictionary of conditions that specify when the
action should be taken. Each item in the dictionary represents the name
and value of a condition.'

def add_rule(self, action, action_text, conditions):

    rule = Rule(action, action_text, conditions)
    self.append(rule)
