com.pulumi.cloudflare.kotlin.outputs.CloudConnectorRulesRule.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.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property description Brief summary of the cloud connector rule and its intended use.
* @property enabled Whether the headers rule is active.
* @property expression Criteria for an HTTP request to trigger the cloud connector rule. Uses the Firewall Rules expression language based on Wireshark display filters.
* @property parameters Cloud Connector Rule Parameters
* @property provider Type of provider. Available values: `aws_s3`, `cloudflare_r2`, `azure_storage`, `gcp_storage`
*/
public data class CloudConnectorRulesRule(
public val description: String? = null,
public val enabled: Boolean? = null,
public val expression: String,
public val parameters: CloudConnectorRulesRuleParameters? = null,
public val provider: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.CloudConnectorRulesRule): CloudConnectorRulesRule = CloudConnectorRulesRule(
description = javaType.description().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
expression = javaType.expression(),
parameters = javaType.parameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.CloudConnectorRulesRuleParameters.Companion.toKotlin(args0)
})
}).orElse(null),
provider = javaType.provider(),
)
}
}