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

com.pulumi.awsnative.ec2.kotlin.VpcPeeringConnectionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.VpcPeeringConnectionArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Resource Type definition for AWS::EC2::VPCPeeringConnection
 * @property peerOwnerId The AWS account ID of the owner of the accepter VPC.
 * @property peerRegion The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.
 * @property peerRoleArn The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
 * @property peerVpcId The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
 * @property tags Any tags assigned to the resource.
 * @property vpcId The ID of the VPC.
 */
public data class VpcPeeringConnectionArgs(
    public val peerOwnerId: Output? = null,
    public val peerRegion: Output? = null,
    public val peerRoleArn: Output? = null,
    public val peerVpcId: Output? = null,
    public val tags: Output>? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VpcPeeringConnectionArgs =
        com.pulumi.awsnative.ec2.VpcPeeringConnectionArgs.builder()
            .peerOwnerId(peerOwnerId?.applyValue({ args0 -> args0 }))
            .peerRegion(peerRegion?.applyValue({ args0 -> args0 }))
            .peerRoleArn(peerRoleArn?.applyValue({ args0 -> args0 }))
            .peerVpcId(peerVpcId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpcPeeringConnectionArgs].
 */
@PulumiTagMarker
public class VpcPeeringConnectionArgsBuilder internal constructor() {
    private var peerOwnerId: Output? = null

    private var peerRegion: Output? = null

    private var peerRoleArn: Output? = null

    private var peerVpcId: Output? = null

    private var tags: Output>? = null

    private var vpcId: Output? = null

    /**
     * @param value The AWS account ID of the owner of the accepter VPC.
     */
    @JvmName("tandexxyhxaedryf")
    public suspend fun peerOwnerId(`value`: Output) {
        this.peerOwnerId = value
    }

    /**
     * @param value The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.
     */
    @JvmName("xvocgxeugilogusg")
    public suspend fun peerRegion(`value`: Output) {
        this.peerRegion = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
     */
    @JvmName("pnnmvrcghktuthti")
    public suspend fun peerRoleArn(`value`: Output) {
        this.peerRoleArn = value
    }

    /**
     * @param value The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
     */
    @JvmName("jjhtfgnclqprphum")
    public suspend fun peerVpcId(`value`: Output) {
        this.peerVpcId = value
    }

    /**
     * @param value Any tags assigned to the resource.
     */
    @JvmName("hukyhkkavideyyrx")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Any tags assigned to the resource.
     */
    @JvmName("fqqmhmybmrhsklkb")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The AWS account ID of the owner of the accepter VPC.
     */
    @JvmName("psrtymoulytanvfe")
    public suspend fun peerOwnerId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerOwnerId = mapped
    }

    /**
     * @param value The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.
     */
    @JvmName("lqqprokhguketfoo")
    public suspend fun peerRegion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerRegion = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
     */
    @JvmName("qgpbfvblgwyrkhyu")
    public suspend fun peerRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerRoleArn = mapped
    }

    /**
     * @param value The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
     */
    @JvmName("hayastkmxdpawsol")
    public suspend fun peerVpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerVpcId = mapped
    }

    /**
     * @param value Any tags assigned to the resource.
     */
    @JvmName("kjbruaskbildyddh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Any tags assigned to the resource.
     */
    @JvmName("acjdlcwhwfddcyed")
    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 Any tags assigned to the resource.
     */
    @JvmName("relhrxfaylywiere")
    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 Any tags assigned to the resource.
     */
    @JvmName("iyncerxusklrjrij")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Any tags assigned to the resource.
     */
    @JvmName("gcqrsjqveudadagw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): VpcPeeringConnectionArgs = VpcPeeringConnectionArgs(
        peerOwnerId = peerOwnerId,
        peerRegion = peerRegion,
        peerRoleArn = peerRoleArn,
        peerVpcId = peerVpcId,
        tags = tags,
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy