All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.configuration.kotlin.outputs.ConfigRuleCustomPolicyDetails.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.configuration.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * 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 ConfigRuleCustomPolicyDetails(
    public val enableDebugLogDelivery: Boolean? = null,
    public val policyRuntime: String? = null,
    public val policyText: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.configuration.outputs.ConfigRuleCustomPolicyDetails): ConfigRuleCustomPolicyDetails = ConfigRuleCustomPolicyDetails(
            enableDebugLogDelivery = javaType.enableDebugLogDelivery().map({ args0 -> args0 }).orElse(null),
            policyRuntime = javaType.policyRuntime().map({ args0 -> args0 }).orElse(null),
            policyText = javaType.policyText().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy