docs: def resolve_self_references(self, rules):
          """Resolves `$self` references to actual application name in security group rules."""
          with suppress(KeyError):
              rule = rules.pop('$self')
              rules[self.app_name] = rule
          return rules