![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cdn.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property cacheExpirationAction A `cache_expiration_action` block as defined above.
* @property cacheKeyQueryStringAction A `cache_key_query_string_action` block as defined above.
* @property modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
* @property modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
* @property urlRedirectAction A `url_redirect_action` block as defined below.
* @property urlRewriteAction A `url_rewrite_action` block as defined below.
*/
public data class EndpointGlobalDeliveryRule(
public val cacheExpirationAction: EndpointGlobalDeliveryRuleCacheExpirationAction? = null,
public val cacheKeyQueryStringAction: EndpointGlobalDeliveryRuleCacheKeyQueryStringAction? = null,
public val modifyRequestHeaderActions: List? =
null,
public val modifyResponseHeaderActions: List? = null,
public val urlRedirectAction: EndpointGlobalDeliveryRuleUrlRedirectAction? = null,
public val urlRewriteAction: EndpointGlobalDeliveryRuleUrlRewriteAction? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.EndpointGlobalDeliveryRule): EndpointGlobalDeliveryRule = EndpointGlobalDeliveryRule(
cacheExpirationAction = javaType.cacheExpirationAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleCacheExpirationAction.Companion.toKotlin(args0)
})
}).orElse(null),
cacheKeyQueryStringAction = javaType.cacheKeyQueryStringAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleCacheKeyQueryStringAction.Companion.toKotlin(args0)
})
}).orElse(null),
modifyRequestHeaderActions = javaType.modifyRequestHeaderActions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleModifyRequestHeaderAction.Companion.toKotlin(args0)
})
}),
modifyResponseHeaderActions = javaType.modifyResponseHeaderActions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleModifyResponseHeaderAction.Companion.toKotlin(args0)
})
}),
urlRedirectAction = javaType.urlRedirectAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleUrlRedirectAction.Companion.toKotlin(args0)
})
}).orElse(null),
urlRewriteAction = javaType.urlRewriteAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.EndpointGlobalDeliveryRuleUrlRewriteAction.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy