![JAR search and dependency download from the Maven repository](/logo.png)
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy