suggest_gsi
Generate a DynamoDB GSI definition with index name, partition key, projection type, and billing mode for a given table and attribute. Use when a query pattern needs a missing index.
Instructions
Generates a ready-to-use DynamoDB GSI definition — index name, partition key, projection type, billing mode — for a given table and attribute. Call this when a query pattern needs an index that does not exist yet, or when the analyzer flags a missing GSI finding. Does not verify whether the GSI already exists; check the table schema in get_infra_overview first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | DynamoDB table name | |
| attribute | Yes | Attribute to create the GSI on |