iam_policy_attach
Attach a managed IAM policy to a user, group, or role to grant its permissions; set confirm=true to authorize the change.
Instructions
Attach a managed policy to a user, group or role (principal_type), granting its permissions; needs confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"principal_type": "<principal_type>",
"principal_name": "<principal_name>",
"policy_arn": "<policy_arn>"
},
"name": "iam_policy_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| policy_arn | Yes | ||
| principal_name | Yes | ||
| principal_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||