com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfileCloudsqlSettingsIpConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.databasemigrationservice.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlSettingsIpConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property authorizedNetworks The list of external networks that are allowed to connect to the instance using the IP.
* Structure is documented below.
* @property enableIpv4 Whether the instance should be assigned an IPv4 address or not.
* @property privateNetwork The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default.
* This setting can be updated, but it cannot be removed after it is set.
* @property requireSsl Whether SSL connections over IP should be enforced or not.
*/
public data class ConnectionProfileCloudsqlSettingsIpConfigArgs(
public val authorizedNetworks: Output>? = null,
public val enableIpv4: Output? = null,
public val privateNetwork: Output? = null,
public val requireSsl: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlSettingsIpConfigArgs =
com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlSettingsIpConfigArgs.builder()
.authorizedNetworks(
authorizedNetworks?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.enableIpv4(enableIpv4?.applyValue({ args0 -> args0 }))
.privateNetwork(privateNetwork?.applyValue({ args0 -> args0 }))
.requireSsl(requireSsl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionProfileCloudsqlSettingsIpConfigArgs].
*/
@PulumiTagMarker
public class ConnectionProfileCloudsqlSettingsIpConfigArgsBuilder internal constructor() {
private var authorizedNetworks:
Output>? = null
private var enableIpv4: Output? = null
private var privateNetwork: Output? = null
private var requireSsl: Output? = null
/**
* @param value The list of external networks that are allowed to connect to the instance using the IP.
* Structure is documented below.
*/
@JvmName("jtbhnpvecrdmcafn")
public suspend fun authorizedNetworks(`value`: Output>) {
this.authorizedNetworks = value
}
@JvmName("wrmcnclhbtgxkoat")
public suspend fun authorizedNetworks(vararg values: Output) {
this.authorizedNetworks = Output.all(values.asList())
}
/**
* @param values The list of external networks that are allowed to connect to the instance using the IP.
* Structure is documented below.
*/
@JvmName("kimbsgtsuuspnswd")
public suspend fun authorizedNetworks(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy