{{- /* Render the published JSON record of one control, so the schema page shows a real example that cannot drift from the catalog. Usage: {{< control-record "aws.iam.root-account-mfa" >}} */ -}} {{- $id := .Get 0 -}} {{- $index := partialCached "control-index.html" . -}} {{- with index $index $id -}}
{{ partial "control-record.html" . | jsonify (dict "indent" " ") }}
{{- else -}}
{{- errorf "control-record shortcode: no control with id %q (%s)" $id .Position -}}
{{- end -}}