com.pulumi.gcp.compute.kotlin.outputs.RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction.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 before 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 before forwarding the request to the backendService.
* @property responseHeadersToAdds Headers to add the response before 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 before sending the response back to the client.
*/
public data class RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction(
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.RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction): RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction =
RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction(
requestHeadersToAdds = javaType.requestHeadersToAdds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd.Companion.toKotlin(args0)
})
}),
requestHeadersToRemoves = javaType.requestHeadersToRemoves().map({ args0 -> args0 }),
responseHeadersToAdds = javaType.responseHeadersToAdds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd.Companion.toKotlin(args0)
})
}),
responseHeadersToRemoves = javaType.responseHeadersToRemoves().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy