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

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

package com.pulumi.awsnative.osis.kotlin.inputs

import com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsArgs.builder
import com.pulumi.awsnative.osis.kotlin.enums.PipelineVpcOptionsVpcEndpointManagement
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion Service creates the pipeline with a public endpoint.
 * @property securityGroupIds A list of security groups associated with the VPC endpoint.
 * @property subnetIds A list of subnet IDs associated with the VPC endpoint.
 * @property vpcAttachmentOptions Options for attaching a VPC to the pipeline.
 * @property vpcEndpointManagement Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.
 */
public data class PipelineVpcOptionsArgs(
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>,
    public val vpcAttachmentOptions: Output? =
        null,
    public val vpcEndpointManagement: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsArgs =
        com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsArgs.builder()
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcAttachmentOptions(
                vpcAttachmentOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .vpcEndpointManagement(
                vpcEndpointManagement?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var subnetIds: Output>? = null

    private var vpcAttachmentOptions: Output? =
        null

    private var vpcEndpointManagement: Output? = null

    /**
     * @param value A list of security groups associated with the VPC endpoint.
     */
    @JvmName("mbkamdjsbklivqwc")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values A list of security groups associated with the VPC endpoint.
     */
    @JvmName("bgydjyltebbhvtca")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of subnet IDs associated with the VPC endpoint.
     */
    @JvmName("whcdcyrqemelxxrb")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of subnet IDs associated with the VPC endpoint.
     */
    @JvmName("lyvsdhqpexfncnch")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value Options for attaching a VPC to the pipeline.
     */
    @JvmName("ywnknthypqctwhux")
    public suspend fun vpcAttachmentOptions(`value`: Output) {
        this.vpcAttachmentOptions = value
    }

    /**
     * @param value Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.
     */
    @JvmName("axgkojtefdwpfytf")
    public suspend fun vpcEndpointManagement(`value`: Output) {
        this.vpcEndpointManagement = value
    }

    /**
     * @param value A list of security groups associated with the VPC endpoint.
     */
    @JvmName("isywiakiccwdvejs")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values A list of security groups associated with the VPC endpoint.
     */
    @JvmName("spdrrolgnipnqtsm")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value A list of subnet IDs associated with the VPC endpoint.
     */
    @JvmName("etpabkumwuqskfdf")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of subnet IDs associated with the VPC endpoint.
     */
    @JvmName("hkbaobvmtvepnrac")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value Options for attaching a VPC to the pipeline.
     */
    @JvmName("pclkqignbjhgqbkq")
    public suspend fun vpcAttachmentOptions(`value`: PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcAttachmentOptions = mapped
    }

    /**
     * @param argument Options for attaching a VPC to the pipeline.
     */
    @JvmName("hedsrlixdouqaomy")
    public suspend fun vpcAttachmentOptions(argument: suspend PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vpcAttachmentOptions = mapped
    }

    /**
     * @param value Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.
     */
    @JvmName("rmgpxdgtkjrjgiti")
    public suspend fun vpcEndpointManagement(`value`: PipelineVpcOptionsVpcEndpointManagement?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcEndpointManagement = mapped
    }

    internal fun build(): PipelineVpcOptionsArgs = PipelineVpcOptionsArgs(
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
        vpcAttachmentOptions = vpcAttachmentOptions,
        vpcEndpointManagement = vpcEndpointManagement,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy