All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.outputs.AppSpecDatabase.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.38.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property clusterName The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
 * @property dbName The name of the MySQL or PostgreSQL database to configure.
 * @property dbUser The name of the MySQL or PostgreSQL user to configure.
 * This resource supports customized create timeouts. The default timeout is 30 minutes.
 * @property engine The database engine to use (`MYSQL`, `PG`, `REDIS`, `MONGODB`, `KAFKA`, or `OPENSEARCH`).
 * @property name The name of the component.
 * @property production Whether this is a production or dev database.
 * @property version The version of the database engine.
 */
public data class AppSpecDatabase(
    public val clusterName: String? = null,
    public val dbName: String? = null,
    public val dbUser: String? = null,
    public val engine: String? = null,
    public val name: String? = null,
    public val production: Boolean? = null,
    public val version: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecDatabase): AppSpecDatabase = AppSpecDatabase(
            clusterName = javaType.clusterName().map({ args0 -> args0 }).orElse(null),
            dbName = javaType.dbName().map({ args0 -> args0 }).orElse(null),
            dbUser = javaType.dbUser().map({ args0 -> args0 }).orElse(null),
            engine = javaType.engine().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            production = javaType.production().map({ args0 -> args0 }).orElse(null),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy