com.pulumi.cloudflare.kotlin.inputs.HyperdriveConfigOriginArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.HyperdriveConfigOriginArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property accessClientId Client ID associated with the Cloudflare Access Service Token used to connect via Access.
* @property accessClientSecret Client Secret associated with the Cloudflare Access Service Token used to connect via Access.
* @property database The name of your origin database.
* @property host The host (hostname or IP) of your origin database.
* @property password The password of the Hyperdrive configuration.
* @property port The port (default: 5432 for Postgres) of your origin database.
* @property scheme Specifies the URL scheme used to connect to your origin database.
* @property user The user of your origin database.
*/
public data class HyperdriveConfigOriginArgs(
public val accessClientId: Output? = null,
public val accessClientSecret: Output? = null,
public val database: Output,
public val host: Output,
public val password: Output,
public val port: Output? = null,
public val scheme: Output,
public val user: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.HyperdriveConfigOriginArgs =
com.pulumi.cloudflare.inputs.HyperdriveConfigOriginArgs.builder()
.accessClientId(accessClientId?.applyValue({ args0 -> args0 }))
.accessClientSecret(accessClientSecret?.applyValue({ args0 -> args0 }))
.database(database.applyValue({ args0 -> args0 }))
.host(host.applyValue({ args0 -> args0 }))
.password(password.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.scheme(scheme.applyValue({ args0 -> args0 }))
.user(user.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HyperdriveConfigOriginArgs].
*/
@PulumiTagMarker
public class HyperdriveConfigOriginArgsBuilder internal constructor() {
private var accessClientId: Output? = null
private var accessClientSecret: Output? = null
private var database: Output? = null
private var host: Output? = null
private var password: Output? = null
private var port: Output? = null
private var scheme: Output? = null
private var user: Output? = null
/**
* @param value Client ID associated with the Cloudflare Access Service Token used to connect via Access.
*/
@JvmName("qbjtvsvuqplndcch")
public suspend fun accessClientId(`value`: Output) {
this.accessClientId = value
}
/**
* @param value Client Secret associated with the Cloudflare Access Service Token used to connect via Access.
*/
@JvmName("kpnmmxyhdvqqgied")
public suspend fun accessClientSecret(`value`: Output) {
this.accessClientSecret = value
}
/**
* @param value The name of your origin database.
*/
@JvmName("dfvcwfbvssxumrta")
public suspend fun database(`value`: Output) {
this.database = value
}
/**
* @param value The host (hostname or IP) of your origin database.
*/
@JvmName("nlympbtvnmwoujag")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value The password of the Hyperdrive configuration.
*/
@JvmName("wvjnxnpquuvdupoh")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The port (default: 5432 for Postgres) of your origin database.
*/
@JvmName("gxulhjaulrsufnpr")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Specifies the URL scheme used to connect to your origin database.
*/
@JvmName("fospqtgyeehkvyyy")
public suspend fun scheme(`value`: Output) {
this.scheme = value
}
/**
* @param value The user of your origin database.
*/
@JvmName("voasdwofxfoebmkn")
public suspend fun user(`value`: Output) {
this.user = value
}
/**
* @param value Client ID associated with the Cloudflare Access Service Token used to connect via Access.
*/
@JvmName("ysbgsjojhmjswvel")
public suspend fun accessClientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessClientId = mapped
}
/**
* @param value Client Secret associated with the Cloudflare Access Service Token used to connect via Access.
*/
@JvmName("vjdvwdnqjktajfjo")
public suspend fun accessClientSecret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessClientSecret = mapped
}
/**
* @param value The name of your origin database.
*/
@JvmName("facbggcdycsvpxva")
public suspend fun database(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.database = mapped
}
/**
* @param value The host (hostname or IP) of your origin database.
*/
@JvmName("mmujkufendbokohf")
public suspend fun host(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value The password of the Hyperdrive configuration.
*/
@JvmName("fwxeqmaqakecocfl")
public suspend fun password(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value The port (default: 5432 for Postgres) of your origin database.
*/
@JvmName("nxudhpdaalnqngxg")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Specifies the URL scheme used to connect to your origin database.
*/
@JvmName("jnaqwfdoafyqsjts")
public suspend fun scheme(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scheme = mapped
}
/**
* @param value The user of your origin database.
*/
@JvmName("gxfyubdhfdgmjgwr")
public suspend fun user(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.user = mapped
}
internal fun build(): HyperdriveConfigOriginArgs = HyperdriveConfigOriginArgs(
accessClientId = accessClientId,
accessClientSecret = accessClientSecret,
database = database ?: throw PulumiNullFieldException("database"),
host = host ?: throw PulumiNullFieldException("host"),
password = password ?: throw PulumiNullFieldException("password"),
port = port,
scheme = scheme ?: throw PulumiNullFieldException("scheme"),
user = user ?: throw PulumiNullFieldException("user"),
)
}