'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 id: str
:param id: Unique identifier for the rule. The value cannot be longer
than 255 characters. This value is optional. The server will
generate a unique value for the rule if no value is provided.
:type prefix: str
:iparam prefix: Prefix identifying one or more objects to which the
rule applies.
:type status: str
:param status: If \'Enabled\', the rule is currently being applied.
If \'Disabled\', the rule is not currently being applied.
:type expiration: int
:param expiration: Indicates the lifetime, in days, of the objects
that are subject to the rule. The value must be a non-zero
positive integer. A Expiration object instance is also perfect.
:type transition: Transitions
:param transition: Indicates when an object transitions to a
different storage class.'

def add_rule(self, id=None, prefix='', status='Enabled', expiration=None, transition=None):

    rule = Rule(id, prefix, status, expiration, transition)
    self.append(rule)
