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.alpha.kotlin.BackendServiceArgs.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.alpha.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.BackendServiceArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceCompressionMode
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceIpAddressSelectionPolicy
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceLoadBalancingScheme
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceLocalityLbPolicy
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceProtocol
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceSessionAffinity
import com.pulumi.googlenative.compute.alpha.kotlin.enums.BackendServiceVpcNetworkScope
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceCdnPolicyArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceCdnPolicyArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceConnectionTrackingPolicyArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceConnectionTrackingPolicyArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceFailoverPolicyArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceFailoverPolicyArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceIAPArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceIAPArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceLocalityLoadBalancingPolicyConfigArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceLogConfigArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.BackendServiceLogConfigArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.CircuitBreakersArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.CircuitBreakersArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.ConnectionDrainingArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.ConnectionDrainingArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.ConsistentHashLoadBalancerSettingsArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.ConsistentHashLoadBalancerSettingsArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.DurationArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.DurationArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.OutlierDetectionArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.OutlierDetectionArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.SecuritySettingsArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.SecuritySettingsArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.SubsettingArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.SubsettingArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
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 BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
* @property affinityCookieTtlSec Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
* @property backends The list of backends that serve this BackendService.
* @property cdnPolicy Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
* @property circuitBreakers
* @property compressionMode Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
* @property connectionDraining
* @property connectionTrackingPolicy Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
* @property consistentHash Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
* @property customRequestHeaders Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
* @property customResponseHeaders Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property enableCDN If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
* @property failoverPolicy Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
* @property healthChecks The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
* @property iap The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
* @property ipAddressSelectionPolicy Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED).
* @property loadBalancingScheme Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer.
* @property localityLbPolicies A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
* @property localityLbPolicy The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
* @property logConfig This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
* @property maxStreamDuration Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
* @property metadatas Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
* @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.
* @property network The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
* @property outlierDetection Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
* @property port Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
* @property portName A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
* @property project
* @property protocol The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
* @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 securitySettings This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
* @property serviceBindings URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
* @property serviceLbPolicy URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. If used with a backend service, must reference a global policy. If used with a regional backend service, must reference a regional policy.
* @property sessionAffinity Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity).
* @property subsetting
* @property timeoutSec The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
* @property vpcNetworkScope The network scope of the backends that can be added to the backend service. This field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends in global VPC networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have backends in regional networks in the same scope as the backend service. Note: if not specified then GLOBAL_VPC_NETWORK will be used.
*/
public data class BackendServiceArgs(
public val affinityCookieTtlSec: Output? = null,
public val backends: Output>? = null,
public val cdnPolicy: Output? = null,
public val circuitBreakers: Output? = null,
public val compressionMode: Output? = null,
public val connectionDraining: Output? = null,
public val connectionTrackingPolicy: Output? = null,
public val consistentHash: Output? = null,
public val customRequestHeaders: Output>? = null,
public val customResponseHeaders: Output>? = null,
public val description: Output? = null,
public val enableCDN: Output? = null,
public val failoverPolicy: Output? = null,
public val healthChecks: Output>? = null,
public val iap: Output? = null,
public val ipAddressSelectionPolicy: Output? = null,
public val loadBalancingScheme: Output? = null,
public val localityLbPolicies: Output>? =
null,
public val localityLbPolicy: Output? = null,
public val logConfig: Output? = null,
public val maxStreamDuration: Output? = null,
public val metadatas: Output>? = null,
public val name: Output? = null,
public val network: Output? = null,
public val outlierDetection: Output? = null,
@Deprecated(
message = """
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
""",
)
public val port: Output? = null,
public val portName: Output? = null,
public val project: Output? = null,
public val protocol: Output? = null,
public val requestId: Output? = null,
public val securitySettings: Output? = null,
public val serviceBindings: Output>? = null,
public val serviceLbPolicy: Output? = null,
public val sessionAffinity: Output? = null,
public val subsetting: Output? = null,
public val timeoutSec: Output? = null,
public val vpcNetworkScope: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.BackendServiceArgs =
com.pulumi.googlenative.compute.alpha.BackendServiceArgs.builder()
.affinityCookieTtlSec(affinityCookieTtlSec?.applyValue({ args0 -> args0 }))
.backends(
backends?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.cdnPolicy(cdnPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.circuitBreakers(circuitBreakers?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.compressionMode(compressionMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.connectionDraining(
connectionDraining?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.connectionTrackingPolicy(
connectionTrackingPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.consistentHash(consistentHash?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.customRequestHeaders(customRequestHeaders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.customResponseHeaders(customResponseHeaders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.description(description?.applyValue({ args0 -> args0 }))
.enableCDN(enableCDN?.applyValue({ args0 -> args0 }))
.failoverPolicy(failoverPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.healthChecks(healthChecks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.iap(iap?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ipAddressSelectionPolicy(
ipAddressSelectionPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.loadBalancingScheme(
loadBalancingScheme?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.localityLbPolicies(
localityLbPolicies?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.localityLbPolicy(localityLbPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.logConfig(logConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxStreamDuration(maxStreamDuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.metadatas(
metadatas?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.network(network?.applyValue({ args0 -> args0 }))
.outlierDetection(outlierDetection?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.port(port?.applyValue({ args0 -> args0 }))
.portName(portName?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.protocol(protocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.securitySettings(securitySettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.serviceBindings(serviceBindings?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.serviceLbPolicy(serviceLbPolicy?.applyValue({ args0 -> args0 }))
.sessionAffinity(sessionAffinity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.subsetting(subsetting?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.timeoutSec(timeoutSec?.applyValue({ args0 -> args0 }))
.vpcNetworkScope(
vpcNetworkScope?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BackendServiceArgs].
*/
@PulumiTagMarker
public class BackendServiceArgsBuilder internal constructor() {
private var affinityCookieTtlSec: Output? = null
private var backends: Output>? = null
private var cdnPolicy: Output? = null
private var circuitBreakers: Output? = null
private var compressionMode: Output? = null
private var connectionDraining: Output? = null
private var connectionTrackingPolicy: Output? = null
private var consistentHash: Output? = null
private var customRequestHeaders: Output>? = null
private var customResponseHeaders: Output>? = null
private var description: Output? = null
private var enableCDN: Output? = null
private var failoverPolicy: Output? = null
private var healthChecks: Output>? = null
private var iap: Output? = null
private var ipAddressSelectionPolicy: Output? = null
private var loadBalancingScheme: Output? = null
private var localityLbPolicies: Output>? =
null
private var localityLbPolicy: Output? = null
private var logConfig: Output? = null
private var maxStreamDuration: Output? = null
private var metadatas: Output>? = null
private var name: Output? = null
private var network: Output? = null
private var outlierDetection: Output? = null
private var port: Output? = null
private var portName: Output? = null
private var project: Output? = null
private var protocol: Output? = null
private var requestId: Output? = null
private var securitySettings: Output? = null
private var serviceBindings: Output>? = null
private var serviceLbPolicy: Output? = null
private var sessionAffinity: Output? = null
private var subsetting: Output? = null
private var timeoutSec: Output? = null
private var vpcNetworkScope: Output? = null
/**
* @param value Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
*/
@JvmName("akuopiglnflimsdh")
public suspend fun affinityCookieTtlSec(`value`: Output) {
this.affinityCookieTtlSec = value
}
/**
* @param value The list of backends that serve this BackendService.
*/
@JvmName("amlygwcnuvpxjqxw")
public suspend fun backends(`value`: Output>) {
this.backends = value
}
@JvmName("wfrgqqmdjuqtwjga")
public suspend fun backends(vararg values: Output) {
this.backends = Output.all(values.asList())
}
/**
* @param values The list of backends that serve this BackendService.
*/
@JvmName("fppqrriadwmqbjwo")
public suspend fun backends(values: List>) {
this.backends = Output.all(values)
}
/**
* @param value Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
*/
@JvmName("epwxcpamvwjonrlp")
public suspend fun cdnPolicy(`value`: Output) {
this.cdnPolicy = value
}
/**
* @param value
*/
@JvmName("gctcvfsuwshxaxuj")
public suspend fun circuitBreakers(`value`: Output) {
this.circuitBreakers = value
}
/**
* @param value Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
*/
@JvmName("xmiaokfurjqtccfd")
public suspend fun compressionMode(`value`: Output) {
this.compressionMode = value
}
/**
* @param value
*/
@JvmName("dhbsseicwfdcmrup")
public suspend fun connectionDraining(`value`: Output) {
this.connectionDraining = value
}
/**
* @param value Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
*/
@JvmName("bnioemhdfvcweyhj")
public suspend fun connectionTrackingPolicy(`value`: Output) {
this.connectionTrackingPolicy = value
}
/**
* @param value Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("kinuqqsyvmnivgcd")
public suspend fun consistentHash(`value`: Output) {
this.consistentHash = value
}
/**
* @param value Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("qaahdkhrtaaawomo")
public suspend fun customRequestHeaders(`value`: Output>) {
this.customRequestHeaders = value
}
@JvmName("wukqxsrploptfbem")
public suspend fun customRequestHeaders(vararg values: Output) {
this.customRequestHeaders = Output.all(values.asList())
}
/**
* @param values Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("ogkomitjacspyodp")
public suspend fun customRequestHeaders(values: List>) {
this.customRequestHeaders = Output.all(values)
}
/**
* @param value Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("wqqgsqacqwtsfsgb")
public suspend fun customResponseHeaders(`value`: Output>) {
this.customResponseHeaders = value
}
@JvmName("tbolardvmtdovceo")
public suspend fun customResponseHeaders(vararg values: Output) {
this.customResponseHeaders = Output.all(values.asList())
}
/**
* @param values Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("bcmdknmxifvlowiy")
public suspend fun customResponseHeaders(values: List>) {
this.customResponseHeaders = Output.all(values)
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("tpvkajyvtofnncvh")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
*/
@JvmName("begpvooaybaynyyl")
public suspend fun enableCDN(`value`: Output) {
this.enableCDN = value
}
/**
* @param value Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
*/
@JvmName("tpoanvdfxwascknt")
public suspend fun failoverPolicy(`value`: Output) {
this.failoverPolicy = value
}
/**
* @param value The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
*/
@JvmName("hypxhdrewmsgdcpr")
public suspend fun healthChecks(`value`: Output>) {
this.healthChecks = value
}
@JvmName("oxylmalojjbfwpju")
public suspend fun healthChecks(vararg values: Output) {
this.healthChecks = Output.all(values.asList())
}
/**
* @param values The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
*/
@JvmName("sgbnrbsgaendpmdf")
public suspend fun healthChecks(values: List>) {
this.healthChecks = Output.all(values)
}
/**
* @param value The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
*/
@JvmName("eiodwurqpitpyxdd")
public suspend fun iap(`value`: Output) {
this.iap = value
}
/**
* @param value Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED).
*/
@JvmName("umueallbjmkrnrnq")
public suspend fun ipAddressSelectionPolicy(`value`: Output) {
this.ipAddressSelectionPolicy = value
}
/**
* @param value Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer.
*/
@JvmName("cqsytrsagtfykyvu")
public suspend fun loadBalancingScheme(`value`: Output) {
this.loadBalancingScheme = value
}
/**
* @param value A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("utfbnyawgueggbto")
public suspend fun localityLbPolicies(`value`: Output>) {
this.localityLbPolicies = value
}
@JvmName("ayumynjdqknaxgso")
public suspend fun localityLbPolicies(vararg values: Output) {
this.localityLbPolicies = Output.all(values.asList())
}
/**
* @param values A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("mddafkiibhjdytkt")
public suspend fun localityLbPolicies(values: List>) {
this.localityLbPolicies = Output.all(values)
}
/**
* @param value The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
*/
@JvmName("jnjglqgaoodqnihy")
public suspend fun localityLbPolicy(`value`: Output) {
this.localityLbPolicy = value
}
/**
* @param value This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
*/
@JvmName("nvggkibhtihqagdd")
public suspend fun logConfig(`value`: Output) {
this.logConfig = value
}
/**
* @param value Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
*/
@JvmName("yougjydekikavfwo")
public suspend fun maxStreamDuration(`value`: Output) {
this.maxStreamDuration = value
}
/**
* @param value Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
*/
@JvmName("umeljywlewyfkbob")
public suspend fun metadatas(`value`: Output>) {
this.metadatas = 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])?` 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.
*/
@JvmName("ymeabalfcsfukgbv")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
*/
@JvmName("lvlwgugbjkyufdfu")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("yapojlcxkakxhvin")
public suspend fun outlierDetection(`value`: Output) {
this.outlierDetection = value
}
/**
* @param value Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
*/
@Deprecated(
message = """
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
""",
)
@JvmName("lverokbvshkhvmym")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
*/
@JvmName("xmkiiqunrsaycqtf")
public suspend fun portName(`value`: Output) {
this.portName = value
}
/**
* @param value
*/
@JvmName("ippsljfptldeevte")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
*/
@JvmName("ywqdikryoniyjjmv")
public suspend fun protocol(`value`: Output) {
this.protocol = 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("yepdxwkfchgxract")
public suspend fun requestId(`value`: Output) {
this.requestId = value
}
/**
* @param value This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("eoyvipwlasdybdpi")
public suspend fun securitySettings(`value`: Output) {
this.securitySettings = value
}
/**
* @param value URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
*/
@JvmName("bjuopdnrhdwylagm")
public suspend fun serviceBindings(`value`: Output>) {
this.serviceBindings = value
}
@JvmName("fgerjulyrqaqodhx")
public suspend fun serviceBindings(vararg values: Output) {
this.serviceBindings = Output.all(values.asList())
}
/**
* @param values URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
*/
@JvmName("weaktotfnuufqqdh")
public suspend fun serviceBindings(values: List>) {
this.serviceBindings = Output.all(values)
}
/**
* @param value URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. If used with a backend service, must reference a global policy. If used with a regional backend service, must reference a regional policy.
*/
@JvmName("yymrpoexefeuakup")
public suspend fun serviceLbPolicy(`value`: Output) {
this.serviceLbPolicy = value
}
/**
* @param value Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity).
*/
@JvmName("vudcpegwyvxjrpxt")
public suspend fun sessionAffinity(`value`: Output) {
this.sessionAffinity = value
}
/**
* @param value
*/
@JvmName("hkvdgktubiwgapfb")
public suspend fun subsetting(`value`: Output) {
this.subsetting = value
}
/**
* @param value The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
*/
@JvmName("xmyquwmgqeaxusyy")
public suspend fun timeoutSec(`value`: Output) {
this.timeoutSec = value
}
/**
* @param value The network scope of the backends that can be added to the backend service. This field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends in global VPC networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have backends in regional networks in the same scope as the backend service. Note: if not specified then GLOBAL_VPC_NETWORK will be used.
*/
@JvmName("yntcherigwclnfhd")
public suspend fun vpcNetworkScope(`value`: Output) {
this.vpcNetworkScope = value
}
/**
* @param value Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
*/
@JvmName("adqmotvkrwgbddio")
public suspend fun affinityCookieTtlSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.affinityCookieTtlSec = mapped
}
/**
* @param value The list of backends that serve this BackendService.
*/
@JvmName("rlfqxhkbbrntrajf")
public suspend fun backends(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backends = mapped
}
/**
* @param argument The list of backends that serve this BackendService.
*/
@JvmName("koodjhoahdkfagio")
public suspend fun backends(argument: List Unit>) {
val toBeMapped = argument.toList().map { BackendArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.backends = mapped
}
/**
* @param argument The list of backends that serve this BackendService.
*/
@JvmName("yhyyjgwwgwcqpehw")
public suspend fun backends(vararg argument: suspend BackendArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { BackendArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.backends = mapped
}
/**
* @param argument The list of backends that serve this BackendService.
*/
@JvmName("cvlkkwoykuyohrre")
public suspend fun backends(argument: suspend BackendArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BackendArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.backends = mapped
}
/**
* @param values The list of backends that serve this BackendService.
*/
@JvmName("rhdkinoecqobyogj")
public suspend fun backends(vararg values: BackendArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backends = mapped
}
/**
* @param value Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
*/
@JvmName("tnncmlskobgyaofy")
public suspend fun cdnPolicy(`value`: BackendServiceCdnPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cdnPolicy = mapped
}
/**
* @param argument Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
*/
@JvmName("brlfjrscpwyrangr")
public suspend fun cdnPolicy(argument: suspend BackendServiceCdnPolicyArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceCdnPolicyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.cdnPolicy = mapped
}
/**
* @param value
*/
@JvmName("fwjxblchxlsighjt")
public suspend fun circuitBreakers(`value`: CircuitBreakersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.circuitBreakers = mapped
}
/**
* @param argument
*/
@JvmName("ordskblcogkpaccg")
public suspend fun circuitBreakers(argument: suspend CircuitBreakersArgsBuilder.() -> Unit) {
val toBeMapped = CircuitBreakersArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.circuitBreakers = mapped
}
/**
* @param value Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
*/
@JvmName("qfxxtobikmxvnsmq")
public suspend fun compressionMode(`value`: BackendServiceCompressionMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.compressionMode = mapped
}
/**
* @param value
*/
@JvmName("rtixjglqrenctsbb")
public suspend fun connectionDraining(`value`: ConnectionDrainingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectionDraining = mapped
}
/**
* @param argument
*/
@JvmName("ekxpxkeupnkyjjbq")
public suspend fun connectionDraining(argument: suspend ConnectionDrainingArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionDrainingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.connectionDraining = mapped
}
/**
* @param value Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
*/
@JvmName("chwiprugwfjhhbnp")
public suspend fun connectionTrackingPolicy(`value`: BackendServiceConnectionTrackingPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectionTrackingPolicy = mapped
}
/**
* @param argument Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
*/
@JvmName("lobhldchgxkdejlm")
public suspend fun connectionTrackingPolicy(argument: suspend BackendServiceConnectionTrackingPolicyArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceConnectionTrackingPolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.connectionTrackingPolicy = mapped
}
/**
* @param value Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("loyjopuskfpihdxr")
public suspend fun consistentHash(`value`: ConsistentHashLoadBalancerSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.consistentHash = mapped
}
/**
* @param argument Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("onjugygfjtpnqjie")
public suspend fun consistentHash(argument: suspend ConsistentHashLoadBalancerSettingsArgsBuilder.() -> Unit) {
val toBeMapped = ConsistentHashLoadBalancerSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.consistentHash = mapped
}
/**
* @param value Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("srhvavvbkwqwnavg")
public suspend fun customRequestHeaders(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customRequestHeaders = mapped
}
/**
* @param values Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("skbtlwydlnpafgpi")
public suspend fun customRequestHeaders(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customRequestHeaders = mapped
}
/**
* @param value Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("tcxtjeilxwuhalwk")
public suspend fun customResponseHeaders(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customResponseHeaders = mapped
}
/**
* @param values Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
*/
@JvmName("mqkktqtyaeuixoxt")
public suspend fun customResponseHeaders(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customResponseHeaders = mapped
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("mutkrpphmbserihn")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
*/
@JvmName("pgmofukdwbyuyaiu")
public suspend fun enableCDN(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableCDN = mapped
}
/**
* @param value Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
*/
@JvmName("qcvkjkmkotgrgdsc")
public suspend fun failoverPolicy(`value`: BackendServiceFailoverPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failoverPolicy = mapped
}
/**
* @param argument Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
*/
@JvmName("yqujfuowprgvklib")
public suspend fun failoverPolicy(argument: suspend BackendServiceFailoverPolicyArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceFailoverPolicyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.failoverPolicy = mapped
}
/**
* @param value The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
*/
@JvmName("qiguidveiejihojd")
public suspend fun healthChecks(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.healthChecks = mapped
}
/**
* @param values The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
*/
@JvmName("saxjognavgrtqkfx")
public suspend fun healthChecks(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.healthChecks = mapped
}
/**
* @param value The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
*/
@JvmName("ekxgcuuumblxahsg")
public suspend fun iap(`value`: BackendServiceIAPArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iap = mapped
}
/**
* @param argument The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
*/
@JvmName("qepjwfsoukkvtmiv")
public suspend fun iap(argument: suspend BackendServiceIAPArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceIAPArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iap = mapped
}
/**
* @param value Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED).
*/
@JvmName("ukmyaiitrxppnecw")
public suspend fun ipAddressSelectionPolicy(`value`: BackendServiceIpAddressSelectionPolicy?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipAddressSelectionPolicy = mapped
}
/**
* @param value Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer.
*/
@JvmName("gyxvfjtsswooegao")
public suspend fun loadBalancingScheme(`value`: BackendServiceLoadBalancingScheme?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.loadBalancingScheme = mapped
}
/**
* @param value A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("hqmfthdfhcdtrvoq")
public suspend fun localityLbPolicies(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.localityLbPolicies = mapped
}
/**
* @param argument A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("alanfsvejilyrase")
public suspend fun localityLbPolicies(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.localityLbPolicies = mapped
}
/**
* @param argument A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("pbxckunxctehdmqq")
public suspend fun localityLbPolicies(vararg argument: suspend BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.localityLbPolicies = mapped
}
/**
* @param argument A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("bkuaxahymaeuqgsa")
public suspend fun localityLbPolicies(argument: suspend BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder.() -> Unit) {
val toBeMapped =
listOf(
BackendServiceLocalityLoadBalancingPolicyConfigArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.localityLbPolicies = mapped
}
/**
* @param values A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
*/
@JvmName("jguiblsmkqlwadyh")
public suspend fun localityLbPolicies(vararg values: BackendServiceLocalityLoadBalancingPolicyConfigArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.localityLbPolicies = mapped
}
/**
* @param value The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
*/
@JvmName("wdikiuleqcrsubsm")
public suspend fun localityLbPolicy(`value`: BackendServiceLocalityLbPolicy?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.localityLbPolicy = mapped
}
/**
* @param value This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
*/
@JvmName("turthtlsyxxjfvpc")
public suspend fun logConfig(`value`: BackendServiceLogConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logConfig = mapped
}
/**
* @param argument This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
*/
@JvmName("xgjvkcjuisupymxa")
public suspend fun logConfig(argument: suspend BackendServiceLogConfigArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceLogConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.logConfig = mapped
}
/**
* @param value Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
*/
@JvmName("eufdorfnslhnmxim")
public suspend fun maxStreamDuration(`value`: DurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxStreamDuration = mapped
}
/**
* @param argument Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
*/
@JvmName("cdwyytobuxxnrrfx")
public suspend fun maxStreamDuration(argument: suspend DurationArgsBuilder.() -> Unit) {
val toBeMapped = DurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.maxStreamDuration = mapped
}
/**
* @param value Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
*/
@JvmName("mlraugwplueefpfi")
public suspend fun metadatas(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadatas = mapped
}
/**
* @param values Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
*/
@JvmName("rhdagcpbwngroybq")
public fun metadatas(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadatas = 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.
*/
@JvmName("lsplatfnqcihlicy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
*/
@JvmName("ovdmwspxpcotfkyf")
public suspend fun network(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.network = mapped
}
/**
* @param value Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("ocoowkfuuxeyxstn")
public suspend fun outlierDetection(`value`: OutlierDetectionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.outlierDetection = mapped
}
/**
* @param argument Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("lplyinbojbjcmelv")
public suspend fun outlierDetection(argument: suspend OutlierDetectionArgsBuilder.() -> Unit) {
val toBeMapped = OutlierDetectionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.outlierDetection = mapped
}
/**
* @param value Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
*/
@Deprecated(
message = """
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
""",
)
@JvmName("byjaklyfhbbctkvp")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
*/
@JvmName("kebbtvsexrdgrhrd")
public suspend fun portName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.portName = mapped
}
/**
* @param value
*/
@JvmName("lmxibrscrwmplcyt")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
*/
@JvmName("genwvbwnkfwwevab")
public suspend fun protocol(`value`: BackendServiceProtocol?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocol = 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("uosiqmpjymifbabn")
public suspend fun requestId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requestId = mapped
}
/**
* @param value This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("ksoieumcsomxscvj")
public suspend fun securitySettings(`value`: SecuritySettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.securitySettings = mapped
}
/**
* @param argument This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
*/
@JvmName("uonlhdrdjtwsobxm")
public suspend fun securitySettings(argument: suspend SecuritySettingsArgsBuilder.() -> Unit) {
val toBeMapped = SecuritySettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.securitySettings = mapped
}
/**
* @param value URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
*/
@JvmName("jlsleoojgjoerxox")
public suspend fun serviceBindings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceBindings = mapped
}
/**
* @param values URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
*/
@JvmName("kfqkgsjiivitsapq")
public suspend fun serviceBindings(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceBindings = mapped
}
/**
* @param value URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. If used with a backend service, must reference a global policy. If used with a regional backend service, must reference a regional policy.
*/
@JvmName("yrclpfqlkakvbubd")
public suspend fun serviceLbPolicy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceLbPolicy = mapped
}
/**
* @param value Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity).
*/
@JvmName("tqeskvsyqlnjvuxy")
public suspend fun sessionAffinity(`value`: BackendServiceSessionAffinity?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sessionAffinity = mapped
}
/**
* @param value
*/
@JvmName("ekhnlqmrwajdfiwc")
public suspend fun subsetting(`value`: SubsettingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subsetting = mapped
}
/**
* @param argument
*/
@JvmName("brhqucpfpxpyhiou")
public suspend fun subsetting(argument: suspend SubsettingArgsBuilder.() -> Unit) {
val toBeMapped = SubsettingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.subsetting = mapped
}
/**
* @param value The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
*/
@JvmName("vkesljhqkbmerixy")
public suspend fun timeoutSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeoutSec = mapped
}
/**
* @param value The network scope of the backends that can be added to the backend service. This field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends in global VPC networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have backends in regional networks in the same scope as the backend service. Note: if not specified then GLOBAL_VPC_NETWORK will be used.
*/
@JvmName("cxlqklubrjfmvpco")
public suspend fun vpcNetworkScope(`value`: BackendServiceVpcNetworkScope?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vpcNetworkScope = mapped
}
internal fun build(): BackendServiceArgs = BackendServiceArgs(
affinityCookieTtlSec = affinityCookieTtlSec,
backends = backends,
cdnPolicy = cdnPolicy,
circuitBreakers = circuitBreakers,
compressionMode = compressionMode,
connectionDraining = connectionDraining,
connectionTrackingPolicy = connectionTrackingPolicy,
consistentHash = consistentHash,
customRequestHeaders = customRequestHeaders,
customResponseHeaders = customResponseHeaders,
description = description,
enableCDN = enableCDN,
failoverPolicy = failoverPolicy,
healthChecks = healthChecks,
iap = iap,
ipAddressSelectionPolicy = ipAddressSelectionPolicy,
loadBalancingScheme = loadBalancingScheme,
localityLbPolicies = localityLbPolicies,
localityLbPolicy = localityLbPolicy,
logConfig = logConfig,
maxStreamDuration = maxStreamDuration,
metadatas = metadatas,
name = name,
network = network,
outlierDetection = outlierDetection,
port = port,
portName = portName,
project = project,
protocol = protocol,
requestId = requestId,
securitySettings = securitySettings,
serviceBindings = serviceBindings,
serviceLbPolicy = serviceLbPolicy,
sessionAffinity = sessionAffinity,
subsetting = subsetting,
timeoutSec = timeoutSec,
vpcNetworkScope = vpcNetworkScope,
)
}