com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersHeader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property expression Use a value dynamically determined by the Firewall Rules expression language based on Wireshark display filters. Refer to the [Firewall Rules language](https://developers.cloudflare.com/firewall/cf-firewall-language) documentation for all available fields, operators, and functions. Conflicts with `"value"`.
* @property name Name of the HTTP request header to target.
* @property operation Action to perform on the HTTP request header. Available values: `remove`, `set`, `add`
* @property value Static value to provide as the HTTP request header value. Conflicts with `"expression"`.
*/
public data class GetRulesetsRulesetRuleActionParametersHeader(
public val expression: String? = null,
public val name: String? = null,
public val operation: String? = null,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersHeader): GetRulesetsRulesetRuleActionParametersHeader = GetRulesetsRulesetRuleActionParametersHeader(
expression = javaType.expression().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
operation = javaType.operation().map({ args0 -> args0 }).orElse(null),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}