Skip to content
HALOWERK

Codewerk

iam policy lint

Checks the policy grammar from the AWS IAM JSON policy element reference (retrieved 2026-11-01; Version 2012-10-17, unique Sid, Effect Allow/Deny, exactly one of Action/NotAction, Resource rules per policy type, Principal only in resource and trust policies, documented condition operators with IfExists and ForAnyValue/ForAllValues). Wildcards in actions are matched like IAM (* and ?, case-insensitive). Allowed actions are evaluated against the privilege-escalation combinations of Parliament.

POST https://code.halowerk.com/v1/iam-policy-lint

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
policySee schemaYesThe policy document as JSON object or JSON text.
policy_typestringNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "policy"
  ],
  "properties": {
    "policy": {
      "description": "The policy document as JSON object or JSON text.",
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "minLength": 2,
          "maxLength": 200000
        }
      ]
    },
    "policy_type": {
      "type": "string",
      "enum": [
        "identity",
        "resource",
        "trust"
      ],
      "default": "identity"
    }
  }
}

Open original schema

Published input example

{
  "policy": {
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Action": [
          "iam:PassRole",
          "ec2:RunInstances"
        ],
        "Resource": "*"
      }
    ]
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’