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

com.pulumi.awsnative.networkmanager.kotlin.ConnectPeerArgs.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.24.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.ConnectPeerArgs.builder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectPeerBgpOptionsArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectPeerBgpOptionsArgsBuilder
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::ConnectPeer Resource Type Definition.
 * @property bgpOptions Bgp options for connect peer.
 * @property connectAttachmentId The ID of the attachment to connect.
 * @property coreNetworkAddress The IP address of a core network.
 * @property insideCidrBlocks The inside IP addresses used for a Connect peer configuration.
 * @property peerAddress The IP address of the Connect peer.
 * @property subnetArn The subnet ARN for the connect peer.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ConnectPeerArgs(
    public val bgpOptions: Output? = null,
    public val connectAttachmentId: Output? = null,
    public val coreNetworkAddress: Output? = null,
    public val insideCidrBlocks: Output>? = null,
    public val peerAddress: Output? = null,
    public val subnetArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.ConnectPeerArgs =
        com.pulumi.awsnative.networkmanager.ConnectPeerArgs.builder()
            .bgpOptions(bgpOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .connectAttachmentId(connectAttachmentId?.applyValue({ args0 -> args0 }))
            .coreNetworkAddress(coreNetworkAddress?.applyValue({ args0 -> args0 }))
            .insideCidrBlocks(insideCidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .peerAddress(peerAddress?.applyValue({ args0 -> args0 }))
            .subnetArn(subnetArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectPeerArgs].
 */
@PulumiTagMarker
public class ConnectPeerArgsBuilder internal constructor() {
    private var bgpOptions: Output? = null

    private var connectAttachmentId: Output? = null

    private var coreNetworkAddress: Output? = null

    private var insideCidrBlocks: Output>? = null

    private var peerAddress: Output? = null

    private var subnetArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Bgp options for connect peer.
     */
    @JvmName("gexdbtdailyxevbe")
    public suspend fun bgpOptions(`value`: Output) {
        this.bgpOptions = value
    }

    /**
     * @param value The ID of the attachment to connect.
     */
    @JvmName("hchgijgmuooulkpc")
    public suspend fun connectAttachmentId(`value`: Output) {
        this.connectAttachmentId = value
    }

    /**
     * @param value The IP address of a core network.
     */
    @JvmName("ffelgsvbchqmedor")
    public suspend fun coreNetworkAddress(`value`: Output) {
        this.coreNetworkAddress = value
    }

    /**
     * @param value The inside IP addresses used for a Connect peer configuration.
     */
    @JvmName("usdmivmnowdkenet")
    public suspend fun insideCidrBlocks(`value`: Output>) {
        this.insideCidrBlocks = value
    }

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

    /**
     * @param values The inside IP addresses used for a Connect peer configuration.
     */
    @JvmName("cksncqwyxwtcyryo")
    public suspend fun insideCidrBlocks(values: List>) {
        this.insideCidrBlocks = Output.all(values)
    }

    /**
     * @param value The IP address of the Connect peer.
     */
    @JvmName("rsgwwkjwectricxf")
    public suspend fun peerAddress(`value`: Output) {
        this.peerAddress = value
    }

    /**
     * @param value The subnet ARN for the connect peer.
     */
    @JvmName("buhtqiomdgqycewq")
    public suspend fun subnetArn(`value`: Output) {
        this.subnetArn = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("faryaaxryqvodbmn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("psfskgxdejputayu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Bgp options for connect peer.
     */
    @JvmName("fleikxmrsbtbanqk")
    public suspend fun bgpOptions(`value`: ConnectPeerBgpOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bgpOptions = mapped
    }

    /**
     * @param argument Bgp options for connect peer.
     */
    @JvmName("onhpvhrqivaqassu")
    public suspend fun bgpOptions(argument: suspend ConnectPeerBgpOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectPeerBgpOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.bgpOptions = mapped
    }

    /**
     * @param value The ID of the attachment to connect.
     */
    @JvmName("qnnwglojeojtimea")
    public suspend fun connectAttachmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectAttachmentId = mapped
    }

    /**
     * @param value The IP address of a core network.
     */
    @JvmName("bpjpkxvvdqnjyqus")
    public suspend fun coreNetworkAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coreNetworkAddress = mapped
    }

    /**
     * @param value The inside IP addresses used for a Connect peer configuration.
     */
    @JvmName("gornxqoctlkrvchf")
    public suspend fun insideCidrBlocks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insideCidrBlocks = mapped
    }

    /**
     * @param values The inside IP addresses used for a Connect peer configuration.
     */
    @JvmName("pkkeftklhqrsrcky")
    public suspend fun insideCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.insideCidrBlocks = mapped
    }

    /**
     * @param value The IP address of the Connect peer.
     */
    @JvmName("adotwjiyasvrkkfo")
    public suspend fun peerAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerAddress = mapped
    }

    /**
     * @param value The subnet ARN for the connect peer.
     */
    @JvmName("vtivrsdquxkyrsfn")
    public suspend fun subnetArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("yqyynpfqwpkoxkqm")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("dhiosioxyfwhbqeu")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("nxhnpvbvqrdluauj")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("angpopgccvrnyahc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("iceopwsxxcfeloac")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConnectPeerArgs = ConnectPeerArgs(
        bgpOptions = bgpOptions,
        connectAttachmentId = connectAttachmentId,
        coreNetworkAddress = coreNetworkAddress,
        insideCidrBlocks = insideCidrBlocks,
        peerAddress = peerAddress,
        subnetArn = subnetArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy