Skip to main content
FuseFuse
IntegrationsAwsActions

List IAM managed policies

List managed policies with optional scope, attachment filter, path prefix, and opaque cursor pagination. Requires iam:ListPolicies.

Agent markdown

iam.managed_policies.list · AWS · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • iam:ListPolicies

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
scopestringNoenum all | aws | customer
only_attachedbooleanNo
path_prefixstringNominLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$
page_sizeintegerNominimum 1; maximum 1000
cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
policiesarray<object>YesmaxItems 1000
policies[]objectYesadditionalProperties false
policies[].namestringYesminLength 1; maxLength 128
policies[].idstringYesminLength 1; maxLength 128
policies[].arnstringYesminLength 20; maxLength 2048; pattern ^arn:aws:.+$
policies[].pathstringYesminLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$
policies[].attachment_countintegerYesminimum 0
policies[].is_attachablebooleanYes
policies[].default_version_idstringYesminLength 2; maxLength 32; pattern ^v[1-9][0-9]*$
policies[].created_atstringYesminLength 1; maxLength 64
policies[].updated_atstringYesminLength 1; maxLength 64
next_cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "all",
        "aws",
        "customer"
      ]
    },
    "only_attached": {
      "type": "boolean"
    },
    "path_prefix": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^/$|^/[\\x21-\\x7e]+/$"
    },
    "page_size": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  }
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "policies": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "arn": {
            "type": "string",
            "minLength": 20,
            "maxLength": 2048,
            "pattern": "^arn:aws:.+$"
          },
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^/$|^/[\\x21-\\x7e]+/$"
          },
          "attachment_count": {
            "type": "integer",
            "minimum": 0
          },
          "is_attachable": {
            "type": "boolean"
          },
          "default_version_id": {
            "type": "string",
            "minLength": 2,
            "maxLength": 32,
            "pattern": "^v[1-9][0-9]*$"
          },
          "created_at": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "updated_at": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "name",
          "id",
          "arn",
          "path",
          "attachment_count",
          "is_attachable",
          "default_version_id",
          "created_at",
          "updated_at"
        ]
      },
      "maxItems": 1000
    },
    "next_cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  },
  "required": [
    "policies"
  ]
}