put_resource_policy
Attaches a resource-based policy document to a DynamoDB table or stream to control access permissions for tables and their indexes.
Instructions
Attaches a resource-based policy document (max 20 KB) to a DynamoDB table or stream. You can control permissions for both tables and their indexes through the policy.
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 | An AWS resource-based policy document in JSON format or dictionary. | |
| region_name | No | The aws region to run the tool | |
| resource_arn | Yes | The Amazon Resource Name (ARN) of the DynamoDB resource |