{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dynamodb/json-schema/amazon-dynamodb-update-time-to-live-input-schema.json",
  "title": "UpdateTimeToLiveInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dynamodb-ttl-api-openapi.yml#/components/schemas/UpdateTimeToLiveInput",
  "type": "object",
  "properties": {
    "TableName": {
      "type": "string",
      "description": "The name of the table to be configured. You can also provide the Amazon Resource Name (ARN) of the table in this parameter."
    },
    "TimeToLiveSpecification": {
      "$ref": "#/$defs/TimeToLiveSpecification"
    }
  },
  "required": [
    "TableName",
    "TimeToLiveSpecification"
  ],
  "$defs": {
    "TimeToLiveSpecification": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether TTL is to be enabled (true) or disabled (false) on the table."
        },
        "AttributeName": {
          "type": "string",
          "description": "The name of the TTL attribute used to store the expiration time for items in the table."
        }
      },
      "required": [
        "Enabled",
        "AttributeName"
      ]
    }
  }
}