
com.pulumi.awsnative.configuration.kotlin.inputs.ConfigRuleCustomPolicyDetailsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.configuration.kotlin.inputs
import com.pulumi.awsnative.configuration.inputs.ConfigRuleCustomPolicyDetailsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides the CustomPolicyDetails, the rule owner (```` for managed rules, ``CUSTOM_POLICY`` for Custom Policy rules, and ``CUSTOM_LAMBDA`` for Custom Lambda rules), the rule identifier, and the events that cause the evaluation of your AWS resources.
* @property enableDebugLogDelivery The boolean expression for enabling debug logging for your CC Custom Policy rule. The default value is ``false``.
* @property policyRuntime The runtime system for your CC Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by CC Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://docs.aws.amazon.com/https://github.com/aws-cloudformation/cloudformation-guard).
* @property policyText The policy definition containing the logic for your CC Custom Policy rule.
*/
public data class ConfigRuleCustomPolicyDetailsArgs(
public val enableDebugLogDelivery: Output? = null,
public val policyRuntime: Output? = null,
public val policyText: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.configuration.inputs.ConfigRuleCustomPolicyDetailsArgs = com.pulumi.awsnative.configuration.inputs.ConfigRuleCustomPolicyDetailsArgs.builder()
.enableDebugLogDelivery(enableDebugLogDelivery?.applyValue({ args0 -> args0 }))
.policyRuntime(policyRuntime?.applyValue({ args0 -> args0 }))
.policyText(policyText?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConfigRuleCustomPolicyDetailsArgs].
*/
@PulumiTagMarker
public class ConfigRuleCustomPolicyDetailsArgsBuilder internal constructor() {
private var enableDebugLogDelivery: Output? = null
private var policyRuntime: Output? = null
private var policyText: Output? = null
/**
* @param value The boolean expression for enabling debug logging for your CC Custom Policy rule. The default value is ``false``.
*/
@JvmName("mdsaejkwvebslgiq")
public suspend fun enableDebugLogDelivery(`value`: Output) {
this.enableDebugLogDelivery = value
}
/**
* @param value The runtime system for your CC Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by CC Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://docs.aws.amazon.com/https://github.com/aws-cloudformation/cloudformation-guard).
*/
@JvmName("thfhlsjahmqqjfxc")
public suspend fun policyRuntime(`value`: Output) {
this.policyRuntime = value
}
/**
* @param value The policy definition containing the logic for your CC Custom Policy rule.
*/
@JvmName("aykbejlmjhjssohl")
public suspend fun policyText(`value`: Output) {
this.policyText = value
}
/**
* @param value The boolean expression for enabling debug logging for your CC Custom Policy rule. The default value is ``false``.
*/
@JvmName("pqvcldoufxguhtfv")
public suspend fun enableDebugLogDelivery(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableDebugLogDelivery = mapped
}
/**
* @param value The runtime system for your CC Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by CC Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://docs.aws.amazon.com/https://github.com/aws-cloudformation/cloudformation-guard).
*/
@JvmName("tunwltsalplpbasm")
public suspend fun policyRuntime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyRuntime = mapped
}
/**
* @param value The policy definition containing the logic for your CC Custom Policy rule.
*/
@JvmName("ybgcicyhgaaksgnb")
public suspend fun policyText(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyText = mapped
}
internal fun build(): ConfigRuleCustomPolicyDetailsArgs = ConfigRuleCustomPolicyDetailsArgs(
enableDebugLogDelivery = enableDebugLogDelivery,
policyRuntime = policyRuntime,
policyText = policyText,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy