All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherRouteRuleRouteActionWeightedBackendService.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property backendService The full or partial URL to the default BackendService resource. Before forwarding the
 * request to backendService, the loadbalancer applies any relevant headerActions
 * specified as part of this backendServiceWeight.
 * @property headerAction Specifies changes to request and response headers that need to take effect for
 * the selected backendService.
 * headerAction specified here take effect before headerAction in the enclosing
 * HttpRouteRule, PathMatcher and UrlMap.
 * Structure is documented below.
 * @property weight Specifies the fraction of traffic sent to backendService, computed as
 * weight / (sum of all weightedBackendService weights in routeAction) .
 * The selection of a backend service is determined only for new traffic. Once a user's request
 * has been directed to a backendService, subsequent requests will be sent to the same backendService
 * as determined by the BackendService's session affinity policy.
 * The value must be between 0 and 1000
 */
public data class URLMapPathMatcherRouteRuleRouteActionWeightedBackendService(
    public val backendService: String,
    public val headerAction: URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction? =
        null,
    public val weight: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.URLMapPathMatcherRouteRuleRouteActionWeightedBackendService): URLMapPathMatcherRouteRuleRouteActionWeightedBackendService =
            URLMapPathMatcherRouteRuleRouteActionWeightedBackendService(
                backendService = javaType.backendService(),
                headerAction = javaType.headerAction().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                weight = javaType.weight(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy