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

com.pulumi.aws.codestarconnections.kotlin.inputs.HostVpcConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codestarconnections.kotlin.inputs

import com.pulumi.aws.codestarconnections.inputs.HostVpcConfigurationArgs.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

/**
 *
 * @property securityGroupIds ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
 * @property subnetIds The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
 * @property tlsCertificate The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
 * @property vpcId The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
 */
public data class HostVpcConfigurationArgs(
    public val securityGroupIds: Output>,
    public val subnetIds: Output>,
    public val tlsCertificate: Output? = null,
    public val vpcId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codestarconnections.inputs.HostVpcConfigurationArgs =
        com.pulumi.aws.codestarconnections.inputs.HostVpcConfigurationArgs.builder()
            .securityGroupIds(securityGroupIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tlsCertificate(tlsCertificate?.applyValue({ args0 -> args0 }))
            .vpcId(vpcId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HostVpcConfigurationArgs].
 */
@PulumiTagMarker
public class HostVpcConfigurationArgsBuilder internal constructor() {
    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    private var tlsCertificate: Output? = null

    private var vpcId: Output? = null

    /**
     * @param value ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("ylcsaihlhtnytssw")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("khlslbuixpmwlvib")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("wwfyowdlmvrgjdom")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("lbxhxdpjiorpysqo")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
     */
    @JvmName("ireutobwaruubjpc")
    public suspend fun tlsCertificate(`value`: Output) {
        this.tlsCertificate = value
    }

    /**
     * @param value The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("dxtmvsuvxsqycshk")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("shxxaaimjfoyldrw")
    public suspend fun securityGroupIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("lynnrbwrdgpgrggx")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("dbjowjrbbbhwibsa")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("migalwypqpfcobqy")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
     */
    @JvmName("njmpfioevlfddvae")
    public suspend fun tlsCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tlsCertificate = mapped
    }

    /**
     * @param value The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
     */
    @JvmName("oiymvcpokoflfoqo")
    public suspend fun vpcId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): HostVpcConfigurationArgs = HostVpcConfigurationArgs(
        securityGroupIds = securityGroupIds ?: throw PulumiNullFieldException("securityGroupIds"),
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
        tlsCertificate = tlsCertificate,
        vpcId = vpcId ?: throw PulumiNullFieldException("vpcId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy