Skip to main content
Glama

dynamodb_update_ttl

Enable or disable Time to Live (TTL) settings for a DynamoDB table by specifying the table name, TTL status, and attribute name.

Instructions

Update the TTL settings for a table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesName of the DynamoDB table
ttl_attributeYesThe attribute name to use for TTL
ttl_enabledYesWhether TTL should be enabled

Implementation Reference

  • The core handler logic for the dynamodb_update_ttl tool, which calls update_time_to_live on the DynamoDB client with the provided table name, enabled flag, and attribute name.
    elif name == "dynamodb_update_ttl": response = dynamodb_client.update_time_to_live( TableName=arguments["table_name"], TimeToLiveSpecification={ 'Enabled': arguments["ttl_enabled"], 'AttributeName': arguments["ttl_attribute"] } )
  • Defines the Tool object including name, description, and input schema for validating arguments to dynamodb_update_ttl.
    Tool( name="dynamodb_update_ttl", description="Update the TTL settings for a table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "ttl_enabled": { "type": "boolean", "description": "Whether TTL should be enabled" }, "ttl_attribute": { "type": "string", "description": "The attribute name to use for TTL" } }, "required": ["table_name", "ttl_enabled", "ttl_attribute"] } ),
  • Registers the list_tools handler which returns all AWS tools including dynamodb_update_ttl via get_aws_tools().
    async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()
  • Dispatches calls to dynamodb_* tools, including dynamodb_update_ttl, to the handle_dynamodb_operations function.
    return await handle_s3_operations(aws, name, arguments) elif name.startswith("dynamodb_"): return await handle_dynamodb_operations(aws, name, arguments)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rishikavikondala/mcp-server-aws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server