create_db_cluster
¶
create_db_cluster(
name: DbClusterName,
db_instance_type: DbInstanceType,
vpc_subnet_ids: VpcSubnetIdList,
vpc_security_group_ids: VpcSecurityGroupIdList,
*,
config_overrides: Optional[TimestreamInfluxDBClientConfig] = None,
username: Optional[Username] = None,
password: Optional[Password] = None,
organization: Optional[Organization] = None,
bucket: Optional[Bucket] = None,
port: Optional[Port] = None,
db_parameter_group_identifier: Optional[DbParameterGroupIdentifier] = None,
db_storage_type: Optional[DbStorageType] = None,
allocated_storage: Optional[AllocatedStorage] = None,
network_type: Optional[NetworkType] = None,
publicly_accessible: Optional[bool] = None,
deployment_type: Optional[ClusterDeploymentType] = None,
failover_mode: Optional[FailoverMode] = None,
log_delivery_configuration: Optional[LogDeliveryConfiguration] = None,
maintenance_schedule: Optional[MaintenanceSchedule] = None,
db_backup_configurations: Optional[DbBackupConfigurationInputList] = None,
kms_key_id: Optional[KmsKeyId] = None,
tags: Optional[RequestTagMap] = None,
) -> CreateDbClusterOutput
Creates a new Timestream for InfluxDB cluster.
Parameters:
-
name(DbClusterName) –The name that uniquely identifies the DB cluster when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB cluster names must be unique per customer and per region.
-
username(Optional[Username], default:None) –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 Secrets Manager in your account.
-
password(Optional[Password], default:None) –The password of the initial admin user created in InfluxDB. 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.
-
organization(Optional[Organization], default:None) –The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.
-
bucket(Optional[Bucket], default:None) –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.
-
port(Optional[Port], default:None) –The port number on which InfluxDB accepts connections.
Valid Values: 1024-65535
Default: 8086 for InfluxDB v2, 8181 for InfluxDB v3
Constraints: The value can't be 2375-2376, 7788-7799, 8090, or 51678-51680
-
db_parameter_group_identifier(Optional[DbParameterGroupIdentifier], default:None) –The ID of the DB parameter group to assign to your DB cluster. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.
-
db_instance_type(DbInstanceType) –The Timestream for InfluxDB DB instance type to run InfluxDB on.
-
db_storage_type(Optional[DbStorageType], default:None) –The Timestream for InfluxDB DB storage type to read and write InfluxDB data.
You can choose between three different types of provisioned Influx IOPS Included storage according to your workload requirements:
-
Influx I/O Included 3000 IOPS
-
Influx I/O Included 12000 IOPS
-
Influx I/O Included 16000 IOPS
-
-
allocated_storage(Optional[AllocatedStorage], default:None) –The amount of storage to allocate for your DB storage type in GiB (gibibytes).
-
network_type(Optional[NetworkType], default:None) –Specifies whether the network type of the Timestream for InfluxDB cluster is IPv4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols.
-
publicly_accessible(Optional[bool], default:None) –Configures the Timestream for InfluxDB cluster with a public IP to facilitate access from outside the VPC.
-
vpc_subnet_ids(VpcSubnetIdList) –A list of VPC subnet IDs to associate with the DB cluster. Provide at least two VPC subnet IDs in different Availability Zones when deploying with a Multi-AZ standby.
-
vpc_security_group_ids(VpcSecurityGroupIdList) –A list of VPC security group IDs to associate with the Timestream for InfluxDB cluster.
-
deployment_type(Optional[ClusterDeploymentType], default:None) –Specifies the type of cluster to create.
-
failover_mode(Optional[FailoverMode], default:None) –Specifies the behavior of failure recovery when the primary node of the cluster fails.
-
log_delivery_configuration(Optional[LogDeliveryConfiguration], default:None) –Configuration for sending InfluxDB engine logs to a specified S3 bucket.
-
maintenance_schedule(Optional[MaintenanceSchedule], default:None) –Specifies the maintenance schedule for the DB cluster, including the preferred maintenance window and timezone.
-
db_backup_configurations(Optional[DbBackupConfigurationInputList], default:None) –A list of backup configurations to enable automated backups for the DB cluster.
-
kms_key_id(Optional[KmsKeyId], default:None) –The Amazon Web Services KMS key identifier to use for encryption of the DB cluster. Can be a key ID, key ARN, alias name, or alias ARN.
-
tags(Optional[RequestTagMap], default:None) –A list of key-value pairs to associate with the DB instance.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request conflicts with an existing resource in Timestream for InfluxDB.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The requested resource was not found or does not exist.
-
ServiceQuotaExceededException–The request exceeds the service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by Timestream for InfluxDB.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_timestream_influxdb/_services/timestream_influx_db.py
774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 | |