{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-update-db-instance-input-schema.json",
  "title": "UpdateDbInstanceInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-instance-api-openapi.yml#/components/schemas/UpdateDbInstanceInput",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string",
      "description": "The id of the DB instance."
    },
    "logDeliveryConfiguration": {
      "$ref": "#/$defs/LogDeliveryConfiguration"
    },
    "dbParameterGroupIdentifier": {
      "type": "string",
      "description": "The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency."
    },
    "port": {
      "type": "integer",
      "description": "The port number on which InfluxDB accepts connections. If you change the Port value, your database restarts immediately. Valid Values: 1024-65535 Default: 8086 Constraints: The value can't be 2375-2376, 7788-7799, 8090, or 51678-51680"
    },
    "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": "The Timestream for InfluxDB DB instance type to run InfluxDB on."
    },
    "deploymentType": {
      "type": "string",
      "enum": [
        "SINGLE_AZ",
        "WITH_MULTIAZ_STANDBY"
      ],
      "description": "Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability."
    },
    "dbStorageType": {
      "type": "string",
      "enum": [
        "InfluxIOIncludedT1",
        "InfluxIOIncludedT2",
        "InfluxIOIncludedT3"
      ],
      "description": "The Timestream for InfluxDB DB storage type that InfluxDB stores data on."
    },
    "allocatedStorage": {
      "type": "integer",
      "description": "The amount of storage to allocate for your DB storage type (in gibibytes)."
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/MaintenanceSchedule"
    },
    "dbBackupConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DbBackupConfiguration"
      },
      "description": "A list of backup configurations to update for the DB instance."
    }
  },
  "required": [
    "identifier"
  ],
  "$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"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    }
  }
}