put_resource_policy
Attach an IAM resource policy to a key to grant cross-account access or restrict principals. Provide the key ARN and JSON policy document.
Instructions
Call this when granting cross-account access to a key or restricting which principals may use it.
Attach an IAM resource policy to a key.
Args: resource_arn: Key ARN policy: JSON policy document string
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": {
"resource_arn": "<resource_arn>",
"policy": "<policy>"
},
"name": "put_resource_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | ||
| resource_arn | Yes |