All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property cdnPolicy The policy to use for defining caching and signed request behaviour for requests that match this route.
 * Structure is documented below.
 * @property corsPolicy CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set.
 * Structure is documented below.
 * @property urlRewrite The URL rewrite configuration for requests that match this route.
 * Structure is documented below.
 */
public data class EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction(
    public val cdnPolicy: EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy? = null,
    public val corsPolicy: EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy? = null,
    public val urlRewrite: EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction): EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction =
            EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction(
                cdnPolicy = javaType.cdnPolicy().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                corsPolicy = javaType.corsPolicy().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                urlRewrite = javaType.urlRewrite().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy