com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSettingIpConfiguration.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.sql.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allocatedIpRange The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
* @property authorizedNetworks
* @property enablePrivatePathForGoogleCloudServices Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
* @property ipv4Enabled Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
* @property privateNetwork The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
* @property pscConfigs PSC settings for a Cloud SQL instance.
* @property requireSsl Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode if it has been set too.
* @property sslMode Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcment options compared to require_ssl. To change this field, also set the correspoding value in require_ssl.
*/
public data class GetDatabaseInstanceSettingIpConfiguration(
public val allocatedIpRange: String,
public val authorizedNetworks: List,
public val enablePrivatePathForGoogleCloudServices: Boolean,
public val ipv4Enabled: Boolean,
public val privateNetwork: String,
public val pscConfigs: List,
public val requireSsl: Boolean,
public val sslMode: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstanceSettingIpConfiguration): GetDatabaseInstanceSettingIpConfiguration = GetDatabaseInstanceSettingIpConfiguration(
allocatedIpRange = javaType.allocatedIpRange(),
authorizedNetworks = javaType.authorizedNetworks().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSettingIpConfigurationAuthorizedNetwork.Companion.toKotlin(args0)
})
}),
enablePrivatePathForGoogleCloudServices = javaType.enablePrivatePathForGoogleCloudServices(),
ipv4Enabled = javaType.ipv4Enabled(),
privateNetwork = javaType.privateNetwork(),
pscConfigs = javaType.pscConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSettingIpConfigurationPscConfig.Companion.toKotlin(args0)
})
}),
requireSsl = javaType.requireSsl(),
sslMode = javaType.sslMode(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy