{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-put-table-bucket-maintenance-configuration-request-schema.json",
  "title": "PutTableBucketMaintenanceConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-maintenance-api-openapi.yml#/components/schemas/PutTableBucketMaintenanceConfigurationRequest",
  "type": "object",
  "properties": {
    "tableBucketARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the table bucket associated with the maintenance configuration."
    },
    "type": {
      "type": "string",
      "enum": [
        "icebergUnreferencedFileRemoval"
      ],
      "description": "The type of the maintenance configuration."
    },
    "value": {
      "$ref": "#/$defs/TableBucketMaintenanceConfigurationValue"
    }
  },
  "required": [
    "tableBucketARN",
    "type",
    "value"
  ],
  "$defs": {
    "IcebergUnreferencedFileRemovalSettings": {
      "type": "object",
      "properties": {
        "unreferencedDays": {
          "type": "integer",
          "description": "The number of days an object has to be unreferenced before it is marked as non-current."
        },
        "nonCurrentDays": {
          "type": "integer",
          "description": "The number of days an object has to be non-current before it is deleted."
        }
      }
    },
    "TableBucketMaintenanceConfigurationValue": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ],
          "description": "The status of the maintenance configuration."
        },
        "settings": {
          "$ref": "#/$defs/TableBucketMaintenanceSettings"
        }
      }
    },
    "TableBucketMaintenanceSettings": {
      "type": "object",
      "properties": {
        "icebergUnreferencedFileRemoval": {
          "$ref": "#/$defs/IcebergUnreferencedFileRemovalSettings"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}