IntegrationsAwsActions
List IAM managed policies
List managed policies with optional scope, attachment filter, path prefix, and opaque cursor pagination. Requires iam:ListPolicies.
iam.managed_policies.list · AWS · v1
Details
Scopes
iam:ListPolicies
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
scope | string | No | enum all | aws | customer |
only_attached | boolean | No | — |
path_prefix | string | No | minLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$ |
page_size | integer | No | minimum 1; maximum 1000 |
cursor | string | No | minLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$ |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
policies | array<object> | Yes | maxItems 1000 |
policies[] | object | Yes | additionalProperties false |
policies[].name | string | Yes | minLength 1; maxLength 128 |
policies[].id | string | Yes | minLength 1; maxLength 128 |
policies[].arn | string | Yes | minLength 20; maxLength 2048; pattern ^arn:aws:.+$ |
policies[].path | string | Yes | minLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$ |
policies[].attachment_count | integer | Yes | minimum 0 |
policies[].is_attachable | boolean | Yes | — |
policies[].default_version_id | string | Yes | minLength 2; maxLength 32; pattern ^v[1-9][0-9]*$ |
policies[].created_at | string | Yes | minLength 1; maxLength 64 |
policies[].updated_at | string | Yes | minLength 1; maxLength 64 |
next_cursor | string | No | minLength 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"
]
}