com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property requestHeadersToAdds Headers to add to a matching request prior to forwarding the request to the backendService.
* Structure is documented below.
* @property requestHeadersToRemoves A list of header names for headers that need to be removed from the request prior to
* forwarding the request to the backendService.
* @property responseHeadersToAdds Headers to add the response prior to sending the response back to the client.
* Structure is documented below.
* @property responseHeadersToRemoves A list of header names for headers that need to be removed from the response prior to sending the
* response back to the client.
*/
public data class URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction(
public val requestHeadersToAdds: List? =
null,
public val requestHeadersToRemoves: List? = null,
public val responseHeadersToAdds: List? =
null,
public val responseHeadersToRemoves: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction): URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction =
URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction(
requestHeadersToAdds = javaType.requestHeadersToAdds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd.Companion.toKotlin(args0)
})
}),
requestHeadersToRemoves = javaType.requestHeadersToRemoves().map({ args0 -> args0 }),
responseHeadersToAdds = javaType.responseHeadersToAdds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd.Companion.toKotlin(args0)
})
}),
responseHeadersToRemoves = javaType.responseHeadersToRemoves().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy