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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.URLMapDefaultRouteActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property corsPolicy The specification for allowing client side cross-origin requests. Please see
* [W3C Recommendation for Cross Origin Resource Sharing](https://www.w3.org/TR/cors/)
* Structure is documented below.
* @property faultInjectionPolicy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
* As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a
* percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted
* by the Loadbalancer for a percentage of requests.
* timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy.
* Structure is documented below.
* @property requestMirrorPolicy Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
* Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service,
* the host / authority header is suffixed with -shadow.
* Structure is documented below.
* @property retryPolicy Specifies the retry policy associated with this route.
* Structure is documented below.
* @property timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been
* fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries.
* If not specified, will use the largest timeout among all backend services associated with the route.
* Structure is documented below.
* @property urlRewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service.
* Structure is documented below.
* @property weightedBackendServices A list of weighted backend services to send traffic to when a route match occurs.
* The weights determine the fraction of traffic that flows to their corresponding backend service.
* If all traffic needs to go to a single backend service, there must be one weightedBackendService
* with weight set to a non 0 number.
* Once a backendService is identified and before forwarding the request to the backend service,
* advanced routing actions like Url rewrites and header transformations are applied depending on
* additional settings specified in this HttpRouteAction.
* Structure is documented below.
*/
public data class URLMapDefaultRouteActionArgs(
public val corsPolicy: Output? = null,
public val faultInjectionPolicy: Output? = null,
public val requestMirrorPolicy: Output? = null,
public val retryPolicy: Output? = null,
public val timeout: Output? = null,
public val urlRewrite: Output? = null,
public val weightedBackendServices: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapDefaultRouteActionArgs =
com.pulumi.gcp.compute.inputs.URLMapDefaultRouteActionArgs.builder()
.corsPolicy(corsPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.faultInjectionPolicy(
faultInjectionPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.requestMirrorPolicy(
requestMirrorPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.retryPolicy(retryPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.timeout(timeout?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.urlRewrite(urlRewrite?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.weightedBackendServices(
weightedBackendServices?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [URLMapDefaultRouteActionArgs].
*/
@PulumiTagMarker
public class URLMapDefaultRouteActionArgsBuilder internal constructor() {
private var corsPolicy: Output? = null
private var faultInjectionPolicy: Output? = null
private var requestMirrorPolicy: Output? = null
private var retryPolicy: Output? = null
private var timeout: Output? = null
private var urlRewrite: Output? = null
private var weightedBackendServices:
Output>? = null
/**
* @param value The specification for allowing client side cross-origin requests. Please see
* [W3C Recommendation for Cross Origin Resource Sharing](https://www.w3.org/TR/cors/)
* Structure is documented below.
*/
@JvmName("lheoeugdmbdiuafc")
public suspend fun corsPolicy(`value`: Output) {
this.corsPolicy = value
}
/**
* @param value The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
* As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a
* percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted
* by the Loadbalancer for a percentage of requests.
* timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy.
* Structure is documented below.
*/
@JvmName("ougytkrgweatnhou")
public suspend fun faultInjectionPolicy(`value`: Output) {
this.faultInjectionPolicy = value
}
/**
* @param value Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
* Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service,
* the host / authority header is suffixed with -shadow.
* Structure is documented below.
*/
@JvmName("sexinofbtkapsdgf")
public suspend fun requestMirrorPolicy(`value`: Output) {
this.requestMirrorPolicy = value
}
/**
* @param value Specifies the retry policy associated with this route.
* Structure is documented below.
*/
@JvmName("jugapdprtonmcpil")
public suspend fun retryPolicy(`value`: Output) {
this.retryPolicy = value
}
/**
* @param value Specifies the timeout for the selected route. Timeout is computed from the time the request has been
* fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries.
* If not specified, will use the largest timeout among all backend services associated with the route.
* Structure is documented below.
*/
@JvmName("eggwvfjiebivsfyp")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value The spec to modify the URL of the request, prior to forwarding the request to the matched service.
* Structure is documented below.
*/
@JvmName("kpxyonkbewglbuae")
public suspend fun urlRewrite(`value`: Output) {
this.urlRewrite = value
}
/**
* @param value A list of weighted backend services to send traffic to when a route match occurs.
* The weights determine the fraction of traffic that flows to their corresponding backend service.
* If all traffic needs to go to a single backend service, there must be one weightedBackendService
* with weight set to a non 0 number.
* Once a backendService is identified and before forwarding the request to the backend service,
* advanced routing actions like Url rewrites and header transformations are applied depending on
* additional settings specified in this HttpRouteAction.
* Structure is documented below.
*/
@JvmName("piwrkvaenxlkjonv")
public suspend fun weightedBackendServices(`value`: Output>) {
this.weightedBackendServices = value
}
@JvmName("powowjktlclcymrx")
public suspend fun weightedBackendServices(vararg values: Output) {
this.weightedBackendServices = Output.all(values.asList())
}
/**
* @param values A list of weighted backend services to send traffic to when a route match occurs.
* The weights determine the fraction of traffic that flows to their corresponding backend service.
* If all traffic needs to go to a single backend service, there must be one weightedBackendService
* with weight set to a non 0 number.
* Once a backendService is identified and before forwarding the request to the backend service,
* advanced routing actions like Url rewrites and header transformations are applied depending on
* additional settings specified in this HttpRouteAction.
* Structure is documented below.
*/
@JvmName("bvmscjkirdaaeuok")
public suspend fun weightedBackendServices(values: List