{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-create-db-parameter-group-input-schema.json",
  "title": "CreateDbParameterGroupInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-parameter-group-api-openapi.yml#/components/schemas/CreateDbParameterGroupInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the DB parameter group. The name must be unique per customer and per region."
    },
    "description": {
      "type": "string",
      "description": "A description of the DB parameter group."
    },
    "parameters": {
      "$ref": "#/$defs/Parameters"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of key-value pairs to associate with the DB parameter group."
    }
  },
  "required": [
    "name"
  ],
  "$defs": {
    "Duration": {
      "type": "object",
      "properties": {
        "durationType": {
          "type": "string",
          "enum": [
            "hours",
            "minutes",
            "seconds",
            "milliseconds",
            "days"
          ],
          "description": "The type of duration for InfluxDB parameters."
        },
        "value": {
          "type": "integer",
          "description": "The value of duration for InfluxDB parameters."
        }
      },
      "required": [
        "durationType",
        "value"
      ]
    },
    "InfluxDBv2Parameters": {
      "type": "object",
      "properties": {
        "fluxLogEnabled": {
          "type": "boolean",
          "description": "Include option to show detailed logs for Flux queries. Default: false"
        },
        "logLevel": {
          "type": "string",
          "enum": [
            "debug",
            "info",
            "error"
          ],
          "description": "Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified. Default: info"
        },
        "noTasks": {
          "type": "boolean",
          "description": "Disable the task scheduler. If problematic tasks prevent InfluxDB from starting, use this option to start InfluxDB without scheduling or executing tasks. Default: false"
        },
        "queryConcurrency": {
          "type": "integer",
          "description": "Number of queries allowed to execute concurrently. Setting to 0 allows an unlimited number of concurrent queries. Default: 0"
        },
        "queryQueueSize": {
          "type": "integer",
          "description": "Maximum number of queries allowed in execution queue. When queue limit is reached, new queries are rejected. Setting to 0 allows an unlimited number of queries in the queue. Default: 0"
        },
        "tracingType": {
          "type": "string",
          "enum": [
            "log",
            "jaeger",
            "disabled"
          ],
          "description": "Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default."
        },
        "metricsDisabled": {
          "type": "boolean",
          "description": "Disable the HTTP /metrics endpoint which exposes internal InfluxDB metrics. Default: false"
        },
        "httpIdleTimeout": {
          "$ref": "#/$defs/Duration"
        },
        "httpReadHeaderTimeout": {
          "$ref": "#/$defs/Duration"
        },
        "httpReadTimeout": {
          "$ref": "#/$defs/Duration"
        },
        "httpWriteTimeout": {
          "$ref": "#/$defs/Duration"
        },
        "influxqlMaxSelectBuckets": {
          "type": "integer",
          "description": "Maximum number of group by time buckets a SELECT statement can create. 0 allows an unlimited number of buckets. Default: 0"
        },
        "influxqlMaxSelectPoint": {
          "type": "integer",
          "description": "Maximum number of points a SELECT statement can process. 0 allows an unlimited number of points. InfluxDB checks the point count every second (so queries exceeding the maximum aren’t immediately aborted). Default: 0"
        },
        "influxqlMaxSelectSeries": {
          "type": "integer",
          "description": "Maximum number of series a SELECT statement can return. 0 allows an unlimited number of series. Default: 0"
        },
        "pprofDisabled": {
          "type": "boolean",
          "description": "Disable the /debug/pprof HTTP endpoint. This endpoint provides runtime profiling data and can be helpful when debugging. Default: true"
        },
        "queryInitialMemoryBytes": {
          "type": "integer",
          "description": "Initial bytes of memory allocated for a query. Default: 0"
        },
        "queryMaxMemoryBytes": {
          "type": "integer",
          "description": "Maximum total bytes of memory allowed for all running queries. When this limit is reached, new queries are rejected. Setting to 0 allows unlimited memory usage. Default: 0"
        },
        "queryMemoryBytes": {
          "type": "integer",
          "description": "Maximum bytes of memory allowed for a single query. Must be greater or equal to queryInitialMemoryBytes. Default: 0"
        },
        "sessionLength": {
          "type": "integer",
          "description": "Specifies the Time to Live (TTL) in minutes for newly created user sessions. Default: 60"
        },
        "sessionRenewDisabled": {
          "type": "boolean",
          "description": "Disables automatically extending a user’s session TTL on each request. By default, every request sets the session’s expiration time to five minutes from now. When disabled, sessions expire after the specified session length and the user is redirected to the login page, even if recently active. Default: false"
        },
        "storageCacheMaxMemorySize": {
          "type": "integer",
          "description": "Maximum size (in bytes) a shard’s cache can reach before it starts rejecting writes. Must be greater than storageCacheSnapShotMemorySize and lower than instance’s total memory capacity. We recommend setting it to below 15% of the total memory capacity. Default: 1073741824"
        },
        "storageCacheSnapshotMemorySize": {
          "type": "integer",
          "description": "Size (in bytes) at which the storage engine will snapshot the cache and write it to a TSM file to make more memory available. Must not be greater than storageCacheMaxMemorySize. Default: 26214400"
        },
        "storageCacheSnapshotWriteColdDuration": {
          "$ref": "#/$defs/Duration"
        },
        "storageCompactFullWriteColdDuration": {
          "$ref": "#/$defs/Duration"
        },
        "storageCompactThroughputBurst": {
          "type": "integer",
          "description": "Rate limit (in bytes per second) that TSM compactions can write to disk. Default: 50331648"
        },
        "storageMaxConcurrentCompactions": {
          "type": "integer",
          "description": "Maximum number of full and level compactions that can run concurrently. A value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater than zero limits compactions to that value. This setting does not apply to cache snapshotting. Default: 0"
        },
        "storageMaxIndexLogFileSize": {
          "type": "integer",
          "description": "Size (in bytes) at which an index write-ahead log (WAL) file will compact into an index file. Lower sizes will cause log files to be compacted more quickly and result in lower heap usage at the expense of write throughput. Default: 1048576"
        },
        "storageNoValidateFieldSize": {
          "type": "boolean",
          "description": "Skip field size validation on incoming write requests. Default: false"
        },
        "storageRetentionCheckInterval": {
          "$ref": "#/$defs/Duration"
        },
        "storageSeriesFileMaxConcurrentSnapshotCompactions": {
          "type": "integer",
          "description": "Maximum number of snapshot compactions that can run concurrently across all series partitions in a database. Default: 0"
        },
        "storageSeriesIdSetCacheSize": {
          "type": "integer",
          "description": "Size of the internal cache used in the TSI index to store previously calculated series results. Cached results are returned quickly rather than needing to be recalculated when a subsequent query with the same tag key/value predicate is executed. Setting this value to 0 will disable the cache and may decrease query performance. Default: 100"
        },
        "storageWalMaxConcurrentWrites": {
          "type": "integer",
          "description": "Maximum number writes to the WAL directory to attempt at the same time. Setting this value to 0 results in number of processing units available x2. Default: 0"
        },
        "storageWalMaxWriteDelay": {
          "$ref": "#/$defs/Duration"
        },
        "uiDisabled": {
          "type": "boolean",
          "description": "Disable the InfluxDB user interface (UI). The UI is enabled by default. Default: false"
        }
      }
    },
    "InfluxDBv3CoreParameters": {
      "type": "object",
      "properties": {
        "queryFileLimit": {
          "type": "integer",
          "description": "Limits the number of Parquet files a query can access. If a query attempts to read more than this limit, InfluxDB 3 returns an error. Default: 432"
        },
        "queryLogSize": {
          "type": "integer",
          "description": "Defines the size of the query log. Up to this many queries remain in the log before older queries are evicted to make room for new ones. Default: 1000"
        },
        "logFilter": {
          "type": "string",
          "description": "Sets the filter directive for logs."
        },
        "logFormat": {
          "type": "string",
          "enum": [
            "full"
          ],
          "description": "Defines the message format for logs. Default: full"
        },
        "dataFusionNumThreads": {
          "type": "integer",
          "description": "Sets the maximum number of DataFusion runtime threads to use."
        },
        "dataFusionRuntimeType": {
          "type": "string",
          "enum": [
            "multi-thread",
            "multi-thread-alt"
          ],
          "description": "Specifies the DataFusion tokio runtime type. Default: multi-thread"
        },
        "dataFusionRuntimeDisableLifoSlot": {
          "type": "boolean",
          "description": "Disables the LIFO slot of the DataFusion runtime."
        },
        "dataFusionRuntimeEventInterval": {
          "type": "integer",
          "description": "Sets the number of scheduler ticks after which the scheduler of the DataFusion tokio runtime polls for external events–for example: timers, I/O."
        },
        "dataFusionRuntimeGlobalQueueInterval": {
          "type": "integer",
          "description": "Sets the number of scheduler ticks after which the scheduler of the DataFusion runtime polls the global task queue."
        },
        "dataFusionRuntimeMaxBlockingThreads": {
          "type": "integer",
          "description": "Specifies the limit for additional threads spawned by the DataFusion runtime."
        },
        "dataFusionRuntimeMaxIoEventsPerTick": {
          "type": "integer",
          "description": "Configures the maximum number of events processed per tick by the tokio DataFusion runtime."
        },
        "dataFusionRuntimeThreadKeepAlive": {
          "$ref": "#/$defs/Duration"
        },
        "dataFusionRuntimeThreadPriority": {
          "type": "integer",
          "description": "Sets the thread priority for tokio DataFusion runtime workers. Default: 10"
        },
        "dataFusionMaxParquetFanout": {
          "type": "integer",
          "description": "When multiple parquet files are required in a sorted way (deduplication for example), specifies the maximum fanout. Default: 1000"
        },
        "dataFusionUseCachedParquetLoader": {
          "type": "boolean",
          "description": "Uses a cached parquet loader when reading parquet files from the object store."
        },
        "dataFusionConfig": {
          "type": "string",
          "description": "Provides custom configuration to DataFusion as a comma-separated list of key:value pairs."
        },
        "maxHttpRequestSize": {
          "type": "integer",
          "description": "Specifies the maximum size of HTTP requests. Default: 10485760"
        },
        "forceSnapshotMemThreshold": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "walSnapshotSize": {
          "type": "integer",
          "description": "Defines the number of WAL files to attempt to remove in a snapshot. This, multiplied by the interval, determines how often snapshots are taken. Default: 600"
        },
        "walMaxWriteBufferSize": {
          "type": "integer",
          "description": "Specifies the maximum number of write requests that can be buffered before a flush must be executed and succeed. Default: 100000"
        },
        "snapshottedWalFilesToKeep": {
          "type": "integer",
          "description": "Specifies the number of snapshotted WAL files to retain in the object store. Flushing the WAL files does not clear the WAL files immediately; they are deleted when the number of snapshotted WAL files exceeds this number. Default: 300"
        },
        "preemptiveCacheAge": {
          "$ref": "#/$defs/Duration"
        },
        "parquetMemCachePrunePercentage": {
          "type": "number",
          "description": "Specifies the percentage of entries to prune during a prune operation on the in-memory Parquet cache. Default: 0.1"
        },
        "parquetMemCachePruneInterval": {
          "$ref": "#/$defs/Duration"
        },
        "disableParquetMemCache": {
          "type": "boolean",
          "description": "Disables the in-memory Parquet cache. By default, the cache is enabled."
        },
        "parquetMemCacheQueryPathDuration": {
          "$ref": "#/$defs/Duration"
        },
        "lastCacheEvictionInterval": {
          "$ref": "#/$defs/Duration"
        },
        "distinctCacheEvictionInterval": {
          "$ref": "#/$defs/Duration"
        },
        "gen1Duration": {
          "$ref": "#/$defs/Duration"
        },
        "execMemPoolBytes": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "parquetMemCacheSize": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "walReplayFailOnError": {
          "type": "boolean",
          "description": "Determines whether WAL replay should fail when encountering errors. Default: false"
        },
        "walReplayConcurrencyLimit": {
          "type": "integer",
          "description": "Concurrency limit during WAL replay. Setting this number too high can lead to OOM. The default is dynamically determined. Default: max(num_cpus, 10)"
        },
        "tableIndexCacheMaxEntries": {
          "type": "integer",
          "description": "Specifies the maximum number of entries in the table index cache. Default: 1000"
        },
        "tableIndexCacheConcurrencyLimit": {
          "type": "integer",
          "description": "Limits the concurrency level for table index cache operations. Default: 8"
        },
        "gen1LookbackDuration": {
          "$ref": "#/$defs/Duration"
        },
        "retentionCheckInterval": {
          "$ref": "#/$defs/Duration"
        },
        "deleteGracePeriod": {
          "$ref": "#/$defs/Duration"
        },
        "hardDeleteDefaultDuration": {
          "$ref": "#/$defs/Duration"
        },
        "pluginRepositoryUrl": {
          "type": "string",
          "description": "Specifies the URL of the repository that InfluxDB downloads plugins from."
        },
        "pluginRepositorySecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Secrets Manager secret that holds your repository access token."
        }
      }
    },
    "InfluxDBv3EnterpriseParameters": {
      "type": "object",
      "properties": {
        "queryFileLimit": {
          "type": "integer",
          "description": "Limits the number of Parquet files a query can access. If a query attempts to read more than this limit, InfluxDB 3 returns an error. Default: 432"
        },
        "queryLogSize": {
          "type": "integer",
          "description": "Defines the size of the query log. Up to this many queries remain in the log before older queries are evicted to make room for new ones. Default: 1000"
        },
        "logFilter": {
          "type": "string",
          "description": "Sets the filter directive for logs."
        },
        "logFormat": {
          "type": "string",
          "enum": [
            "full"
          ],
          "description": "Defines the message format for logs. Default: full"
        },
        "dataFusionNumThreads": {
          "type": "integer",
          "description": "Sets the maximum number of DataFusion runtime threads to use."
        },
        "dataFusionRuntimeType": {
          "type": "string",
          "enum": [
            "multi-thread",
            "multi-thread-alt"
          ],
          "description": "Specifies the DataFusion tokio runtime type. Default: multi-thread"
        },
        "dataFusionRuntimeDisableLifoSlot": {
          "type": "boolean",
          "description": "Disables the LIFO slot of the DataFusion runtime."
        },
        "dataFusionRuntimeEventInterval": {
          "type": "integer",
          "description": "Sets the number of scheduler ticks after which the scheduler of the DataFusion tokio runtime polls for external events–for example: timers, I/O."
        },
        "dataFusionRuntimeGlobalQueueInterval": {
          "type": "integer",
          "description": "Sets the number of scheduler ticks after which the scheduler of the DataFusion runtime polls the global task queue."
        },
        "dataFusionRuntimeMaxBlockingThreads": {
          "type": "integer",
          "description": "Specifies the limit for additional threads spawned by the DataFusion runtime."
        },
        "dataFusionRuntimeMaxIoEventsPerTick": {
          "type": "integer",
          "description": "Configures the maximum number of events processed per tick by the tokio DataFusion runtime."
        },
        "dataFusionRuntimeThreadKeepAlive": {
          "$ref": "#/$defs/Duration"
        },
        "dataFusionRuntimeThreadPriority": {
          "type": "integer",
          "description": "Sets the thread priority for tokio DataFusion runtime workers. Default: 10"
        },
        "dataFusionMaxParquetFanout": {
          "type": "integer",
          "description": "When multiple parquet files are required in a sorted way (deduplication for example), specifies the maximum fanout. Default: 1000"
        },
        "dataFusionUseCachedParquetLoader": {
          "type": "boolean",
          "description": "Uses a cached parquet loader when reading parquet files from the object store."
        },
        "dataFusionConfig": {
          "type": "string",
          "description": "Provides custom configuration to DataFusion as a comma-separated list of key:value pairs."
        },
        "maxHttpRequestSize": {
          "type": "integer",
          "description": "Specifies the maximum size of HTTP requests. Default: 10485760"
        },
        "forceSnapshotMemThreshold": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "walSnapshotSize": {
          "type": "integer",
          "description": "Defines the number of WAL files to attempt to remove in a snapshot. This, multiplied by the interval, determines how often snapshots are taken. Default: 600"
        },
        "walMaxWriteBufferSize": {
          "type": "integer",
          "description": "Specifies the maximum number of write requests that can be buffered before a flush must be executed and succeed. Default: 100000"
        },
        "snapshottedWalFilesToKeep": {
          "type": "integer",
          "description": "Specifies the number of snapshotted WAL files to retain in the object store. Flushing the WAL files does not clear the WAL files immediately; they are deleted when the number of snapshotted WAL files exceeds this number. Default: 300"
        },
        "preemptiveCacheAge": {
          "$ref": "#/$defs/Duration"
        },
        "parquetMemCachePrunePercentage": {
          "type": "number",
          "description": "Specifies the percentage of entries to prune during a prune operation on the in-memory Parquet cache. Default: 0.1"
        },
        "parquetMemCachePruneInterval": {
          "$ref": "#/$defs/Duration"
        },
        "disableParquetMemCache": {
          "type": "boolean",
          "description": "Disables the in-memory Parquet cache. By default, the cache is enabled."
        },
        "parquetMemCacheQueryPathDuration": {
          "$ref": "#/$defs/Duration"
        },
        "lastCacheEvictionInterval": {
          "$ref": "#/$defs/Duration"
        },
        "distinctCacheEvictionInterval": {
          "$ref": "#/$defs/Duration"
        },
        "gen1Duration": {
          "$ref": "#/$defs/Duration"
        },
        "execMemPoolBytes": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "parquetMemCacheSize": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "walReplayFailOnError": {
          "type": "boolean",
          "description": "Determines whether WAL replay should fail when encountering errors. Default: false"
        },
        "walReplayConcurrencyLimit": {
          "type": "integer",
          "description": "Concurrency limit during WAL replay. Setting this number too high can lead to OOM. The default is dynamically determined. Default: max(num_cpus, 10)"
        },
        "tableIndexCacheMaxEntries": {
          "type": "integer",
          "description": "Specifies the maximum number of entries in the table index cache. Default: 1000"
        },
        "tableIndexCacheConcurrencyLimit": {
          "type": "integer",
          "description": "Limits the concurrency level for table index cache operations. Default: 8"
        },
        "gen1LookbackDuration": {
          "$ref": "#/$defs/Duration"
        },
        "retentionCheckInterval": {
          "$ref": "#/$defs/Duration"
        },
        "deleteGracePeriod": {
          "$ref": "#/$defs/Duration"
        },
        "hardDeleteDefaultDuration": {
          "$ref": "#/$defs/Duration"
        },
        "pluginRepositoryUrl": {
          "type": "string",
          "description": "Specifies the URL of the repository that InfluxDB downloads plugins from."
        },
        "pluginRepositorySecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Secrets Manager secret that holds your repository access token."
        },
        "ingestQueryInstances": {
          "type": "integer",
          "description": "Specifies number of instances in the DbCluster which can both ingest and query. Deprecated. Use deploymentConfiguration on CreateDbCluster or UpdateDbCluster to define the cluster topology instead. When you supply a deployment configuration, Timestream for InfluxDB ignores this parameter."
        },
        "queryOnlyInstances": {
          "type": "integer",
          "description": "Specifies number of instances in the DbCluster which can only query. Deprecated. Use deploymentConfiguration on CreateDbCluster or UpdateDbCluster to define the cluster topology instead. When you supply a deployment configuration, Timestream for InfluxDB ignores this parameter."
        },
        "dedicatedCompactor": {
          "type": "boolean",
          "description": "Specifies if the compactor instance should be a standalone instance or not. Deprecated. Use deploymentConfiguration on CreateDbCluster or UpdateDbCluster to define the cluster topology instead. When you supply a deployment configuration, Timestream for InfluxDB ignores this parameter."
        },
        "compactionRowLimit": {
          "type": "integer",
          "description": "Specifies the soft limit for the number of rows per file that the compactor writes. The compactor may write more rows than this limit. Default: 1000000"
        },
        "compactionMaxNumFilesPerPlan": {
          "type": "integer",
          "description": "Sets the maximum number of files included in any compaction plan. Default: 500"
        },
        "compactionGen2Duration": {
          "$ref": "#/$defs/Duration"
        },
        "compactionMultipliers": {
          "type": "string",
          "description": "Specifies a comma-separated list of multiples defining the duration of each level of compaction. The number of elements in the list determines the number of compaction levels. The first element specifies the duration of the first level (gen3); subsequent levels are multiples of the previous level. Default: 3,4,6,5"
        },
        "compactionCleanupWait": {
          "$ref": "#/$defs/Duration"
        },
        "compactionCheckInterval": {
          "$ref": "#/$defs/Duration"
        },
        "lastValueCacheDisableFromHistory": {
          "type": "boolean",
          "description": "Disables populating the last-N-value cache from historical data. If disabled, the cache is still populated with data from the write-ahead log (WAL)."
        },
        "distinctValueCacheDisableFromHistory": {
          "type": "boolean",
          "description": "Disables populating the distinct value cache from historical data. If disabled, the cache is still populated with data from the write-ahead log (WAL)."
        },
        "replicationInterval": {
          "$ref": "#/$defs/Duration"
        },
        "catalogSyncInterval": {
          "$ref": "#/$defs/Duration"
        },
        "upgradePachaTree": {
          "type": "boolean",
          "description": "Specifies whether to migrate the cluster from the Parquet storage engine to PachaTree. This action cannot be reversed. To create a new cluster on Parquet, set this to false."
        },
        "walBufferSize": {
          "type": "integer",
          "description": "The maximum size, in bytes, of the in-memory WAL buffer before a flush is triggered regardless of the flush interval. Increase this value if WAL files are flushed before the interval elapses."
        },
        "snapshotSize": {
          "$ref": "#/$defs/PercentOrAbsoluteLong"
        },
        "snapshotDuration": {
          "$ref": "#/$defs/Duration"
        }
      }
    },
    "Parameters": {
      "type": "object",
      "properties": {
        "InfluxDBv2": {
          "$ref": "#/$defs/InfluxDBv2Parameters"
        },
        "InfluxDBv3Core": {
          "$ref": "#/$defs/InfluxDBv3CoreParameters"
        },
        "InfluxDBv3Enterprise": {
          "$ref": "#/$defs/InfluxDBv3EnterpriseParameters"
        }
      },
      "description": "Exactly one member is set."
    },
    "PercentOrAbsoluteLong": {
      "type": "object",
      "properties": {
        "percent": {
          "type": "string",
          "description": "Percent for InfluxDB parameters."
        },
        "absolute": {
          "type": "integer",
          "description": "Absolute long for InfluxDB parameters."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}