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

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>) {
        this.publicAccessCidrs = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("vmfamwqioqpbdfye")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

    @JvmName("yophvotrdbtqqjqm")
    public suspend fun securityGroupIds(vararg values: Output) {
        this.securityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("lrdjmivwubtugiyj")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("fhljdbgwsdecuxhb")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

    @JvmName("xuisnvoosaekemav")
    public suspend fun subnetIds(vararg values: Output) {
        this.subnetIds = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("vbsrycldbanlajuq")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value ID of the VPC associated with your cluster.
     */
    @JvmName("bicgwlljviaqnpfm")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @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("nshoxlnwfrwxuyoc")
    public suspend fun clusterSecurityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterSecurityGroupId = mapped
    }

    /**
     * @param value Whether the Amazon EKS private API server endpoint is enabled. Default is `false`.
     */
    @JvmName("oavddqqotmchhhem")
    public suspend fun endpointPrivateAccess(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointPrivateAccess = mapped
    }

    /**
     * @param value Whether the Amazon EKS public API server endpoint is enabled. Default is `true`.
     */
    @JvmName("kyqpkwuioigxhdqq")
    public suspend fun endpointPublicAccess(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointPublicAccess = mapped
    }

    /**
     * @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("fvrskeejpgwwaomy")
    public suspend fun publicAccessCidrs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicAccessCidrs = mapped
    }

    /**
     * @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("jfwwjiqfuyjeucal")
    public suspend fun publicAccessCidrs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicAccessCidrs = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("sikeovfrdykajfwf")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("ovshksemukxuejoo")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ypsqejasdnwypjgq")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("qrsvxpxayjlwdugv")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value ID of the VPC associated with your cluster.
     */
    @JvmName("xufqmpwrbsdgnveg")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): ClusterVpcConfigArgs = ClusterVpcConfigArgs(
        clusterSecurityGroupId = clusterSecurityGroupId,
        endpointPrivateAccess = endpointPrivateAccess,
        endpointPublicAccess = endpointPublicAccess,
        publicAccessCidrs = publicAccessCidrs,
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy