Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.compute.beta.kotlin.ForwardingRuleArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.beta.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.ForwardingRuleArgs.builder
import com.pulumi.googlenative.compute.beta.kotlin.enums.ForwardingRuleIpProtocol
import com.pulumi.googlenative.compute.beta.kotlin.enums.ForwardingRuleIpVersion
import com.pulumi.googlenative.compute.beta.kotlin.enums.ForwardingRuleLoadBalancingScheme
import com.pulumi.googlenative.compute.beta.kotlin.enums.ForwardingRuleNetworkTier
import com.pulumi.googlenative.compute.beta.kotlin.enums.ForwardingRulePscConnectionStatus
import com.pulumi.googlenative.compute.beta.kotlin.inputs.ForwardingRuleServiceDirectoryRegistrationArgs
import com.pulumi.googlenative.compute.beta.kotlin.inputs.ForwardingRuleServiceDirectoryRegistrationArgsBuilder
import com.pulumi.googlenative.compute.beta.kotlin.inputs.MetadataFilterArgs
import com.pulumi.googlenative.compute.beta.kotlin.inputs.MetadataFilterArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates a ForwardingRule resource in the specified project and region using the data included in the request.
* @property allPorts This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal and external protocol forwarding. Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive.
* @property allowGlobalAccess This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
* @property allowPscGlobalAccess This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
* @property backendService Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property ipAddress IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number.
* @property ipProtocol The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends).
* @property ipVersion The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6.
* @property isMirroringCollector Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL.
* @property labels 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.
* @property loadBalancingScheme Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts.
* @property metadataFilters Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
* @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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.
* @property network This field is not used for external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
* @property networkTier This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
* @property noAutomateDnsZone This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field.
* @property portRange This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By backend service-based network load balancers, target pool-based network load balancers, internal proxy load balancers, external proxy load balancers, Traffic Director, external protocol forwarding, and Classic VPN. Some products have restrictions on what ports can be used. See port specifications for details. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)?
* @property ports This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)?
* @property project
* @property pscConnectionStatus
* @property region
* @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 serviceDirectoryRegistrations Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
* @property serviceLabel An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing.
* @property sourceIpRanges If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
* @property subnetwork This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6.
* @property target The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment.
*/
public data class ForwardingRuleArgs(
public val allPorts: Output? = null,
public val allowGlobalAccess: Output? = null,
public val allowPscGlobalAccess: Output? = null,
public val backendService: Output? = null,
public val description: Output? = null,
public val ipAddress: Output? = null,
public val ipProtocol: Output? = null,
public val ipVersion: Output? = null,
public val isMirroringCollector: Output? = null,
public val labels: Output>? = null,
public val loadBalancingScheme: Output? = null,
public val metadataFilters: Output>? = null,
public val name: Output? = null,
public val network: Output? = null,
public val networkTier: Output? = null,
public val noAutomateDnsZone: Output? = null,
public val portRange: Output? = null,
public val ports: Output>? = null,
public val project: Output? = null,
public val pscConnectionStatus: Output? = null,
public val region: Output? = null,
public val requestId: Output? = null,
public val serviceDirectoryRegistrations: Output>? = null,
public val serviceLabel: Output? = null,
public val sourceIpRanges: Output>? = null,
public val subnetwork: Output? = null,
public val target: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.beta.ForwardingRuleArgs =
com.pulumi.googlenative.compute.beta.ForwardingRuleArgs.builder()
.allPorts(allPorts?.applyValue({ args0 -> args0 }))
.allowGlobalAccess(allowGlobalAccess?.applyValue({ args0 -> args0 }))
.allowPscGlobalAccess(allowPscGlobalAccess?.applyValue({ args0 -> args0 }))
.backendService(backendService?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
.ipProtocol(ipProtocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ipVersion(ipVersion?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.isMirroringCollector(isMirroringCollector?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.loadBalancingScheme(
loadBalancingScheme?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.metadataFilters(
metadataFilters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.network(network?.applyValue({ args0 -> args0 }))
.networkTier(networkTier?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.noAutomateDnsZone(noAutomateDnsZone?.applyValue({ args0 -> args0 }))
.portRange(portRange?.applyValue({ args0 -> args0 }))
.ports(ports?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.project(project?.applyValue({ args0 -> args0 }))
.pscConnectionStatus(
pscConnectionStatus?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.region(region?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.serviceDirectoryRegistrations(
serviceDirectoryRegistrations?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.serviceLabel(serviceLabel?.applyValue({ args0 -> args0 }))
.sourceIpRanges(sourceIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
.target(target?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ForwardingRuleArgs].
*/
@PulumiTagMarker
public class ForwardingRuleArgsBuilder internal constructor() {
private var allPorts: Output? = null
private var allowGlobalAccess: Output? = null
private var allowPscGlobalAccess: Output? = null
private var backendService: Output? = null
private var description: Output? = null
private var ipAddress: Output? = null
private var ipProtocol: Output? = null
private var ipVersion: Output? = null
private var isMirroringCollector: Output? = null
private var labels: Output>? = null
private var loadBalancingScheme: Output? = null
private var metadataFilters: Output>? = null
private var name: Output? = null
private var network: Output? = null
private var networkTier: Output? = null
private var noAutomateDnsZone: Output? = null
private var portRange: Output? = null
private var ports: Output>? = null
private var project: Output? = null
private var pscConnectionStatus: Output? = null
private var region: Output? = null
private var requestId: Output? = null
private var serviceDirectoryRegistrations:
Output>? = null
private var serviceLabel: Output? = null
private var sourceIpRanges: Output>? = null
private var subnetwork: Output? = null
private var target: Output? = null
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal and external protocol forwarding. Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive.
*/
@JvmName("pdmnsubcuymetlik")
public suspend fun allPorts(`value`: Output) {
this.allPorts = value
}
/**
* @param value This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
*/
@JvmName("dkbwalnruxbeutks")
public suspend fun allowGlobalAccess(`value`: Output) {
this.allowGlobalAccess = value
}
/**
* @param value This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
*/
@JvmName("fimecdoghtgfivfh")
public suspend fun allowPscGlobalAccess(`value`: Output) {
this.allowPscGlobalAccess = value
}
/**
* @param value Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
*/
@JvmName("ypwcsmqosgtypnhk")
public suspend fun backendService(`value`: Output) {
this.backendService = value
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("jlcgbsbcbxymqilt")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number.
*/
@JvmName("uyvxayqpdnsdyjla")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends).
*/
@JvmName("ljewxfyhxqefmarp")
public suspend fun ipProtocol(`value`: Output) {
this.ipProtocol = value
}
/**
* @param value The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6.
*/
@JvmName("kdsnxfuosscqbngn")
public suspend fun ipVersion(`value`: Output) {
this.ipVersion = value
}
/**
* @param value Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL.
*/
@JvmName("mxadqiqjmbgpaaqa")
public suspend fun isMirroringCollector(`value`: Output) {
this.isMirroringCollector = value
}
/**
* @param value 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.
*/
@JvmName("neboqbfpbfcoxaik")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts.
*/
@JvmName("fbjfixcybqxhsnwm")
public suspend fun loadBalancingScheme(`value`: Output) {
this.loadBalancingScheme = value
}
/**
* @param value Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("bxrbbqocqpkltdge")
public suspend fun metadataFilters(`value`: Output>) {
this.metadataFilters = value
}
@JvmName("mhxrbltorlaaugny")
public suspend fun metadataFilters(vararg values: Output) {
this.metadataFilters = Output.all(values.asList())
}
/**
* @param values Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("abxypywiyiqexysy")
public suspend fun metadataFilters(values: List>) {
this.metadataFilters = Output.all(values)
}
/**
* @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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.
*/
@JvmName("dyriuaulxfnkqjbi")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value This field is not used for external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
*/
@JvmName("knwysutmxttfjmcw")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
*/
@JvmName("miirutrvdsiypcbv")
public suspend fun networkTier(`value`: Output) {
this.networkTier = value
}
/**
* @param value This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field.
*/
@JvmName("ykqmckpxgcjauldi")
public suspend fun noAutomateDnsZone(`value`: Output) {
this.noAutomateDnsZone = value
}
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By backend service-based network load balancers, target pool-based network load balancers, internal proxy load balancers, external proxy load balancers, Traffic Director, external protocol forwarding, and Classic VPN. Some products have restrictions on what ports can be used. See port specifications for details. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("shkvwkrvqudjorgf")
public suspend fun portRange(`value`: Output) {
this.portRange = value
}
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("swsayvbggfvcksed")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("opevpgesrtaxerla")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("augbfxnwnncxkmat")
public suspend fun ports(values: List>) {
this.ports = Output.all(values)
}
/**
* @param value
*/
@JvmName("cmbndbmniqgtyoim")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value
*/
@JvmName("tglbfpjaxnoahelb")
public suspend fun pscConnectionStatus(`value`: Output) {
this.pscConnectionStatus = value
}
/**
* @param value
*/
@JvmName("fdeiililuyvqujla")
public suspend fun region(`value`: Output) {
this.region = 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("xfwfdbrtquilctmg")
public suspend fun requestId(`value`: Output) {
this.requestId = value
}
/**
* @param value Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("vmqlknqvjiwckxtb")
public suspend fun serviceDirectoryRegistrations(`value`: Output>) {
this.serviceDirectoryRegistrations = value
}
@JvmName("lfgjvihhgnlvrstj")
public suspend fun serviceDirectoryRegistrations(vararg values: Output) {
this.serviceDirectoryRegistrations = Output.all(values.asList())
}
/**
* @param values Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("vmlvogklbuyvfarb")
public suspend fun serviceDirectoryRegistrations(values: List>) {
this.serviceDirectoryRegistrations = Output.all(values)
}
/**
* @param value An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing.
*/
@JvmName("rhippykajhibouwh")
public suspend fun serviceLabel(`value`: Output) {
this.serviceLabel = value
}
/**
* @param value If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
*/
@JvmName("xehqhukwelkltgme")
public suspend fun sourceIpRanges(`value`: Output>) {
this.sourceIpRanges = value
}
@JvmName("ounqxjmtdybiuyli")
public suspend fun sourceIpRanges(vararg values: Output) {
this.sourceIpRanges = Output.all(values.asList())
}
/**
* @param values If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
*/
@JvmName("lisekbsuikrewpjk")
public suspend fun sourceIpRanges(values: List>) {
this.sourceIpRanges = Output.all(values)
}
/**
* @param value This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6.
*/
@JvmName("xcyikidycfifuolm")
public suspend fun subnetwork(`value`: Output) {
this.subnetwork = value
}
/**
* @param value The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment.
*/
@JvmName("edaxpyoiwclpjvmy")
public suspend fun target(`value`: Output) {
this.target = value
}
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal and external protocol forwarding. Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive.
*/
@JvmName("umlmrjfebaavjfln")
public suspend fun allPorts(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allPorts = mapped
}
/**
* @param value This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
*/
@JvmName("tyshqumcbmyjsqpp")
public suspend fun allowGlobalAccess(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowGlobalAccess = mapped
}
/**
* @param value This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
*/
@JvmName("mkkawdimrtqcvghw")
public suspend fun allowPscGlobalAccess(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowPscGlobalAccess = mapped
}
/**
* @param value Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
*/
@JvmName("bsywnyduyqbelhjk")
public suspend fun backendService(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendService = mapped
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("jwthlvrqfdpelgya")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number.
*/
@JvmName("ntgpidbvdcgcrdnh")
public suspend fun ipAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipAddress = mapped
}
/**
* @param value The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends).
*/
@JvmName("agcpkjqdwwkwonlb")
public suspend fun ipProtocol(`value`: ForwardingRuleIpProtocol?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipProtocol = mapped
}
/**
* @param value The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6.
*/
@JvmName("lwgrhehdqttbvdgf")
public suspend fun ipVersion(`value`: ForwardingRuleIpVersion?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipVersion = mapped
}
/**
* @param value Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL.
*/
@JvmName("qfwdikxakcmpttkx")
public suspend fun isMirroringCollector(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isMirroringCollector = mapped
}
/**
* @param value 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.
*/
@JvmName("woscqccgrmvhoexb")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values 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.
*/
@JvmName("onpumqtkwuamjxdj")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts.
*/
@JvmName("lsapsnpwhttxdoov")
public suspend fun loadBalancingScheme(`value`: ForwardingRuleLoadBalancingScheme?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.loadBalancingScheme = mapped
}
/**
* @param value Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("mujkidymqmyvecjn")
public suspend fun metadataFilters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadataFilters = mapped
}
/**
* @param argument Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("chukccrucqdmrrco")
public suspend fun metadataFilters(argument: List Unit>) {
val toBeMapped = argument.toList().map {
MetadataFilterArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.metadataFilters = mapped
}
/**
* @param argument Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("oiconkoggabpxohs")
public suspend fun metadataFilters(vararg argument: suspend MetadataFilterArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
MetadataFilterArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.metadataFilters = mapped
}
/**
* @param argument Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("ahndbrnviavsqcli")
public suspend fun metadataFilters(argument: suspend MetadataFilterArgsBuilder.() -> Unit) {
val toBeMapped = listOf(MetadataFilterArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.metadataFilters = mapped
}
/**
* @param values Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("ydirwdvfbabfponn")
public suspend fun metadataFilters(vararg values: MetadataFilterArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadataFilters = mapped
}
/**
* @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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.
*/
@JvmName("yhmfxqgoexlyrldf")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value This field is not used for external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
*/
@JvmName("jgjtoubwddjsfjqr")
public suspend fun network(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.network = mapped
}
/**
* @param value This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
*/
@JvmName("knjlilrnfyjhqpsx")
public suspend fun networkTier(`value`: ForwardingRuleNetworkTier?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkTier = mapped
}
/**
* @param value This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field.
*/
@JvmName("nclaqilnvncysyrs")
public suspend fun noAutomateDnsZone(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.noAutomateDnsZone = mapped
}
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By backend service-based network load balancers, target pool-based network load balancers, internal proxy load balancers, external proxy load balancers, Traffic Director, external protocol forwarding, and Classic VPN. Some products have restrictions on what ports can be used. See port specifications for details. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("oxgeyvrhmkmytpod")
public suspend fun portRange(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.portRange = mapped
}
/**
* @param value This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("kyarwdeolqwfsacg")
public suspend fun ports(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ports = mapped
}
/**
* @param values This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)?
*/
@JvmName("eoxihecolhldnkwt")
public suspend fun ports(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ports = mapped
}
/**
* @param value
*/
@JvmName("lmqssbpqfnytaies")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value
*/
@JvmName("sdjillmsxacojsmf")
public suspend fun pscConnectionStatus(`value`: ForwardingRulePscConnectionStatus?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pscConnectionStatus = mapped
}
/**
* @param value
*/
@JvmName("mnkchwdnopnntied")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @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("ugclfumtqoluhiwg")
public suspend fun requestId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requestId = mapped
}
/**
* @param value Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("rpbsmfnejujlqcug")
public suspend fun serviceDirectoryRegistrations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceDirectoryRegistrations = mapped
}
/**
* @param argument Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("pykxfpmjqerxstqg")
public suspend fun serviceDirectoryRegistrations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ForwardingRuleServiceDirectoryRegistrationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serviceDirectoryRegistrations = mapped
}
/**
* @param argument Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("cntdfsxmjgkontpn")
public suspend fun serviceDirectoryRegistrations(vararg argument: suspend ForwardingRuleServiceDirectoryRegistrationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ForwardingRuleServiceDirectoryRegistrationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serviceDirectoryRegistrations = mapped
}
/**
* @param argument Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("smtrvktvtpewbyco")
public suspend fun serviceDirectoryRegistrations(argument: suspend ForwardingRuleServiceDirectoryRegistrationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ForwardingRuleServiceDirectoryRegistrationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.serviceDirectoryRegistrations = mapped
}
/**
* @param values Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
*/
@JvmName("elpnubukmxwxhgwc")
public suspend fun serviceDirectoryRegistrations(vararg values: ForwardingRuleServiceDirectoryRegistrationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceDirectoryRegistrations = mapped
}
/**
* @param value An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing.
*/
@JvmName("pyywaycokmqqyskw")
public suspend fun serviceLabel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceLabel = mapped
}
/**
* @param value If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
*/
@JvmName("tsvgxdklxibmefwc")
public suspend fun sourceIpRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceIpRanges = mapped
}
/**
* @param values If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
*/
@JvmName("iosueyqckcaabftd")
public suspend fun sourceIpRanges(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceIpRanges = mapped
}
/**
* @param value This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6.
*/
@JvmName("pfoxkxfnphuiqhwo")
public suspend fun subnetwork(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnetwork = mapped
}
/**
* @param value The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment.
*/
@JvmName("iexostremsrbncgy")
public suspend fun target(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.target = mapped
}
internal fun build(): ForwardingRuleArgs = ForwardingRuleArgs(
allPorts = allPorts,
allowGlobalAccess = allowGlobalAccess,
allowPscGlobalAccess = allowPscGlobalAccess,
backendService = backendService,
description = description,
ipAddress = ipAddress,
ipProtocol = ipProtocol,
ipVersion = ipVersion,
isMirroringCollector = isMirroringCollector,
labels = labels,
loadBalancingScheme = loadBalancingScheme,
metadataFilters = metadataFilters,
name = name,
network = network,
networkTier = networkTier,
noAutomateDnsZone = noAutomateDnsZone,
portRange = portRange,
ports = ports,
project = project,
pscConnectionStatus = pscConnectionStatus,
region = region,
requestId = requestId,
serviceDirectoryRegistrations = serviceDirectoryRegistrations,
serviceLabel = serviceLabel,
sourceIpRanges = sourceIpRanges,
subnetwork = subnetwork,
target = target,
)
}