{% set p = rule.params or {} %}
{% set sel_subnets = (p.get('subnet_ids') or []) if p.get('subnet_ids') is not string else p.get('subnet_ids').replace(',', ' ').split() %}
{% set sel_vpcs = (p.get('vpc_ids') or []) if p.get('vpc_ids') is not string else p.get('vpc_ids').replace(',', ' ').split() %}
{% set sel_lbs = (p.get('lb_names') or []) if p.get('lb_names') is not string else p.get('lb_names').replace(',', ' ').split() %}
{% set known_subnets = [] %}{% for v in options.tree %}{% for s in v.subnets %}{% set _ = known_subnets.append(s.subnet_id) %}{% endfor %}{% endfor %}
{% set known_vpcs = options.tree | map(attribute='vpc_id') | list %}
{% set known_lbs = options.lbs | map(attribute='name') | list %}
{% if rule.id and rule.kind in kinds %}
This rule says: {{ rule.describe(options.names) }}
{% endif %}
{% if not options.tree %}
No snapshot for the active account yet: the lists below fill in from
its latest snapshot after a refresh on Discovery.