com.pulumi.gcp.container.kotlin.outputs.ClusterPrivateClusterConfig.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.container.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property enablePrivateEndpoint When `true`, the cluster's private
* endpoint is used as the cluster endpoint and access through the public endpoint
* is disabled. When `false`, either endpoint can be used. This field only applies
* to private clusters, when `enable_private_nodes` is `true`.
* @property enablePrivateNodes Enables the private cluster feature,
* creating a private endpoint on the cluster. In a private cluster, nodes only
* have RFC 1918 private addresses and communicate with the master's private
* endpoint via private networking.
* @property masterGlobalAccessConfig Controls cluster master global
* access settings. If unset, the provider will no longer manage this field and will
* not modify the previously-set value. Structure is documented below.
* @property masterIpv4CidrBlock The IP range in CIDR notation to use for
* the hosted master network. This range will be used for assigning private IP
* addresses to the cluster master(s) and the ILB VIP. This range must not overlap
* with any other ranges in use within the cluster's network, and it must be a /28
* subnet. See [Private Cluster Limitations](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#req_res_lim)
* for more details. This field only applies to private clusters, when
* `enable_private_nodes` is `true`.
* @property peeringName The name of the peering between this cluster and the Google owned VPC.
* @property privateEndpoint The internal IP address of this cluster's master endpoint.
* @property privateEndpointSubnetwork Subnetwork in cluster's network where master's endpoint will be provisioned.
* @property publicEndpoint The external IP address of this cluster's master endpoint.
* !> The Google provider is unable to validate certain configurations of
* `private_cluster_config` when `enable_private_nodes` is `false`. It's
* recommended that you omit the block entirely if the field is not set to `true`.
*/
public data class ClusterPrivateClusterConfig(
public val enablePrivateEndpoint: Boolean? = null,
public val enablePrivateNodes: Boolean? = null,
public val masterGlobalAccessConfig: ClusterPrivateClusterConfigMasterGlobalAccessConfig? = null,
public val masterIpv4CidrBlock: String? = null,
public val peeringName: String? = null,
public val privateEndpoint: String? = null,
public val privateEndpointSubnetwork: String? = null,
public val publicEndpoint: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterPrivateClusterConfig): ClusterPrivateClusterConfig = ClusterPrivateClusterConfig(
enablePrivateEndpoint = javaType.enablePrivateEndpoint().map({ args0 -> args0 }).orElse(null),
enablePrivateNodes = javaType.enablePrivateNodes().map({ args0 -> args0 }).orElse(null),
masterGlobalAccessConfig = javaType.masterGlobalAccessConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.ClusterPrivateClusterConfigMasterGlobalAccessConfig.Companion.toKotlin(args0)
})
}).orElse(null),
masterIpv4CidrBlock = javaType.masterIpv4CidrBlock().map({ args0 -> args0 }).orElse(null),
peeringName = javaType.peeringName().map({ args0 -> args0 }).orElse(null),
privateEndpoint = javaType.privateEndpoint().map({ args0 -> args0 }).orElse(null),
privateEndpointSubnetwork = javaType.privateEndpointSubnetwork().map({ args0 ->
args0
}).orElse(null),
publicEndpoint = javaType.publicEndpoint().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy