
com.pulumi.googlenative.compute.v1.kotlin.RouteArgs.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.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.RouteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a Route resource in the specified project using the data included in the request.
* @property description An optional description of this resource. Provide this field when you create the resource.
* @property destRange The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
* @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
* @property network Fully-qualified URL of the network that this route applies to.
* @property nextHopGateway The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway
* @property nextHopIlb The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule
* @property nextHopInstance The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
* @property nextHopIp The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
* @property nextHopNetwork The URL of the local network if it should handle matching packets.
* @property nextHopVpnTunnel The URL to a VpnTunnel that should handle matching packets.
* @property priority The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive.
* @property project
* @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* @property tags A list of instance tags to which this route applies.
*/
public data class RouteArgs(
public val description: Output? = null,
public val destRange: Output? = null,
public val name: Output? = null,
public val network: Output? = null,
public val nextHopGateway: Output? = null,
public val nextHopIlb: Output? = null,
public val nextHopInstance: Output? = null,
public val nextHopIp: Output? = null,
public val nextHopNetwork: Output? = null,
public val nextHopVpnTunnel: Output? = null,
public val priority: Output? = null,
public val project: Output? = null,
public val requestId: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.v1.RouteArgs =
com.pulumi.googlenative.compute.v1.RouteArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.destRange(destRange?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.network(network?.applyValue({ args0 -> args0 }))
.nextHopGateway(nextHopGateway?.applyValue({ args0 -> args0 }))
.nextHopIlb(nextHopIlb?.applyValue({ args0 -> args0 }))
.nextHopInstance(nextHopInstance?.applyValue({ args0 -> args0 }))
.nextHopIp(nextHopIp?.applyValue({ args0 -> args0 }))
.nextHopNetwork(nextHopNetwork?.applyValue({ args0 -> args0 }))
.nextHopVpnTunnel(nextHopVpnTunnel?.applyValue({ args0 -> args0 }))
.priority(priority?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [RouteArgs].
*/
@PulumiTagMarker
public class RouteArgsBuilder internal constructor() {
private var description: Output? = null
private var destRange: Output? = null
private var name: Output? = null
private var network: Output? = null
private var nextHopGateway: Output? = null
private var nextHopIlb: Output? = null
private var nextHopInstance: Output? = null
private var nextHopIp: Output? = null
private var nextHopNetwork: Output? = null
private var nextHopVpnTunnel: Output? = null
private var priority: Output? = null
private var project: Output? = null
private var requestId: Output? = null
private var tags: Output>? = null
/**
* @param value An optional description of this resource. Provide this field when you create the resource.
*/
@JvmName("mvhcqedhuoxskdvk")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
*/
@JvmName("nyfnaihvenrkjfex")
public suspend fun destRange(`value`: Output) {
this.destRange = value
}
/**
* @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
*/
@JvmName("ukfihwajslodtvqo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Fully-qualified URL of the network that this route applies to.
*/
@JvmName("aannbfksebrhbfed")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway
*/
@JvmName("bpdcairitufhabwc")
public suspend fun nextHopGateway(`value`: Output) {
this.nextHopGateway = value
}
/**
* @param value The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule
*/
@JvmName("kxodpsmqldayecnq")
public suspend fun nextHopIlb(`value`: Output) {
this.nextHopIlb = value
}
/**
* @param value The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
*/
@JvmName("lpoxltxrpikhdjxv")
public suspend fun nextHopInstance(`value`: Output) {
this.nextHopInstance = value
}
/**
* @param value The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
*/
@JvmName("vurebljrhsiivhme")
public suspend fun nextHopIp(`value`: Output) {
this.nextHopIp = value
}
/**
* @param value The URL of the local network if it should handle matching packets.
*/
@JvmName("tefmelxevayqeflm")
public suspend fun nextHopNetwork(`value`: Output) {
this.nextHopNetwork = value
}
/**
* @param value The URL to a VpnTunnel that should handle matching packets.
*/
@JvmName("bwpwnxoaminpfoxt")
public suspend fun nextHopVpnTunnel(`value`: Output) {
this.nextHopVpnTunnel = value
}
/**
* @param value The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive.
*/
@JvmName("ilslmulcwrpfjtfk")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value
*/
@JvmName("tamleiiviidvvtrj")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
@JvmName("fjuowcutjnsrtmbx")
public suspend fun requestId(`value`: Output) {
this.requestId = value
}
/**
* @param value A list of instance tags to which this route applies.
*/
@JvmName("wgmkpiijetbxpbey")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("ountlonsnpfsefet")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values A list of instance tags to which this route applies.
*/
@JvmName("cijopelmegaxsuta")
public suspend fun tags(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy