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

com.pulumi.awsnative.rds.kotlin.DbProxyEndpointArgs.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.DbProxyEndpointArgs.builder
import com.pulumi.awsnative.rds.kotlin.enums.DbProxyEndpointTargetRole
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::RDS::DBProxyEndpoint.
 * @property dbProxyEndpointName The identifier for the DB proxy endpoint. This name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region.
 * @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 tags An optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint.
 * @property targetRole A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
 * @property vpcSecurityGroupIds VPC security group IDs to associate with the new DB proxy endpoint.
 * @property vpcSubnetIds VPC subnet IDs to associate with the new DB proxy endpoint.
 */
public data class DbProxyEndpointArgs(
    public val dbProxyEndpointName: Output? = null,
    public val dbProxyName: Output? = null,
    public val tags: Output>? = null,
    public val targetRole: Output? = null,
    public val vpcSecurityGroupIds: Output>? = null,
    public val vpcSubnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.DbProxyEndpointArgs =
        com.pulumi.awsnative.rds.DbProxyEndpointArgs.builder()
            .dbProxyEndpointName(dbProxyEndpointName?.applyValue({ args0 -> args0 }))
            .dbProxyName(dbProxyName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .targetRole(targetRole?.applyValue({ 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 [DbProxyEndpointArgs].
 */
@PulumiTagMarker
public class DbProxyEndpointArgsBuilder internal constructor() {
    private var dbProxyEndpointName: Output? = null

    private var dbProxyName: Output? = null

    private var tags: Output>? = null

    private var targetRole: Output? = null

    private var vpcSecurityGroupIds: Output>? = null

    private var vpcSubnetIds: Output>? = null

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

    /**
     * @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("pcmaisodtqxsqeob")
    public suspend fun dbProxyName(`value`: Output) {
        this.dbProxyName = value
    }

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

    @JvmName("uwquoapllyaolnoa")
    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 DB proxy endpoint.
     */
    @JvmName("jhfosqnuxducjapy")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
     */
    @JvmName("lipoleidnjmdfjhu")
    public suspend fun targetRole(`value`: Output) {
        this.targetRole = value
    }

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

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

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

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

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

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

    /**
     * @param value The identifier for the DB proxy endpoint. This name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region.
     */
    @JvmName("gnnlkxhsaegvjtls")
    public suspend fun dbProxyEndpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbProxyEndpointName = 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("rycvmbbneqtkxuvi")
    public suspend fun dbProxyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbProxyName = mapped
    }

    /**
     * @param value An optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint.
     */
    @JvmName("efmxsyfltlaiuarq")
    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 DB proxy endpoint.
     */
    @JvmName("eepxpbowfegrtswe")
    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 DB proxy endpoint.
     */
    @JvmName("uwcohvrelccimssr")
    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 DB proxy endpoint.
     */
    @JvmName("yuvhyyfchqgxwxqg")
    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 DB proxy endpoint.
     */
    @JvmName("yncxlhmqityubrnp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
     */
    @JvmName("plslbynicygyctis")
    public suspend fun targetRole(`value`: DbProxyEndpointTargetRole?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetRole = mapped
    }

    /**
     * @param value VPC security group IDs to associate with the new DB proxy endpoint.
     */
    @JvmName("mlnohnenwrenwmaa")
    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 DB proxy endpoint.
     */
    @JvmName("vavcpsngxgmruryh")
    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 DB proxy endpoint.
     */
    @JvmName("viaftpnievsxbspj")
    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 DB proxy endpoint.
     */
    @JvmName("imxtngmclnhsguyb")
    public suspend fun vpcSubnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSubnetIds = mapped
    }

    internal fun build(): DbProxyEndpointArgs = DbProxyEndpointArgs(
        dbProxyEndpointName = dbProxyEndpointName,
        dbProxyName = dbProxyName,
        tags = tags,
        targetRole = targetRole,
        vpcSecurityGroupIds = vpcSecurityGroupIds,
        vpcSubnetIds = vpcSubnetIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy