Skip to main content
FuseFuse
IntegrationsAwsActions

Get IAM role

Get one IAM role including its trust policy JSON. Requires iam:GetRole.

Agent markdown

iam.roles.get · 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:GetRole

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
role_namestringYesminLength 1; maxLength 64; pattern ^[A-Za-z0-9_+=,.@-]+$

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
roleobjectYesadditionalProperties false
role.namestringYesminLength 1; maxLength 64; pattern ^[A-Za-z0-9_+=,.@-]+$
role.idstringYesminLength 1; maxLength 128
role.arnstringYesminLength 20; maxLength 2048; pattern ^arn:aws:.+$
role.pathstringYesminLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$
role.created_atstringYesminLength 1; maxLength 64
role.trust_policystringYesminLength 2; maxLength 131072
role.permissions_boundary_arnstringNominLength 20; maxLength 2048; pattern ^arn:aws:.+$
role.last_used_atstringNominLength 1; maxLength 64
role.last_used_regionstringNominLength 1; maxLength 64

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "role_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+=,.@-]+$"
    }
  },
  "required": [
    "role_name"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "role": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[A-Za-z0-9_+=,.@-]+$"
        },
        "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]+/$"
        },
        "created_at": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "trust_policy": {
          "type": "string",
          "minLength": 2,
          "maxLength": 131072
        },
        "permissions_boundary_arn": {
          "type": "string",
          "minLength": 20,
          "maxLength": 2048,
          "pattern": "^arn:aws:.+$"
        },
        "last_used_at": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "last_used_region": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "required": [
        "name",
        "id",
        "arn",
        "path",
        "created_at",
        "trust_policy"
      ]
    }
  },
  "required": [
    "role"
  ]
}