iam_policy_version_create
Add a new version to a managed IAM policy, optionally set it as default, and confirm the change; use when updating policy documents while staying within the five-version limit.
Instructions
Add a new version of a managed policy (dict or JSON), optionally making it the default; needs confirm=true. A policy holds at most five versions.
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": {
"policy_arn": "<policy_arn>",
"policy_document": "<policy_document>"
},
"name": "iam_policy_version_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| policy_arn | Yes | ||
| set_as_default | No | ||
| policy_document | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||