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

com.pulumi.awsnative.networkmanager.kotlin.VpcAttachmentArgs.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.networkmanager.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.networkmanager.VpcAttachmentArgs.builder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.VpcAttachmentProposedSegmentChangeArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.VpcAttachmentProposedSegmentChangeArgsBuilder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.VpcAttachmentVpcOptionsArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.VpcAttachmentVpcOptionsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * AWS::NetworkManager::VpcAttachment Resoruce Type
 * @property coreNetworkId The ID of a core network for the VPC attachment.
 * @property options Vpc options of the attachment.
 * @property proposedSegmentChange The attachment to move from one segment to another.
 * @property subnetArns Subnet Arn list
 * @property tags Tags for the attachment.
 * @property vpcArn The ARN of the VPC.
 */
public data class VpcAttachmentArgs(
    public val coreNetworkId: Output? = null,
    public val options: Output? = null,
    public val proposedSegmentChange: Output? = null,
    public val subnetArns: Output>? = null,
    public val tags: Output>? = null,
    public val vpcArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.VpcAttachmentArgs =
        com.pulumi.awsnative.networkmanager.VpcAttachmentArgs.builder()
            .coreNetworkId(coreNetworkId?.applyValue({ args0 -> args0 }))
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .proposedSegmentChange(
                proposedSegmentChange?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .subnetArns(subnetArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcArn(vpcArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpcAttachmentArgs].
 */
@PulumiTagMarker
public class VpcAttachmentArgsBuilder internal constructor() {
    private var coreNetworkId: Output? = null

    private var options: Output? = null

    private var proposedSegmentChange: Output? = null

    private var subnetArns: Output>? = null

    private var tags: Output>? = null

    private var vpcArn: Output? = null

    /**
     * @param value The ID of a core network for the VPC attachment.
     */
    @JvmName("bprhdxhimgkawlnp")
    public suspend fun coreNetworkId(`value`: Output) {
        this.coreNetworkId = value
    }

    /**
     * @param value Vpc options of the attachment.
     */
    @JvmName("qnogxpwxflhhdsrx")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value The attachment to move from one segment to another.
     */
    @JvmName("oogsuyfwubcdjpsm")
    public suspend fun proposedSegmentChange(`value`: Output) {
        this.proposedSegmentChange = value
    }

    /**
     * @param value Subnet Arn list
     */
    @JvmName("lyntpxbautdxvtqm")
    public suspend fun subnetArns(`value`: Output>) {
        this.subnetArns = value
    }

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

    /**
     * @param values Subnet Arn list
     */
    @JvmName("mdvgmdmyafgdjksg")
    public suspend fun subnetArns(values: List>) {
        this.subnetArns = Output.all(values)
    }

    /**
     * @param value Tags for the attachment.
     */
    @JvmName("ytpyypjuwqtlcjfr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags for the attachment.
     */
    @JvmName("vbxvntkstprgnskg")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The ID of a core network for the VPC attachment.
     */
    @JvmName("fiefmnpfsmgjplyr")
    public suspend fun coreNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coreNetworkId = mapped
    }

    /**
     * @param value Vpc options of the attachment.
     */
    @JvmName("fxnbfmrogqkhjlno")
    public suspend fun options(`value`: VpcAttachmentVpcOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument Vpc options of the attachment.
     */
    @JvmName("iqcbppvqwtivgeqm")
    public suspend fun options(argument: suspend VpcAttachmentVpcOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = VpcAttachmentVpcOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param value The attachment to move from one segment to another.
     */
    @JvmName("jlqecmghnhuujgxy")
    public suspend fun proposedSegmentChange(`value`: VpcAttachmentProposedSegmentChangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.proposedSegmentChange = mapped
    }

    /**
     * @param argument The attachment to move from one segment to another.
     */
    @JvmName("rfalrolqcxyskmji")
    public suspend fun proposedSegmentChange(argument: suspend VpcAttachmentProposedSegmentChangeArgsBuilder.() -> Unit) {
        val toBeMapped = VpcAttachmentProposedSegmentChangeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.proposedSegmentChange = mapped
    }

    /**
     * @param value Subnet Arn list
     */
    @JvmName("dkaaqteujhavtidy")
    public suspend fun subnetArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetArns = mapped
    }

    /**
     * @param values Subnet Arn list
     */
    @JvmName("wdacaeguopudrokj")
    public suspend fun subnetArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetArns = mapped
    }

    /**
     * @param value Tags for the attachment.
     */
    @JvmName("kfcxuesekeshwlir")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags for the attachment.
     */
    @JvmName("xtxgapjetehnwwyu")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for the attachment.
     */
    @JvmName("qraplqnjeopujotd")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for the attachment.
     */
    @JvmName("hmcfnllcvyqiebnp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags for the attachment.
     */
    @JvmName("qadojuveteukvbrd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): VpcAttachmentArgs = VpcAttachmentArgs(
        coreNetworkId = coreNetworkId,
        options = options,
        proposedSegmentChange = proposedSegmentChange,
        subnetArns = subnetArns,
        tags = tags,
        vpcArn = vpcArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy