:doc:`TimestreamInfluxDB <../../timestream-influxdb>` / Client / create_db_instance

******************
create_db_instance
******************



.. py:method:: TimestreamInfluxDB.Client.create_db_instance(**kwargs)

  

  Creates a new Timestream for InfluxDB DB instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/timestream-influxdb-2023-01-27/CreateDbInstance>`_  


  **Request Syntax**
  ::

    response = client.create_db_instance(
        name='string',
        username='string',
        password='string',
        organization='string',
        bucket='string',
        dbInstanceType='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',
        vpcSubnetIds=[
            'string',
        ],
        vpcSecurityGroupIds=[
            'string',
        ],
        publiclyAccessible=True|False,
        dbStorageType='InfluxIOIncludedT1'|'InfluxIOIncludedT2'|'InfluxIOIncludedT3',
        allocatedStorage=123,
        dbParameterGroupIdentifier='string',
        deploymentType='SINGLE_AZ'|'WITH_MULTIAZ_STANDBY',
        logDeliveryConfiguration={
            's3Configuration': {
                'bucketName': 'string',
                'enabled': True|False
            }
        },
        tags={
            'string': 'string'
        },
        port=123,
        networkType='IPV4'|'DUAL'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB instance names must be unique per customer and per region.

    

  
  :type username: string
  :param username: 

    The username of the initial admin user created in InfluxDB. Must start with a letter and can't end with a hyphen or contain two consecutive hyphens. For example, my-user1. This username will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon Secrets Manager in your account.

    

  
  :type password: string
  :param password: **[REQUIRED]** 

    The password of the initial admin user created in InfluxDB v2. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Secrets Manager in your account.

    

  
  :type organization: string
  :param organization: 

    The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.

    

  
  :type bucket: string
  :param bucket: 

    The name of the initial InfluxDB bucket. All InfluxDB data is stored in a bucket. A bucket combines the concept of a database and a retention period (the duration of time that each data point persists). A bucket belongs to an organization.

    

  
  :type dbInstanceType: string
  :param dbInstanceType: **[REQUIRED]** 

    The Timestream for InfluxDB DB instance type to run InfluxDB on.

    

  
  :type vpcSubnetIds: list
  :param vpcSubnetIds: **[REQUIRED]** 

    A list of VPC subnet IDs to associate with the DB instance. Provide at least two VPC subnet IDs in different availability zones when deploying with a Multi-AZ standby.

    

  
    - *(string) --* 

    

  :type vpcSecurityGroupIds: list
  :param vpcSecurityGroupIds: **[REQUIRED]** 

    A list of VPC security group IDs to associate with the DB instance.

    

  
    - *(string) --* 

    

  :type publiclyAccessible: boolean
  :param publiclyAccessible: 

    Configures the DB instance with a public IP to facilitate access.

    

  
  :type dbStorageType: string
  :param dbStorageType: 

    The Timestream for InfluxDB DB storage type to read and write InfluxDB data.

     

    You can choose between 3 different types of provisioned Influx IOPS included storage according to your workloads requirements:

     

    
    * Influx IO Included 3000 IOPS
     
    * Influx IO Included 12000 IOPS
     
    * Influx IO Included 16000 IOPS
    

    

  
  :type allocatedStorage: integer
  :param allocatedStorage: **[REQUIRED]** 

    The amount of storage to allocate for your DB storage type in GiB (gibibytes).

    

  
  :type dbParameterGroupIdentifier: string
  :param dbParameterGroupIdentifier: 

    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.

    

  
  :type deploymentType: string
  :param deploymentType: 

    Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.

    

  
  :type logDeliveryConfiguration: dict
  :param logDeliveryConfiguration: 

    Configuration for sending InfluxDB engine logs to a specified S3 bucket.

    

  
    - **s3Configuration** *(dict) --* **[REQUIRED]** 

      Configuration for S3 bucket log delivery.

      

    
      - **bucketName** *(string) --* **[REQUIRED]** 

        The name of the S3 bucket to deliver logs to.

        

      
      - **enabled** *(boolean) --* **[REQUIRED]** 

        Indicates whether log delivery to the S3 bucket is enabled.

        

      
    
  
  :type tags: dict
  :param tags: 

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

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type port: integer
  :param port: 

    The port number on which InfluxDB accepts connections.

     

    Valid Values: 1024-65535

     

    Default: 8086

     

    Constraints: The value can't be 2375-2376, 7788-7799, 8090, or 51678-51680

    

  
  :type networkType: string
  :param networkType: 

    Specifies whether the networkType of the Timestream for InfluxDB instance is IPV4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'arn': 'string',
          'status': 'CREATING'|'AVAILABLE'|'DELETING'|'MODIFYING'|'UPDATING'|'DELETED'|'FAILED'|'UPDATING_DEPLOYMENT_TYPE'|'UPDATING_INSTANCE_TYPE'|'MAINTENANCE'|'REBOOTING'|'REBOOT_FAILED',
          'endpoint': 'string',
          'port': 123,
          'networkType': 'IPV4'|'DUAL',
          'dbInstanceType': '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',
          'dbStorageType': 'InfluxIOIncludedT1'|'InfluxIOIncludedT2'|'InfluxIOIncludedT3',
          'allocatedStorage': 123,
          'deploymentType': 'SINGLE_AZ'|'WITH_MULTIAZ_STANDBY',
          'vpcSubnetIds': [
              'string',
          ],
          'publiclyAccessible': True|False,
          'vpcSecurityGroupIds': [
              'string',
          ],
          'dbParameterGroupIdentifier': 'string',
          'availabilityZone': 'string',
          'secondaryAvailabilityZone': 'string',
          'logDeliveryConfiguration': {
              's3Configuration': {
                  'bucketName': 'string',
                  'enabled': True|False
              }
          },
          'influxAuthParametersSecretArn': 'string',
          'dbClusterId': 'string',
          'instanceMode': 'PRIMARY'|'STANDBY'|'REPLICA'|'INGEST'|'QUERY'|'COMPACT'|'PROCESS',
          'instanceModes': [
              'PRIMARY'|'STANDBY'|'REPLICA'|'INGEST'|'QUERY'|'COMPACT'|'PROCESS',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        A service-generated unique identifier.

        
      

      - **name** *(string) --* 

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

        
      

      - **arn** *(string) --* 

        The Amazon Resource Name (ARN) of the DB instance.

        
      

      - **status** *(string) --* 

        The status of the DB instance.

        
      

      - **endpoint** *(string) --* 

        The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.

        
      

      - **port** *(integer) --* 

        The port number on which InfluxDB accepts connections. The default value is 8086.

        
      

      - **networkType** *(string) --* 

        Specifies whether the networkType of the Timestream for InfluxDB instance is IPV4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols.

        
      

      - **dbInstanceType** *(string) --* 

        The Timestream for InfluxDB instance type that InfluxDB runs on.

        
      

      - **dbStorageType** *(string) --* 

        The Timestream for InfluxDB DB storage type that InfluxDB stores data on.

        
      

      - **allocatedStorage** *(integer) --* 

        The amount of storage allocated for your DB storage type (in gibibytes).

        
      

      - **deploymentType** *(string) --* 

        Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.

        
      

      - **vpcSubnetIds** *(list) --* 

        A list of VPC subnet IDs associated with the DB instance.

        
        

        - *(string) --* 
    
      

      - **publiclyAccessible** *(boolean) --* 

        Indicates if the DB instance has a public IP to facilitate access.

        
      

      - **vpcSecurityGroupIds** *(list) --* 

        A list of VPC security group IDs associated with the DB instance.

        
        

        - *(string) --* 
    
      

      - **dbParameterGroupIdentifier** *(string) --* 

        The id of the DB parameter group assigned to your DB instance.

        
      

      - **availabilityZone** *(string) --* 

        The Availability Zone in which the DB instance resides.

        
      

      - **secondaryAvailabilityZone** *(string) --* 

        The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.

        
      

      - **logDeliveryConfiguration** *(dict) --* 

        Configuration for sending InfluxDB engine logs to send to specified S3 bucket.

        
        

        - **s3Configuration** *(dict) --* 

          Configuration for S3 bucket log delivery.

          
          

          - **bucketName** *(string) --* 

            The name of the S3 bucket to deliver logs to.

            
          

          - **enabled** *(boolean) --* 

            Indicates whether log delivery to the S3 bucket is enabled.

            
      
    
      

      - **influxAuthParametersSecretArn** *(string) --* 

        The Amazon Resource Name (ARN) of the Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password.

        
      

      - **dbClusterId** *(string) --* 

        Specifies the DbCluster to which this DbInstance belongs to.

        
      

      - **instanceMode** *(string) --* 

        Specifies the DbInstance's role in the cluster.

        
      

      - **instanceModes** *(list) --* 

        Specifies the DbInstance's roles in the cluster.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.ValidationException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.InternalServerException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.ConflictException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`TimestreamInfluxDB.Client.exceptions.ThrottlingException`

  