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

com.pulumi.awsnative.fms.kotlin.inputs.PolicyOptionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.fms.kotlin.inputs

import com.pulumi.awsnative.fms.inputs.PolicyOptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Firewall policy option.
 * @property networkAclCommonPolicy Defines a Firewall Manager network ACL policy.
 * @property networkFirewallPolicy Defines the deployment model to use for the firewall policy.
 * @property thirdPartyFirewallPolicy Defines the policy options for a third-party firewall policy.
 */
public data class PolicyOptionArgs(
    public val networkAclCommonPolicy: Output? = null,
    public val networkFirewallPolicy: Output? = null,
    public val thirdPartyFirewallPolicy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.fms.inputs.PolicyOptionArgs =
        com.pulumi.awsnative.fms.inputs.PolicyOptionArgs.builder()
            .networkAclCommonPolicy(
                networkAclCommonPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .networkFirewallPolicy(
                networkFirewallPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .thirdPartyFirewallPolicy(
                thirdPartyFirewallPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PolicyOptionArgs].
 */
@PulumiTagMarker
public class PolicyOptionArgsBuilder internal constructor() {
    private var networkAclCommonPolicy: Output? = null

    private var networkFirewallPolicy: Output? = null

    private var thirdPartyFirewallPolicy: Output? = null

    /**
     * @param value Defines a Firewall Manager network ACL policy.
     */
    @JvmName("ypntlyulwjlevrdk")
    public suspend fun networkAclCommonPolicy(`value`: Output) {
        this.networkAclCommonPolicy = value
    }

    /**
     * @param value Defines the deployment model to use for the firewall policy.
     */
    @JvmName("ouyrnrmixxjpbypc")
    public suspend fun networkFirewallPolicy(`value`: Output) {
        this.networkFirewallPolicy = value
    }

    /**
     * @param value Defines the policy options for a third-party firewall policy.
     */
    @JvmName("asdeelkeffxpujdj")
    public suspend fun thirdPartyFirewallPolicy(`value`: Output) {
        this.thirdPartyFirewallPolicy = value
    }

    /**
     * @param value Defines a Firewall Manager network ACL policy.
     */
    @JvmName("dnqsgteopeffklsl")
    public suspend fun networkAclCommonPolicy(`value`: PolicyNetworkAclCommonPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkAclCommonPolicy = mapped
    }

    /**
     * @param argument Defines a Firewall Manager network ACL policy.
     */
    @JvmName("sdubuewfsfyhhmnw")
    public suspend fun networkAclCommonPolicy(argument: suspend PolicyNetworkAclCommonPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyNetworkAclCommonPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkAclCommonPolicy = mapped
    }

    /**
     * @param value Defines the deployment model to use for the firewall policy.
     */
    @JvmName("swokrqkpnhgvkbeu")
    public suspend fun networkFirewallPolicy(`value`: PolicyNetworkFirewallPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkFirewallPolicy = mapped
    }

    /**
     * @param argument Defines the deployment model to use for the firewall policy.
     */
    @JvmName("urmpuprfajysreds")
    public suspend fun networkFirewallPolicy(argument: suspend PolicyNetworkFirewallPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyNetworkFirewallPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkFirewallPolicy = mapped
    }

    /**
     * @param value Defines the policy options for a third-party firewall policy.
     */
    @JvmName("itxrbrkcuuxwubmm")
    public suspend fun thirdPartyFirewallPolicy(`value`: PolicyThirdPartyFirewallPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thirdPartyFirewallPolicy = mapped
    }

    /**
     * @param argument Defines the policy options for a third-party firewall policy.
     */
    @JvmName("vdjslrhhokvhblek")
    public suspend fun thirdPartyFirewallPolicy(argument: suspend PolicyThirdPartyFirewallPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyThirdPartyFirewallPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.thirdPartyFirewallPolicy = mapped
    }

    internal fun build(): PolicyOptionArgs = PolicyOptionArgs(
        networkAclCommonPolicy = networkAclCommonPolicy,
        networkFirewallPolicy = networkFirewallPolicy,
        thirdPartyFirewallPolicy = thirdPartyFirewallPolicy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy