Name: {{ finding["PolicyName"] }}

Type: {% if finding["Type"] == "Policy" %}{{ finding["ManagedBy"] }}-Managed {{ finding["Type"] }}{% else %}Inline {{ finding["Type"] }} Policy{% endif %} {% if finding["Type"] == "Policy" %} {% if "Principals" in finding %}

Attached to Principal(s): {% for principal in finding["Principals"] %}
- {{ principal }}{% endfor %} {% endif %} {% else %} {% if finding["AttachedToPrincipal"] %}

Attached to Principal: {{ finding["AttachedToPrincipal"] }} {% endif %} {% endif %}

Services: {{ finding["ServicesCount"] }}
Infrastructure Modification Actions: {{ finding["ActionsCount"] }}
Type: {% if finding["Type"] == "Policy" %}Managed{% else %}Inline{% endif %} Policy
{% if finding["AssumableByComputeService"]|length > 0 %} Role Assumable by Service(s): {% for service in finding["AssumableByComputeService"] %}{{ service }}{% if not loop.last %}, {% endif %}{% endfor %} {% endif %}