create_db_instance
async
¶
create_db_instance(
name: DbInstanceName,
password: Password,
db_instance_type: DbInstanceType,
vpc_subnet_ids: VpcSubnetIdList,
vpc_security_group_ids: VpcSecurityGroupIdList,
allocated_storage: AllocatedStorage,
*,
config_overrides: Optional[AsyncTimestreamInfluxDBClientConfig] = None,
username: Optional[Username] = None,
organization: Optional[Organization] = None,
bucket: Optional[Bucket] = None,
publicly_accessible: Optional[bool] = None,
db_storage_type: Optional[DbStorageType] = None,
db_parameter_group_identifier: Optional[DbParameterGroupIdentifier] = None,
deployment_type: Optional[DeploymentType] = None,
log_delivery_configuration: Optional[LogDeliveryConfiguration] = None,
maintenance_schedule: Optional[MaintenanceSchedule] = None,
tags: Optional[RequestTagMap] = None,
port: Optional[Port] = None,
network_type: Optional[NetworkType] = None,
db_backup_configurations: Optional[DbBackupConfigurationInputList] = None,
kms_key_id: Optional[KmsKeyId] = None,
) -> CreateDbInstanceOutput
Creates a new Timestream for InfluxDB DB instance.
Parameters:
-
name(DbInstanceName) –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.
-
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 Amazon Secrets Manager in your account.
-
password(Password) –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.
-
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.
-
db_instance_type(DbInstanceType) –The Timestream for InfluxDB DB instance type to run InfluxDB on.
-
vpc_subnet_ids(VpcSubnetIdList) –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.
-
vpc_security_group_ids(VpcSecurityGroupIdList) –A list of VPC security group IDs to associate with the DB instance.
-
publicly_accessible(Optional[bool], default:None) –Configures the DB instance with a public IP to facilitate access.
-
db_storage_type(Optional[DbStorageType], default:None) –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
-
-
allocated_storage(AllocatedStorage) –The amount of storage to allocate for your DB storage type in GiB (gibibytes).
-
db_parameter_group_identifier(Optional[DbParameterGroupIdentifier], default:None) –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.
-
deployment_type(Optional[DeploymentType], default:None) –Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.
-
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 instance, including the preferred maintenance window and timezone.
-
tags(Optional[RequestTagMap], default:None) –A list of key-value pairs to associate with the DB instance.
-
port(Optional[Port], default:None) –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
-
network_type(Optional[NetworkType], default:None) –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.
-
db_backup_configurations(Optional[DbBackupConfigurationInputList], default:None) –A list of backup configurations to enable automated backups for the DB instance.
-
kms_key_id(Optional[KmsKeyId], default:None) –The Amazon Web Services KMS key identifier to use for encryption of the DB instance. Can be a key ID, key ARN, alias name, or alias ARN.
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/async_timestream_influx_db.py
1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 | |