
com.pulumi.googlenative.compute.beta.kotlin.VpnGateway.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.beta.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.compute.beta.kotlin.outputs.VpnGatewayVpnGatewayInterfaceResponse
import com.pulumi.googlenative.compute.beta.kotlin.outputs.VpnGatewayVpnGatewayInterfaceResponse.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Builder for [VpnGateway].
*/
@PulumiTagMarker
public class VpnGatewayResourceBuilder internal constructor() {
public var name: String? = null
public var args: VpnGatewayArgs = VpnGatewayArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend VpnGatewayArgsBuilder.() -> Unit) {
val builder = VpnGatewayArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): VpnGateway {
val builtJavaResource = com.pulumi.googlenative.compute.beta.VpnGateway(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VpnGateway(builtJavaResource)
}
}
/**
* Creates a VPN gateway in the specified project and region using the data included in the request.
*/
public class VpnGateway internal constructor(
override val javaResource: com.pulumi.googlenative.compute.beta.VpnGateway,
) : KotlinCustomResource(javaResource, VpnGatewayMapper) {
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* An optional description of this resource. Provide this property when you create the resource.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
*/
public val gatewayIpVersion: Output
get() = javaResource.gatewayIpVersion().applyValue({ args0 -> args0 })
/**
* Type of resource. Always compute#vpnGateway for VPN gateways.
*/
public val kind: Output
get() = javaResource.kind().applyValue({ args0 -> args0 })
/**
* A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.
*/
public val labelFingerprint: Output
get() = javaResource.labelFingerprint().applyValue({ args0 -> args0 })
/**
* Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy