com.pulumi.cloudflare.kotlin.inputs.CloudConnectorRulesRuleArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.CloudConnectorRulesRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @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 CloudConnectorRulesRuleArgs(
public val description: Output? = null,
public val enabled: Output? = null,
public val expression: Output,
public val parameters: Output? = null,
public val provider: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.CloudConnectorRulesRuleArgs =
com.pulumi.cloudflare.inputs.CloudConnectorRulesRuleArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.expression(expression.applyValue({ args0 -> args0 }))
.parameters(parameters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.provider(provider.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CloudConnectorRulesRuleArgs].
*/
@PulumiTagMarker
public class CloudConnectorRulesRuleArgsBuilder internal constructor() {
private var description: Output? = null
private var enabled: Output? = null
private var expression: Output? = null
private var parameters: Output? = null
private var provider: Output? = null
/**
* @param value Brief summary of the cloud connector rule and its intended use.
*/
@JvmName("nkcgxpupwyalohrw")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Whether the headers rule is active.
*/
@JvmName("ahgvdwtcfcbuwjte")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Criteria for an HTTP request to trigger the cloud connector rule. Uses the Firewall Rules expression language based on Wireshark display filters.
*/
@JvmName("faptcyekfmbrxrha")
public suspend fun expression(`value`: Output) {
this.expression = value
}
/**
* @param value Cloud Connector Rule Parameters
*/
@JvmName("rrgwpvqhrgjrqspl")
public suspend fun parameters(`value`: Output) {
this.parameters = value
}
/**
* @param value Type of provider. Available values: `aws_s3`, `cloudflare_r2`, `azure_storage`, `gcp_storage`
*/
@JvmName("rmlyqxuclcdhmkvc")
public suspend fun provider(`value`: Output) {
this.provider = value
}
/**
* @param value Brief summary of the cloud connector rule and its intended use.
*/
@JvmName("iwwtpjnluyvmvhap")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Whether the headers rule is active.
*/
@JvmName("gygfotpxyrhybwyu")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Criteria for an HTTP request to trigger the cloud connector rule. Uses the Firewall Rules expression language based on Wireshark display filters.
*/
@JvmName("jqohaphkmwdaurwn")
public suspend fun expression(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.expression = mapped
}
/**
* @param value Cloud Connector Rule Parameters
*/
@JvmName("txreqpnrjtfrdths")
public suspend fun parameters(`value`: CloudConnectorRulesRuleParametersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param argument Cloud Connector Rule Parameters
*/
@JvmName("mbcwyukksyceqnre")
public suspend fun parameters(argument: suspend CloudConnectorRulesRuleParametersArgsBuilder.() -> Unit) {
val toBeMapped = CloudConnectorRulesRuleParametersArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.parameters = mapped
}
/**
* @param value Type of provider. Available values: `aws_s3`, `cloudflare_r2`, `azure_storage`, `gcp_storage`
*/
@JvmName("isfqkfrhejynmkfx")
public suspend fun provider(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provider = mapped
}
internal fun build(): CloudConnectorRulesRuleArgs = CloudConnectorRulesRuleArgs(
description = description,
enabled = enabled,
expression = expression ?: throw PulumiNullFieldException("expression"),
parameters = parameters,
provider = provider ?: throw PulumiNullFieldException("provider"),
)
}