TimestreamInfluxDB / Client / create_db_parameter_group

create_db_parameter_group#

TimestreamInfluxDB.Client.create_db_parameter_group(**kwargs)#

Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.

See also: AWS API Documentation

Request Syntax

response = client.create_db_parameter_group(
    name='string',
    description='string',
    parameters={
        'InfluxDBv2': {
            'fluxLogEnabled': True|False,
            'logLevel': 'debug'|'info'|'error',
            'noTasks': True|False,
            'queryConcurrency': 123,
            'queryQueueSize': 123,
            'tracingType': 'log'|'jaeger',
            'metricsDisabled': True|False,
            'httpIdleTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpReadHeaderTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpReadTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpWriteTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'influxqlMaxSelectBuckets': 123,
            'influxqlMaxSelectPoint': 123,
            'influxqlMaxSelectSeries': 123,
            'pprofDisabled': True|False,
            'queryInitialMemoryBytes': 123,
            'queryMaxMemoryBytes': 123,
            'queryMemoryBytes': 123,
            'sessionLength': 123,
            'sessionRenewDisabled': True|False,
            'storageCacheMaxMemorySize': 123,
            'storageCacheSnapshotMemorySize': 123,
            'storageCacheSnapshotWriteColdDuration': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageCompactFullWriteColdDuration': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageCompactThroughputBurst': 123,
            'storageMaxConcurrentCompactions': 123,
            'storageMaxIndexLogFileSize': 123,
            'storageNoValidateFieldSize': True|False,
            'storageRetentionCheckInterval': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageSeriesFileMaxConcurrentSnapshotCompactions': 123,
            'storageSeriesIdSetCacheSize': 123,
            'storageWalMaxConcurrentWrites': 123,
            'storageWalMaxWriteDelay': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'uiDisabled': True|False
        }
    },
    tags={
        'string': 'string'
    }
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the DB parameter group. The name must be unique per customer and per region.

  • description (string) – A description of the DB parameter group.

  • parameters (dict) –

    A list of the parameters that comprise the DB parameter group.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: InfluxDBv2.

    • InfluxDBv2 (dict) –

      All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

      • fluxLogEnabled (boolean) –

        Include option to show detailed logs for Flux queries.

        Default: false

      • logLevel (string) –

        Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified.

        Default: info

      • noTasks (boolean) –

        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 (integer) –

        Number of queries allowed to execute concurrently. Setting to 0 allows an unlimited number of concurrent queries.

        Default: 0

      • queryQueueSize (integer) –

        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 (string) –

        Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default.

      • metricsDisabled (boolean) –

        Disable the HTTP /metrics endpoint which exposes internal InfluxDB metrics.

        Default: false

      • httpIdleTimeout (dict) –

        Maximum duration the server should keep established connections alive while waiting for new requests. Set to 0 for no timeout.

        Default: 3 minutes

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • httpReadHeaderTimeout (dict) –

        Maximum duration the server should try to read HTTP headers for new requests. Set to 0 for no timeout.

        Default: 10 seconds

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • httpReadTimeout (dict) –

        Maximum duration the server should try to read the entirety of new requests. Set to 0 for no timeout.

        Default: 0

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • httpWriteTimeout (dict) –

        Maximum duration the server should spend processing and responding to write requests. Set to 0 for no timeout.

        Default: 0

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • influxqlMaxSelectBuckets (integer) –

        Maximum number of group by time buckets a SELECT statement can create. 0 allows an unlimited number of buckets.

        Default: 0

      • influxqlMaxSelectPoint (integer) –

        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 (integer) –

        Maximum number of series a SELECT statement can return. 0 allows an unlimited number of series.

        Default: 0

      • pprofDisabled (boolean) –

        Disable the /debug/pprof HTTP endpoint. This endpoint provides runtime profiling data and can be helpful when debugging.

        Default: false

      • queryInitialMemoryBytes (integer) –

        Initial bytes of memory allocated for a query.

        Default: 0

      • queryMaxMemoryBytes (integer) –

        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

      • queryMemoryBytes (integer) –

        Maximum bytes of memory allowed for a single query. Must be greater or equal to queryInitialMemoryBytes.

        Default: 0

      • sessionLength (integer) –

        Specifies the Time to Live (TTL) in minutes for newly created user sessions.

        Default: 60

      • sessionRenewDisabled (boolean) –

        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 (integer) –

        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 (integer) –

        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 (dict) –

        Duration at which the storage engine will snapshot the cache and write it to a new TSM file if the shard hasn’t received writes or deletes.

        Default: 10 minutes

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • storageCompactFullWriteColdDuration (dict) –

        Duration at which the storage engine will compact all TSM files in a shard if it hasn’t received writes or deletes.

        Default: 4 hours

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • storageCompactThroughputBurst (integer) –

        Rate limit (in bytes per second) that TSM compactions can write to disk.

        Default: 50331648

      • storageMaxConcurrentCompactions (integer) –

        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 (integer) –

        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 (boolean) –

        Skip field size validation on incoming write requests.

        Default: false

      • storageRetentionCheckInterval (dict) –

        Interval of retention policy enforcement checks. Must be greater than 0.

        Default: 30 minutes

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • storageSeriesFileMaxConcurrentSnapshotCompactions (integer) –

        Maximum number of snapshot compactions that can run concurrently across all series partitions in a database.

        Default: 0

      • storageSeriesIdSetCacheSize (integer) –

        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 (integer) –

        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 (dict) –

        Maximum amount of time a write request to the WAL directory will wait when the maximum number of concurrent active writes to the WAL directory has been met. Set to 0 to disable the timeout.

        Default: 10 minutes

        • durationType (string) – [REQUIRED]

          The type of duration for InfluxDB parameters.

        • value (integer) – [REQUIRED]

          The value of duration for InfluxDB parameters.

      • uiDisabled (boolean) –

        Disable the InfluxDB user interface (UI). The UI is enabled by default.

        Default: false

  • tags (dict) –

    A list of key-value pairs to associate with the DB parameter group.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'name': 'string',
    'arn': 'string',
    'description': 'string',
    'parameters': {
        'InfluxDBv2': {
            'fluxLogEnabled': True|False,
            'logLevel': 'debug'|'info'|'error',
            'noTasks': True|False,
            'queryConcurrency': 123,
            'queryQueueSize': 123,
            'tracingType': 'log'|'jaeger',
            'metricsDisabled': True|False,
            'httpIdleTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpReadHeaderTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpReadTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'httpWriteTimeout': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'influxqlMaxSelectBuckets': 123,
            'influxqlMaxSelectPoint': 123,
            'influxqlMaxSelectSeries': 123,
            'pprofDisabled': True|False,
            'queryInitialMemoryBytes': 123,
            'queryMaxMemoryBytes': 123,
            'queryMemoryBytes': 123,
            'sessionLength': 123,
            'sessionRenewDisabled': True|False,
            'storageCacheMaxMemorySize': 123,
            'storageCacheSnapshotMemorySize': 123,
            'storageCacheSnapshotWriteColdDuration': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageCompactFullWriteColdDuration': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageCompactThroughputBurst': 123,
            'storageMaxConcurrentCompactions': 123,
            'storageMaxIndexLogFileSize': 123,
            'storageNoValidateFieldSize': True|False,
            'storageRetentionCheckInterval': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'storageSeriesFileMaxConcurrentSnapshotCompactions': 123,
            'storageSeriesIdSetCacheSize': 123,
            'storageWalMaxConcurrentWrites': 123,
            'storageWalMaxWriteDelay': {
                'durationType': 'hours'|'minutes'|'seconds'|'milliseconds',
                'value': 123
            },
            'uiDisabled': True|False
        }
    }
}

Response Structure

  • (dict) –

    • id (string) –

      A service-generated unique identifier.

    • name (string) –

      The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.

    • arn (string) –

      The Amazon Resource Name (ARM) of the DB parameter group.

    • description (string) –

      The description of the DB parameter group.

    • parameters (dict) –

      A list of the parameters that comprise the DB parameter group.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: InfluxDBv2. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • InfluxDBv2 (dict) –

        All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB.

        • fluxLogEnabled (boolean) –

          Include option to show detailed logs for Flux queries.

          Default: false

        • logLevel (string) –

          Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified.

          Default: info

        • noTasks (boolean) –

          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 (integer) –

          Number of queries allowed to execute concurrently. Setting to 0 allows an unlimited number of concurrent queries.

          Default: 0

        • queryQueueSize (integer) –

          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 (string) –

          Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default.

        • metricsDisabled (boolean) –

          Disable the HTTP /metrics endpoint which exposes internal InfluxDB metrics.

          Default: false

        • httpIdleTimeout (dict) –

          Maximum duration the server should keep established connections alive while waiting for new requests. Set to 0 for no timeout.

          Default: 3 minutes

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • httpReadHeaderTimeout (dict) –

          Maximum duration the server should try to read HTTP headers for new requests. Set to 0 for no timeout.

          Default: 10 seconds

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • httpReadTimeout (dict) –

          Maximum duration the server should try to read the entirety of new requests. Set to 0 for no timeout.

          Default: 0

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • httpWriteTimeout (dict) –

          Maximum duration the server should spend processing and responding to write requests. Set to 0 for no timeout.

          Default: 0

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • influxqlMaxSelectBuckets (integer) –

          Maximum number of group by time buckets a SELECT statement can create. 0 allows an unlimited number of buckets.

          Default: 0

        • influxqlMaxSelectPoint (integer) –

          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 (integer) –

          Maximum number of series a SELECT statement can return. 0 allows an unlimited number of series.

          Default: 0

        • pprofDisabled (boolean) –

          Disable the /debug/pprof HTTP endpoint. This endpoint provides runtime profiling data and can be helpful when debugging.

          Default: false

        • queryInitialMemoryBytes (integer) –

          Initial bytes of memory allocated for a query.

          Default: 0

        • queryMaxMemoryBytes (integer) –

          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

        • queryMemoryBytes (integer) –

          Maximum bytes of memory allowed for a single query. Must be greater or equal to queryInitialMemoryBytes.

          Default: 0

        • sessionLength (integer) –

          Specifies the Time to Live (TTL) in minutes for newly created user sessions.

          Default: 60

        • sessionRenewDisabled (boolean) –

          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 (integer) –

          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 (integer) –

          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 (dict) –

          Duration at which the storage engine will snapshot the cache and write it to a new TSM file if the shard hasn’t received writes or deletes.

          Default: 10 minutes

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • storageCompactFullWriteColdDuration (dict) –

          Duration at which the storage engine will compact all TSM files in a shard if it hasn’t received writes or deletes.

          Default: 4 hours

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • storageCompactThroughputBurst (integer) –

          Rate limit (in bytes per second) that TSM compactions can write to disk.

          Default: 50331648

        • storageMaxConcurrentCompactions (integer) –

          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 (integer) –

          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 (boolean) –

          Skip field size validation on incoming write requests.

          Default: false

        • storageRetentionCheckInterval (dict) –

          Interval of retention policy enforcement checks. Must be greater than 0.

          Default: 30 minutes

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • storageSeriesFileMaxConcurrentSnapshotCompactions (integer) –

          Maximum number of snapshot compactions that can run concurrently across all series partitions in a database.

          Default: 0

        • storageSeriesIdSetCacheSize (integer) –

          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 (integer) –

          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 (dict) –

          Maximum amount of time a write request to the WAL directory will wait when the maximum number of concurrent active writes to the WAL directory has been met. Set to 0 to disable the timeout.

          Default: 10 minutes

          • durationType (string) –

            The type of duration for InfluxDB parameters.

          • value (integer) –

            The value of duration for InfluxDB parameters.

        • uiDisabled (boolean) –

          Disable the InfluxDB user interface (UI). The UI is enabled by default.

          Default: false

Exceptions