com.pulumi.aws.eks.kotlin.inputs.NodeGroupRemoteAccessArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.eks.kotlin.inputs
import com.pulumi.aws.eks.inputs.NodeGroupRemoteAccessArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property ec2SshKey EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify `source_security_group_ids` when you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
* @property sourceSecurityGroupIds Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify `ec2_ssh_key`, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
*/
public data class NodeGroupRemoteAccessArgs(
public val ec2SshKey: Output? = null,
public val sourceSecurityGroupIds: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.eks.inputs.NodeGroupRemoteAccessArgs =
com.pulumi.aws.eks.inputs.NodeGroupRemoteAccessArgs.builder()
.ec2SshKey(ec2SshKey?.applyValue({ args0 -> args0 }))
.sourceSecurityGroupIds(
sourceSecurityGroupIds?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [NodeGroupRemoteAccessArgs].
*/
@PulumiTagMarker
public class NodeGroupRemoteAccessArgsBuilder internal constructor() {
private var ec2SshKey: Output? = null
private var sourceSecurityGroupIds: Output>? = null
/**
* @param value EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify `source_security_group_ids` when you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes.
*/
@JvmName("lgjgdbjknrxhlnan")
public suspend fun ec2SshKey(`value`: Output) {
this.ec2SshKey = value
}
/**
* @param value Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify `ec2_ssh_key`, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
*/
@JvmName("ldbkdqdtccuhrert")
public suspend fun sourceSecurityGroupIds(`value`: Output>) {
this.sourceSecurityGroupIds = value
}
@JvmName("cmwqorbksdrbpqen")
public suspend fun sourceSecurityGroupIds(vararg values: Output) {
this.sourceSecurityGroupIds = Output.all(values.asList())
}
/**
* @param values Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify `ec2_ssh_key`, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0).
*/
@JvmName("hprxflpjtxlqjlye")
public suspend fun sourceSecurityGroupIds(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy