code: def add_rule(self, id, prefix, status, expiration):
          
          rule = Rule(id, prefix, status, expiration)
          self.append(rule)
docs: 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.
  
          :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.