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

com.pulumi.awsnative.opensearchserverless.kotlin.VpcEndpointArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.opensearchserverless.kotlin

import com.pulumi.awsnative.opensearchserverless.VpcEndpointArgs.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

/**
 * Amazon OpenSearchServerless vpc endpoint resource
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property name The name of the VPC Endpoint
 * @property securityGroupIds The ID of one or more security groups to associate with the endpoint network interface
 * @property subnetIds The ID of one or more subnets in which to create an endpoint network interface
 * @property vpcId The ID of the VPC in which the endpoint will be used.
 */
public data class VpcEndpointArgs(
    public val name: Output? = null,
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.opensearchserverless.VpcEndpointArgs =
        com.pulumi.awsnative.opensearchserverless.VpcEndpointArgs.builder()
            .name(name?.applyValue({ 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 [VpcEndpointArgs].
 */
@PulumiTagMarker
public class VpcEndpointArgsBuilder internal constructor() {
    private var name: Output? = null

    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    private var vpcId: Output? = null

    /**
     * @param value The name of the VPC Endpoint
     */
    @JvmName("dbrjmfprleqmcfbx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of one or more security groups to associate with the endpoint network interface
     */
    @JvmName("gnffjauttwvhxmci")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values The ID of one or more security groups to associate with the endpoint network interface
     */
    @JvmName("gkexrlwyrlagklsu")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The ID of one or more subnets in which to create an endpoint network interface
     */
    @JvmName("ndyxaunkjjfgsdht")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The ID of one or more subnets in which to create an endpoint network interface
     */
    @JvmName("rpwmexexhvrqkdgr")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The ID of the VPC in which the endpoint will be used.
     */
    @JvmName("dormwkwmnmpmxkjo")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The name of the VPC Endpoint
     */
    @JvmName("utcuwncfqwpwwjme")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of one or more security groups to associate with the endpoint network interface
     */
    @JvmName("vnpculdhinfyyrki")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values The ID of one or more security groups to associate with the endpoint network interface
     */
    @JvmName("twevyskjpgrtxnhj")
    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 one or more subnets in which to create an endpoint network interface
     */
    @JvmName("vhrbvbxuwqolcyyu")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The ID of one or more subnets in which to create an endpoint network interface
     */
    @JvmName("rvecpvbikgjptrxm")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value The ID of the VPC in which the endpoint will be used.
     */
    @JvmName("ralctyxoqmhgbgct")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): VpcEndpointArgs = VpcEndpointArgs(
        name = name,
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy