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.azurenative.appplatform.kotlin.inputs
import com.pulumi.azurenative.appplatform.inputs.GatewayRouteConfigPropertiesArgs.builder
import com.pulumi.azurenative.appplatform.kotlin.enums.GatewayRouteConfigProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* API route config of the Spring Cloud Gateway
* @property appResourceId The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
* @property filters To modify the request before sending it to the target endpoint, or the received response in app level.
* @property openApi OpenAPI properties of Spring Cloud Gateway route config.
* @property predicates A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
* @property protocol Protocol of routed Azure Spring Apps applications.
* @property routes Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
* @property ssoEnabled Enable Single Sign-On in app level.
*/
public data class GatewayRouteConfigPropertiesArgs(
public val appResourceId: Output? = null,
public val filters: Output>? = null,
public val openApi: Output? = null,
public val predicates: Output>? = null,
public val protocol: Output>? = null,
public val routes: Output>? = null,
public val ssoEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.inputs.GatewayRouteConfigPropertiesArgs = com.pulumi.azurenative.appplatform.inputs.GatewayRouteConfigPropertiesArgs.builder()
.appResourceId(appResourceId?.applyValue({ args0 -> args0 }))
.filters(filters?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.openApi(openApi?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.predicates(predicates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.protocol(
protocol?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.routes(routes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.ssoEnabled(ssoEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GatewayRouteConfigPropertiesArgs].
*/
@PulumiTagMarker
public class GatewayRouteConfigPropertiesArgsBuilder internal constructor() {
private var appResourceId: Output? = null
private var filters: Output>? = null
private var openApi: Output? = null
private var predicates: Output>? = null
private var protocol: Output>? = null
private var routes: Output>? = null
private var ssoEnabled: Output? = null
/**
* @param value The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
*/
@JvmName("eocwwdtlswoaaiid")
public suspend fun appResourceId(`value`: Output) {
this.appResourceId = value
}
/**
* @param value To modify the request before sending it to the target endpoint, or the received response in app level.
*/
@JvmName("xqkqufcqmpcddchs")
public suspend fun filters(`value`: Output>) {
this.filters = value
}
@JvmName("sbtuivubffuswuhu")
public suspend fun filters(vararg values: Output) {
this.filters = Output.all(values.asList())
}
/**
* @param values To modify the request before sending it to the target endpoint, or the received response in app level.
*/
@JvmName("hlgphatmoyyewsoh")
public suspend fun filters(values: List