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

com.pulumi.awsnative.eks.kotlin.outputs.ClusterKubernetesNetworkConfig.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.eks.kotlin.outputs

import com.pulumi.awsnative.eks.kotlin.enums.ClusterKubernetesNetworkConfigIpFamily
import kotlin.String
import kotlin.Suppress

/**
 * The Kubernetes network configuration for the cluster.
 * @property ipFamily Ipv4 or Ipv6. You can only specify ipv6 for 1.21 and later clusters that use version 1.10.1 or later of the Amazon VPC CNI add-on
 * @property serviceIpv4Cidr The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC.
 * @property serviceIpv6Cidr The CIDR block to assign Kubernetes service IP addresses from.
 */
public data class ClusterKubernetesNetworkConfig(
    public val ipFamily: ClusterKubernetesNetworkConfigIpFamily? = null,
    public val serviceIpv4Cidr: String? = null,
    public val serviceIpv6Cidr: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.eks.outputs.ClusterKubernetesNetworkConfig): ClusterKubernetesNetworkConfig = ClusterKubernetesNetworkConfig(
            ipFamily = javaType.ipFamily().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.eks.kotlin.enums.ClusterKubernetesNetworkConfigIpFamily.Companion.toKotlin(args0)
                })
            }).orElse(null),
            serviceIpv4Cidr = javaType.serviceIpv4Cidr().map({ args0 -> args0 }).orElse(null),
            serviceIpv6Cidr = javaType.serviceIpv6Cidr().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy