IntegrationsAwsActions
Get IAM role
Get one IAM role including its trust policy JSON. Requires iam:GetRole.
iam.roles.get · AWS · v1
Details
Scopes
iam:GetRole
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
role_name | string | Yes | minLength 1; maxLength 64; pattern ^[A-Za-z0-9_+=,.@-]+$ |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
role | object | Yes | additionalProperties false |
role.name | string | Yes | minLength 1; maxLength 64; pattern ^[A-Za-z0-9_+=,.@-]+$ |
role.id | string | Yes | minLength 1; maxLength 128 |
role.arn | string | Yes | minLength 20; maxLength 2048; pattern ^arn:aws:.+$ |
role.path | string | Yes | minLength 1; maxLength 512; pattern ^/$|^/[\x21-\x7e]+/$ |
role.created_at | string | Yes | minLength 1; maxLength 64 |
role.trust_policy | string | Yes | minLength 2; maxLength 131072 |
role.permissions_boundary_arn | string | No | minLength 20; maxLength 2048; pattern ^arn:aws:.+$ |
role.last_used_at | string | No | minLength 1; maxLength 64 |
role.last_used_region | string | No | minLength 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"
]
}