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.
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.gcp.firebase.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs.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 redirects An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path,
* triggers Hosting to respond with a redirect to the specified destination path.
* Structure is documented below.
* @property rewrites An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the
* request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
* Structure is documented below.
*/
public data class HostingVersionConfigArgs(
public val redirects: Output>? = null,
public val rewrites: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs =
com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs.builder()
.redirects(
redirects?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.rewrites(
rewrites?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [HostingVersionConfigArgs].
*/
@PulumiTagMarker
public class HostingVersionConfigArgsBuilder internal constructor() {
private var redirects: Output>? = null
private var rewrites: Output>? = null
/**
* @param value An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path,
* triggers Hosting to respond with a redirect to the specified destination path.
* Structure is documented below.
*/
@JvmName("igboysjfrenhaift")
public suspend fun redirects(`value`: Output>) {
this.redirects = value
}
@JvmName("xxixubwvdmtmgfnt")
public suspend fun redirects(vararg values: Output) {
this.redirects = Output.all(values.asList())
}
/**
* @param values An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path,
* triggers Hosting to respond with a redirect to the specified destination path.
* Structure is documented below.
*/
@JvmName("ymlagwqbbhmxontt")
public suspend fun redirects(values: List