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

com.pulumi.gcp.container.kotlin.outputs.GetClusterPrivateClusterConfig.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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.
 * @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 masterGlobalAccessConfigs Controls cluster master global access settings.
 * @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 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.
 */
public data class GetClusterPrivateClusterConfig(
    public val enablePrivateEndpoint: Boolean,
    public val enablePrivateNodes: Boolean,
    public val masterGlobalAccessConfigs: List,
    public val masterIpv4CidrBlock: String,
    public val peeringName: String,
    public val privateEndpoint: String,
    public val privateEndpointSubnetwork: String,
    public val publicEndpoint: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.GetClusterPrivateClusterConfig): GetClusterPrivateClusterConfig = GetClusterPrivateClusterConfig(
            enablePrivateEndpoint = javaType.enablePrivateEndpoint(),
            enablePrivateNodes = javaType.enablePrivateNodes(),
            masterGlobalAccessConfigs = javaType.masterGlobalAccessConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.GetClusterPrivateClusterConfigMasterGlobalAccessConfig.Companion.toKotlin(args0)
                })
            }),
            masterIpv4CidrBlock = javaType.masterIpv4CidrBlock(),
            peeringName = javaType.peeringName(),
            privateEndpoint = javaType.privateEndpoint(),
            privateEndpointSubnetwork = javaType.privateEndpointSubnetwork(),
            publicEndpoint = javaType.publicEndpoint(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy