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

com.pulumi.awsnative.eks.kotlin.inputs.NodegroupRemoteAccessArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.eks.kotlin.inputs

import com.pulumi.awsnative.eks.inputs.NodegroupRemoteAccessArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An object representing a remote access configuration specification for AWS EKS Nodegroup.
 * @property ec2SshKey The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see [Amazon EC2 key pairs and Linux instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Linux Instances* . For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see [Amazon EC2 key pairs and Windows instances](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Windows Instances* .
 * @property sourceSecurityGroups The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet ( `0.0.0.0/0` ). For more information, see [Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon Virtual Private Cloud User Guide* .
 */
public data class NodegroupRemoteAccessArgs(
    public val ec2SshKey: Output,
    public val sourceSecurityGroups: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eks.inputs.NodegroupRemoteAccessArgs =
        com.pulumi.awsnative.eks.inputs.NodegroupRemoteAccessArgs.builder()
            .ec2SshKey(ec2SshKey.applyValue({ args0 -> args0 }))
            .sourceSecurityGroups(
                sourceSecurityGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [NodegroupRemoteAccessArgs].
 */
@PulumiTagMarker
public class NodegroupRemoteAccessArgsBuilder internal constructor() {
    private var ec2SshKey: Output? = null

    private var sourceSecurityGroups: Output>? = null

    /**
     * @param value The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see [Amazon EC2 key pairs and Linux instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Linux Instances* . For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see [Amazon EC2 key pairs and Windows instances](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Windows Instances* .
     */
    @JvmName("gqvfifjntkdhmvdh")
    public suspend fun ec2SshKey(`value`: Output) {
        this.ec2SshKey = value
    }

    /**
     * @param value The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet ( `0.0.0.0/0` ). For more information, see [Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon Virtual Private Cloud User Guide* .
     */
    @JvmName("whwmnffpjjxtvhhp")
    public suspend fun sourceSecurityGroups(`value`: Output>) {
        this.sourceSecurityGroups = value
    }

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

    /**
     * @param values The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet ( `0.0.0.0/0` ). For more information, see [Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon Virtual Private Cloud User Guide* .
     */
    @JvmName("gqeokderfwqwgjqf")
    public suspend fun sourceSecurityGroups(values: List>) {
        this.sourceSecurityGroups = Output.all(values)
    }

    /**
     * @param value The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see [Amazon EC2 key pairs and Linux instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Linux Instances* . For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see [Amazon EC2 key pairs and Windows instances](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-key-pairs.html) in the *Amazon Elastic Compute Cloud User Guide for Windows Instances* .
     */
    @JvmName("rlawrnfnnfdlvaqv")
    public suspend fun ec2SshKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ec2SshKey = mapped
    }

    /**
     * @param value The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet ( `0.0.0.0/0` ). For more information, see [Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon Virtual Private Cloud User Guide* .
     */
    @JvmName("dngkvgbrlegbtfmd")
    public suspend fun sourceSecurityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceSecurityGroups = mapped
    }

    /**
     * @param values The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet ( `0.0.0.0/0` ). For more information, see [Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon Virtual Private Cloud User Guide* .
     */
    @JvmName("feysnjmnvqxybtiu")
    public suspend fun sourceSecurityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceSecurityGroups = mapped
    }

    internal fun build(): NodegroupRemoteAccessArgs = NodegroupRemoteAccessArgs(
        ec2SshKey = ec2SshKey ?: throw PulumiNullFieldException("ec2SshKey"),
        sourceSecurityGroups = sourceSecurityGroups,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy