import * as pulumi from "@pulumi/pulumi"; /** * Provides a Vultr database replica resource. This can be used to create, read, modify, and delete managed database read replicas on your Vultr account. * * ## Example Usage * * Create a new database replica: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myDatabaseReplica = new vultr.DatabaseReplica("myDatabaseReplica", { * databaseId: vultr_database.my_database.id, * region: "sea", * label: "my_database_replica_label", * tag: "test tag", * }); * ``` */ export declare class DatabaseReplica extends pulumi.CustomResource { /** * Get an existing DatabaseReplica resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DatabaseReplicaState, opts?: pulumi.CustomResourceOptions): DatabaseReplica; /** * Returns true if the given object is an instance of DatabaseReplica. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DatabaseReplica; /** * The preferred hour of the day (UTC) for daily backups to take place (unavailable for Kafka engine types). */ readonly backupHour: pulumi.Output; /** * The preferred minute of the backup hour for daily backups to take place (unavailable for Kafka engine types). */ readonly backupMinute: pulumi.Output; /** * The configured time zone for the managed database read replica in TZ database format. */ readonly clusterTimeZone: pulumi.Output; /** * The database engine of the managed database read replica. */ readonly databaseEngine: pulumi.Output; /** * The database engine version of the managed database read replica. */ readonly databaseEngineVersion: pulumi.Output; /** * The managed database ID you want to attach this replica to. */ readonly databaseId: pulumi.Output; /** * The date the managed database read replica was added to your Vultr account. */ readonly dateCreated: pulumi.Output; /** * The managed database read replica's default logical database. */ readonly dbname: pulumi.Output; /** * The configuration value for the data eviction policy on the managed database read replica (Valkey engine types only). */ readonly evictionPolicy: pulumi.Output; readonly ferretdbCredentials: pulumi.Output<{ [key: string]: string; }>; /** * The hostname assigned to the managed database read replica. */ readonly host: pulumi.Output; /** * A label for the managed database read replica. */ readonly label: pulumi.Output; /** * The date of the latest backup available on the managed database read replica. */ readonly latestBackup: pulumi.Output; /** * The preferred maintenance day of week for the managed database read replica. */ readonly maintenanceDow: pulumi.Output; /** * The preferred maintenance time for the managed database read replica. */ readonly maintenanceTime: pulumi.Output; /** * The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only). */ readonly mysqlLongQueryTime: pulumi.Output; /** * The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only). */ readonly mysqlRequirePrimaryKey: pulumi.Output; /** * The configuration value for slow query logging on the managed database read replica (MySQL engine types only). */ readonly mysqlSlowQueryLog: pulumi.Output; /** * A list of SQL modes currently configured for the managed database read replica (MySQL engine types only). */ readonly mysqlSqlModes: pulumi.Output; /** * The password for the managed database read replica's primary admin user. */ readonly password: pulumi.Output; /** * The managed database read replica's plan ID. */ readonly plan: pulumi.Output; /** * The description of the disk(s) on the managed database read replica. */ readonly planDisk: pulumi.Output; /** * The amount of memory available on the managed database read replica in MB. */ readonly planRam: pulumi.Output; /** * The number of standby nodes available on the managed database read replica. */ readonly planReplicas: pulumi.Output; /** * The number of virtual CPUs available on the managed database read replica. */ readonly planVcpus: pulumi.Output; /** * The connection port for the managed database read replica. */ readonly port: pulumi.Output; /** * The public hostname assigned to the managed database read replica (VPC-attached only). */ readonly publicHost: pulumi.Output; /** * The ID of the region that the managed database read replica is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions) */ readonly region: pulumi.Output; /** * The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running). */ readonly status: pulumi.Output; /** * The tag to assign to the managed database read replica. */ readonly tag: pulumi.Output; /** * A list of allowed IP addresses for the managed database read replica. */ readonly trustedIps: pulumi.Output; /** * The primary admin user for the managed database read replica. */ readonly user: pulumi.Output; /** * The ID of the VPC Network attached to the managed database read replica. */ readonly vpcId: pulumi.Output; /** * Create a DatabaseReplica resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DatabaseReplicaArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DatabaseReplica resources. */ export interface DatabaseReplicaState { /** * The preferred hour of the day (UTC) for daily backups to take place (unavailable for Kafka engine types). */ backupHour?: pulumi.Input; /** * The preferred minute of the backup hour for daily backups to take place (unavailable for Kafka engine types). */ backupMinute?: pulumi.Input; /** * The configured time zone for the managed database read replica in TZ database format. */ clusterTimeZone?: pulumi.Input; /** * The database engine of the managed database read replica. */ databaseEngine?: pulumi.Input; /** * The database engine version of the managed database read replica. */ databaseEngineVersion?: pulumi.Input; /** * The managed database ID you want to attach this replica to. */ databaseId?: pulumi.Input; /** * The date the managed database read replica was added to your Vultr account. */ dateCreated?: pulumi.Input; /** * The managed database read replica's default logical database. */ dbname?: pulumi.Input; /** * The configuration value for the data eviction policy on the managed database read replica (Valkey engine types only). */ evictionPolicy?: pulumi.Input; ferretdbCredentials?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The hostname assigned to the managed database read replica. */ host?: pulumi.Input; /** * A label for the managed database read replica. */ label?: pulumi.Input; /** * The date of the latest backup available on the managed database read replica. */ latestBackup?: pulumi.Input; /** * The preferred maintenance day of week for the managed database read replica. */ maintenanceDow?: pulumi.Input; /** * The preferred maintenance time for the managed database read replica. */ maintenanceTime?: pulumi.Input; /** * The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only). */ mysqlLongQueryTime?: pulumi.Input; /** * The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only). */ mysqlRequirePrimaryKey?: pulumi.Input; /** * The configuration value for slow query logging on the managed database read replica (MySQL engine types only). */ mysqlSlowQueryLog?: pulumi.Input; /** * A list of SQL modes currently configured for the managed database read replica (MySQL engine types only). */ mysqlSqlModes?: pulumi.Input[]>; /** * The password for the managed database read replica's primary admin user. */ password?: pulumi.Input; /** * The managed database read replica's plan ID. */ plan?: pulumi.Input; /** * The description of the disk(s) on the managed database read replica. */ planDisk?: pulumi.Input; /** * The amount of memory available on the managed database read replica in MB. */ planRam?: pulumi.Input; /** * The number of standby nodes available on the managed database read replica. */ planReplicas?: pulumi.Input; /** * The number of virtual CPUs available on the managed database read replica. */ planVcpus?: pulumi.Input; /** * The connection port for the managed database read replica. */ port?: pulumi.Input; /** * The public hostname assigned to the managed database read replica (VPC-attached only). */ publicHost?: pulumi.Input; /** * The ID of the region that the managed database read replica is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions) */ region?: pulumi.Input; /** * The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running). */ status?: pulumi.Input; /** * The tag to assign to the managed database read replica. */ tag?: pulumi.Input; /** * A list of allowed IP addresses for the managed database read replica. */ trustedIps?: pulumi.Input[]>; /** * The primary admin user for the managed database read replica. */ user?: pulumi.Input; /** * The ID of the VPC Network attached to the managed database read replica. */ vpcId?: pulumi.Input; } /** * The set of arguments for constructing a DatabaseReplica resource. */ export interface DatabaseReplicaArgs { /** * The preferred hour of the day (UTC) for daily backups to take place (unavailable for Kafka engine types). */ backupHour?: pulumi.Input; /** * The preferred minute of the backup hour for daily backups to take place (unavailable for Kafka engine types). */ backupMinute?: pulumi.Input; /** * The managed database ID you want to attach this replica to. */ databaseId: pulumi.Input; /** * The configuration value for the data eviction policy on the managed database read replica (Valkey engine types only). */ evictionPolicy?: pulumi.Input; ferretdbCredentials?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A label for the managed database read replica. */ label: pulumi.Input; /** * The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only). */ mysqlLongQueryTime?: pulumi.Input; /** * The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only). */ mysqlRequirePrimaryKey?: pulumi.Input; /** * The configuration value for slow query logging on the managed database read replica (MySQL engine types only). */ mysqlSlowQueryLog?: pulumi.Input; /** * A list of SQL modes currently configured for the managed database read replica (MySQL engine types only). */ mysqlSqlModes?: pulumi.Input[]>; /** * The description of the disk(s) on the managed database read replica. */ planDisk?: pulumi.Input; /** * The public hostname assigned to the managed database read replica (VPC-attached only). */ publicHost?: pulumi.Input; /** * The ID of the region that the managed database read replica is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions) */ region: pulumi.Input; /** * The tag to assign to the managed database read replica. */ tag?: pulumi.Input; /** * A list of allowed IP addresses for the managed database read replica. */ trustedIps?: pulumi.Input[]>; }