
com.pulumi.aws.eks.kotlin.inputs.ClusterVpcConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.eks.kotlin.inputs
import com.pulumi.aws.eks.inputs.ClusterVpcConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property clusterSecurityGroupId Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication.
* @property endpointPrivateAccess Whether the Amazon EKS private API server endpoint is enabled. Default is `false`.
* @property endpointPublicAccess Whether the Amazon EKS public API server endpoint is enabled. Default is `true`.
* @property publicAccessCidrs List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with `0.0.0.0/0`. The provider will only perform drift detection of its value when present in a configuration.
* @property securityGroupIds List of security group IDs for the cross-account elastic network interfaces that Amazon EKS creates to use to allow communication between your worker nodes and the Kubernetes control plane.
* @property subnetIds List of subnet IDs. Must be in at least two different availability zones. Amazon EKS creates cross-account elastic network interfaces in these subnets to allow communication between your worker nodes and the Kubernetes control plane.
* @property vpcId ID of the VPC associated with your cluster.
*/
public data class ClusterVpcConfigArgs(
public val clusterSecurityGroupId: Output? = null,
public val endpointPrivateAccess: Output? = null,
public val endpointPublicAccess: Output? = null,
public val publicAccessCidrs: Output>? = null,
public val securityGroupIds: Output>? = null,
public val subnetIds: Output>,
public val vpcId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.eks.inputs.ClusterVpcConfigArgs =
com.pulumi.aws.eks.inputs.ClusterVpcConfigArgs.builder()
.clusterSecurityGroupId(clusterSecurityGroupId?.applyValue({ args0 -> args0 }))
.endpointPrivateAccess(endpointPrivateAccess?.applyValue({ args0 -> args0 }))
.endpointPublicAccess(endpointPublicAccess?.applyValue({ args0 -> args0 }))
.publicAccessCidrs(publicAccessCidrs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.subnetIds(subnetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterVpcConfigArgs].
*/
@PulumiTagMarker
public class ClusterVpcConfigArgsBuilder internal constructor() {
private var clusterSecurityGroupId: Output? = null
private var endpointPrivateAccess: Output? = null
private var endpointPublicAccess: Output? = null
private var publicAccessCidrs: Output>? = null
private var securityGroupIds: Output>? = null
private var subnetIds: Output>? = null
private var vpcId: Output? = null
/**
* @param value Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication.
*/
@JvmName("nfisvjsrkpxwhroj")
public suspend fun clusterSecurityGroupId(`value`: Output) {
this.clusterSecurityGroupId = value
}
/**
* @param value Whether the Amazon EKS private API server endpoint is enabled. Default is `false`.
*/
@JvmName("brmmdlmnjcokqcmo")
public suspend fun endpointPrivateAccess(`value`: Output) {
this.endpointPrivateAccess = value
}
/**
* @param value Whether the Amazon EKS public API server endpoint is enabled. Default is `true`.
*/
@JvmName("mhoilxvrsvxoaabd")
public suspend fun endpointPublicAccess(`value`: Output) {
this.endpointPublicAccess = value
}
/**
* @param value List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with `0.0.0.0/0`. The provider will only perform drift detection of its value when present in a configuration.
*/
@JvmName("eqclhebrfhrbjtyi")
public suspend fun publicAccessCidrs(`value`: Output>) {
this.publicAccessCidrs = value
}
@JvmName("ariusyqjtvxmpktq")
public suspend fun publicAccessCidrs(vararg values: Output) {
this.publicAccessCidrs = Output.all(values.asList())
}
/**
* @param values List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with `0.0.0.0/0`. The provider will only perform drift detection of its value when present in a configuration.
*/
@JvmName("wppijaaiglqgokov")
public suspend fun publicAccessCidrs(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy