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

com.pulumi.awsnative.rds.kotlin.DbProxyArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.rds.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rds.DbProxyArgs.builder
import com.pulumi.awsnative.rds.kotlin.enums.DbProxyEngineFamily
import com.pulumi.awsnative.rds.kotlin.inputs.DbProxyAuthFormatArgs
import com.pulumi.awsnative.rds.kotlin.inputs.DbProxyAuthFormatArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::RDS::DBProxy
 * @property auth The authorization mechanism that the proxy uses.
 * @property dbProxyName The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.
 * @property debugLogging Whether the proxy includes detailed information about SQL statements in its logs.
 * @property engineFamily The kinds of databases that the proxy can connect to.
 * @property idleClientTimeout The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
 * @property requireTls A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
 * @property roleArn The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
 * @property tags An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
 * @property vpcSecurityGroupIds VPC security group IDs to associate with the new proxy.
 * @property vpcSubnetIds VPC subnet IDs to associate with the new proxy.
 */
public data class DbProxyArgs(
    public val auth: Output>? = null,
    public val dbProxyName: Output? = null,
    public val debugLogging: Output? = null,
    public val engineFamily: Output? = null,
    public val idleClientTimeout: Output? = null,
    public val requireTls: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
    public val vpcSecurityGroupIds: Output>? = null,
    public val vpcSubnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.DbProxyArgs =
        com.pulumi.awsnative.rds.DbProxyArgs.builder()
            .auth(auth?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .dbProxyName(dbProxyName?.applyValue({ args0 -> args0 }))
            .debugLogging(debugLogging?.applyValue({ args0 -> args0 }))
            .engineFamily(engineFamily?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .idleClientTimeout(idleClientTimeout?.applyValue({ args0 -> args0 }))
            .requireTls(requireTls?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcSecurityGroupIds(vpcSecurityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcSubnetIds(vpcSubnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DbProxyArgs].
 */
@PulumiTagMarker
public class DbProxyArgsBuilder internal constructor() {
    private var auth: Output>? = null

    private var dbProxyName: Output? = null

    private var debugLogging: Output? = null

    private var engineFamily: Output? = null

    private var idleClientTimeout: Output? = null

    private var requireTls: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    private var vpcSecurityGroupIds: Output>? = null

    private var vpcSubnetIds: Output>? = null

    /**
     * @param value The authorization mechanism that the proxy uses.
     */
    @JvmName("suliowqtscldxvwh")
    public suspend fun auth(`value`: Output>) {
        this.auth = value
    }

    @JvmName("abkrnpgbpngdqtvj")
    public suspend fun auth(vararg values: Output) {
        this.auth = Output.all(values.asList())
    }

    /**
     * @param values The authorization mechanism that the proxy uses.
     */
    @JvmName("ciphlwsuuqaeybre")
    public suspend fun auth(values: List>) {
        this.auth = Output.all(values)
    }

    /**
     * @param value The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.
     */
    @JvmName("fqmasiqoxhhmbfwq")
    public suspend fun dbProxyName(`value`: Output) {
        this.dbProxyName = value
    }

    /**
     * @param value Whether the proxy includes detailed information about SQL statements in its logs.
     */
    @JvmName("dklkgouciwhehkuh")
    public suspend fun debugLogging(`value`: Output) {
        this.debugLogging = value
    }

    /**
     * @param value The kinds of databases that the proxy can connect to.
     */
    @JvmName("ogtxolrrrufnwhbm")
    public suspend fun engineFamily(`value`: Output) {
        this.engineFamily = value
    }

    /**
     * @param value The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
     */
    @JvmName("gdqldjltflyrammb")
    public suspend fun idleClientTimeout(`value`: Output) {
        this.idleClientTimeout = value
    }

    /**
     * @param value A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
     */
    @JvmName("fxmyhrtmkvyrrefk")
    public suspend fun requireTls(`value`: Output) {
        this.requireTls = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
     */
    @JvmName("ymluyfiwcychxpqo")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("fobxibtlmvqofami")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("mfhflgxhilvyigig")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("oqxgbedrbytwyvse")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value VPC security group IDs to associate with the new proxy.
     */
    @JvmName("ymeiipaiuhvkrljh")
    public suspend fun vpcSecurityGroupIds(`value`: Output>) {
        this.vpcSecurityGroupIds = value
    }

    @JvmName("trpchqjnxvjdfgqr")
    public suspend fun vpcSecurityGroupIds(vararg values: Output) {
        this.vpcSecurityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values VPC security group IDs to associate with the new proxy.
     */
    @JvmName("bxrygriayraewrwd")
    public suspend fun vpcSecurityGroupIds(values: List>) {
        this.vpcSecurityGroupIds = Output.all(values)
    }

    /**
     * @param value VPC subnet IDs to associate with the new proxy.
     */
    @JvmName("irupkjqsbqibpuly")
    public suspend fun vpcSubnetIds(`value`: Output>) {
        this.vpcSubnetIds = value
    }

    @JvmName("jkmssofmvufxkmii")
    public suspend fun vpcSubnetIds(vararg values: Output) {
        this.vpcSubnetIds = Output.all(values.asList())
    }

    /**
     * @param values VPC subnet IDs to associate with the new proxy.
     */
    @JvmName("anqcbspdnyvfwfjl")
    public suspend fun vpcSubnetIds(values: List>) {
        this.vpcSubnetIds = Output.all(values)
    }

    /**
     * @param value The authorization mechanism that the proxy uses.
     */
    @JvmName("sxhvpcuinauclvvb")
    public suspend fun auth(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auth = mapped
    }

    /**
     * @param argument The authorization mechanism that the proxy uses.
     */
    @JvmName("skbokwkkvplwxgqo")
    public suspend fun auth(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DbProxyAuthFormatArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.auth = mapped
    }

    /**
     * @param argument The authorization mechanism that the proxy uses.
     */
    @JvmName("bgqaejljdruqutaj")
    public suspend fun auth(vararg argument: suspend DbProxyAuthFormatArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DbProxyAuthFormatArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.auth = mapped
    }

    /**
     * @param argument The authorization mechanism that the proxy uses.
     */
    @JvmName("adgidjbmoeujkgki")
    public suspend fun auth(argument: suspend DbProxyAuthFormatArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DbProxyAuthFormatArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.auth = mapped
    }

    /**
     * @param values The authorization mechanism that the proxy uses.
     */
    @JvmName("qpwpkdwcomtlrspa")
    public suspend fun auth(vararg values: DbProxyAuthFormatArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.auth = mapped
    }

    /**
     * @param value The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.
     */
    @JvmName("raqstmjhrrrjsagn")
    public suspend fun dbProxyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbProxyName = mapped
    }

    /**
     * @param value Whether the proxy includes detailed information about SQL statements in its logs.
     */
    @JvmName("poqgmitwjvoqngnh")
    public suspend fun debugLogging(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.debugLogging = mapped
    }

    /**
     * @param value The kinds of databases that the proxy can connect to.
     */
    @JvmName("ughsyhekejycplvb")
    public suspend fun engineFamily(`value`: DbProxyEngineFamily?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineFamily = mapped
    }

    /**
     * @param value The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
     */
    @JvmName("crvwompycdpjeihp")
    public suspend fun idleClientTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleClientTimeout = mapped
    }

    /**
     * @param value A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
     */
    @JvmName("ocuqjwaglmndhyvj")
    public suspend fun requireTls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireTls = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
     */
    @JvmName("fdubkeloqwmmuyjx")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("xwfdjgvcitphovgl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("hobprigaaqnlrbtt")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("ghxookfwhicryfml")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("tqwuikvuilptetqr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
     */
    @JvmName("ucriomdsiifjkppk")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value VPC security group IDs to associate with the new proxy.
     */
    @JvmName("rxpnkxejmscynynt")
    public suspend fun vpcSecurityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param values VPC security group IDs to associate with the new proxy.
     */
    @JvmName("ampccjbybwvwsxjt")
    public suspend fun vpcSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param value VPC subnet IDs to associate with the new proxy.
     */
    @JvmName("nnkhcfiugkopmjbt")
    public suspend fun vpcSubnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSubnetIds = mapped
    }

    /**
     * @param values VPC subnet IDs to associate with the new proxy.
     */
    @JvmName("eanacxebywcxbsui")
    public suspend fun vpcSubnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSubnetIds = mapped
    }

    internal fun build(): DbProxyArgs = DbProxyArgs(
        auth = auth,
        dbProxyName = dbProxyName,
        debugLogging = debugLogging,
        engineFamily = engineFamily,
        idleClientTimeout = idleClientTimeout,
        requireTls = requireTls,
        roleArn = roleArn,
        tags = tags,
        vpcSecurityGroupIds = vpcSecurityGroupIds,
        vpcSubnetIds = vpcSubnetIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy