{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-update-db-cluster-input-schema.json",
  "title": "UpdateDbClusterInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-cluster-api-openapi.yml#/components/schemas/UpdateDbClusterInput",
  "type": "object",
  "properties": {
    "dbClusterId": {
      "type": "string",
      "description": "Service-generated unique identifier of the DB cluster to update."
    },
    "logDeliveryConfiguration": {
      "$ref": "#/$defs/LogDeliveryConfiguration"
    },
    "dbParameterGroupIdentifier": {
      "type": "string",
      "description": "Update the DB cluster to use the specified DB parameter group."
    },
    "port": {
      "type": "integer",
      "description": "Update the DB cluster to use the specified port."
    },
    "dbInstanceType": {
      "type": "string",
      "enum": [
        "db.influx.medium",
        "db.influx.large",
        "db.influx.xlarge",
        "db.influx.2xlarge",
        "db.influx.4xlarge",
        "db.influx.8xlarge",
        "db.influx.12xlarge",
        "db.influx.16xlarge",
        "db.influx.24xlarge"
      ],
      "description": "Update the DB cluster to use the specified DB instance Type. You can't specify both dbInstanceType and deploymentConfiguration in the same request. When you use deploymentConfiguration, the instance type is specified per node group."
    },
    "deploymentConfiguration": {
      "$ref": "#/$defs/DeploymentConfiguration"
    },
    "failoverMode": {
      "type": "string",
      "enum": [
        "AUTOMATIC",
        "NO_FAILOVER"
      ],
      "description": "Update the DB cluster's failover behavior."
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/MaintenanceSchedule"
    },
    "dbBackupConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DbBackupConfiguration"
      },
      "description": "A list of backup configurations to update for the DB cluster."
    }
  },
  "required": [
    "dbClusterId"
  ],
  "$defs": {
    "DbBackupConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "HOURLY",
            "DAILY",
            "WEEKLY",
            "MONTHLY",
            "CUSTOM_SCHEDULE",
            "CONTINUOUS"
          ],
          "description": "The type of automated backup schedule. Valid values are HOURLY, DAILY, WEEKLY, MONTHLY, CUSTOM_SCHEDULE, and CONTINUOUS."
        },
        "retentionDays": {
          "type": "integer",
          "description": "The number of days to retain automated backups. Valid values are 1 to 365."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether this backup configuration is enabled."
        },
        "customSchedule": {
          "type": "string",
          "description": "A custom cron schedule expression for the backup. Required when type is CUSTOM_SCHEDULE."
        }
      },
      "required": [
        "type",
        "retentionDays",
        "enabled"
      ]
    },
    "DeploymentConfiguration": {
      "type": "object",
      "properties": {
        "InfluxDBv3Enterprise": {
          "$ref": "#/$defs/InfluxDBv3EnterpriseDeploymentConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "InfluxDBv3EnterpriseDeploymentConfiguration": {
      "type": "object",
      "properties": {
        "nodeGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeGroup"
          },
          "description": "The node groups that make up the cluster. Across all node groups, the cluster must include 1 to 4 nodes with the INGEST mode, 0 to 14 nodes with the QUERY mode, and exactly one node with the COMPACT mode."
        }
      },
      "required": [
        "nodeGroups"
      ]
    },
    "LogDeliveryConfiguration": {
      "type": "object",
      "properties": {
        "s3Configuration": {
          "$ref": "#/$defs/TimestreamInfluxdbS3Configuration"
        }
      },
      "required": [
        "s3Configuration"
      ]
    },
    "MaintenanceSchedule": {
      "type": "object",
      "properties": {
        "timezone": {
          "type": "string",
          "description": "The IANA timezone identifier for the maintenance window. Format: Region/City or UTC. For example, America/New_York or UTC."
        },
        "preferredMaintenanceWindow": {
          "type": "string",
          "description": "The preferred maintenance window in the format ddd:HH:MM-ddd:HH:MM (UTC). Day must be one of: Mon, Tue, Wed, Thu, Fri, Sat, Sun. For example, Sun:02:00-Sun:06:00. Provide an empty string to let the system choose a window."
        }
      },
      "required": [
        "timezone",
        "preferredMaintenanceWindow"
      ]
    },
    "NodeGroup": {
      "type": "object",
      "properties": {
        "instanceModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "PRIMARY",
              "STANDBY",
              "REPLICA",
              "INGEST",
              "QUERY",
              "COMPACT",
              "PROCESS"
            ]
          },
          "description": "The functions that the nodes in this group perform. Provide from 1 to 4 unique modes. Valid modes: INGEST – Nodes in this mode ingest data. Across all node groups, INGEST nodes must total between 1 and 4. QUERY – Nodes in this mode query data. Across all node groups, QUERY nodes must total between 0 and 14. COMPACT – Nodes in this mode compact data. Exactly one node across all node groups must have this mode. If the cluster has more than three non-compaction nodes, place the COMPACT node in its own dedicated node group. PROCESS – Nodes in this mode process data with the processing engine."
        },
        "instanceType": {
          "type": "string",
          "enum": [
            "db.influx.medium",
            "db.influx.large",
            "db.influx.xlarge",
            "db.influx.2xlarge",
            "db.influx.4xlarge",
            "db.influx.8xlarge",
            "db.influx.12xlarge",
            "db.influx.16xlarge",
            "db.influx.24xlarge"
          ],
          "description": "The Timestream for InfluxDB DB instance type to run InfluxDB on for the nodes in this group."
        },
        "count": {
          "type": "integer",
          "description": "The number of nodes in this group. Valid values are 1 to 13."
        }
      },
      "required": [
        "instanceModes",
        "instanceType",
        "count"
      ]
    },
    "TimestreamInfluxdbS3Configuration": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the S3 bucket to deliver logs to."
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether log delivery to the S3 bucket is enabled."
        }
      },
      "required": [
        "bucketName",
        "enabled"
      ]
    }
  }
}