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

com.pulumi.awsnative.osis.kotlin.inputs.PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Options for attaching a VPC to the pipeline.
 * @property attachToVpc Whether the pipeline should be attached to the provided VPC
 * @property cidrBlock The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).
 */
public data class PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs(
    public val attachToVpc: Output,
    public val cidrBlock: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs =
        com.pulumi.awsnative.osis.inputs.PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs.builder()
            .attachToVpc(attachToVpc.applyValue({ args0 -> args0 }))
            .cidrBlock(cidrBlock.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs].
 */
@PulumiTagMarker
public class PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgsBuilder internal constructor() {
    private var attachToVpc: Output? = null

    private var cidrBlock: Output? = null

    /**
     * @param value Whether the pipeline should be attached to the provided VPC
     */
    @JvmName("hsdmkqvnemnsplkt")
    public suspend fun attachToVpc(`value`: Output) {
        this.attachToVpc = value
    }

    /**
     * @param value The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).
     */
    @JvmName("yeehkkwmdxyjkmtb")
    public suspend fun cidrBlock(`value`: Output) {
        this.cidrBlock = value
    }

    /**
     * @param value Whether the pipeline should be attached to the provided VPC
     */
    @JvmName("qmogeoxdsxlnfsqb")
    public suspend fun attachToVpc(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attachToVpc = mapped
    }

    /**
     * @param value The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).
     */
    @JvmName("lamhnabfvugiagtl")
    public suspend fun cidrBlock(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cidrBlock = mapped
    }

    internal fun build(): PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs =
        PipelineVpcOptionsVpcAttachmentOptionsPropertiesArgs(
            attachToVpc = attachToVpc ?: throw PulumiNullFieldException("attachToVpc"),
            cidrBlock = cidrBlock ?: throw PulumiNullFieldException("cidrBlock"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy