{{key-value-header
baseKey=model
path="vault.cluster.secrets.backend.list"
mode=mode
root=root
showCurrent=true
}}
{{#if (eq mode "create")}}
Create an AWS Role
{{else if (eq mode 'edit')}}
Edit AWS Role {{model.id}}
{{else}}
AWS Role {{model.id}}
{{/if}}
{{#if (eq mode "show")}}
{{#if model.canGenerate}}
Generate credentials
{{/if}}
{{#if (and model.canGenerate (or model.canDelete model.canEdit))}}
{{/if}}
{{#if model.canDelete}}
Delete role
{{/if}}
{{#if model.canEdit}}
Edit role
{{/if}}
{{/if}}
{{#if (or (eq mode 'edit') (eq mode 'create'))}}
{{partial 'partials/role-aws/form'}}
{{else}}
{{partial 'partials/role-aws/show'}}
{{/if}}