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

com.pulumi.awsnative.networkfirewall.kotlin.FirewallPolicyArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkfirewall.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.networkfirewall.FirewallPolicyArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource type definition for AWS::NetworkFirewall::FirewallPolicy
 * @property description A description of the firewall policy.
 * @property firewallPolicy The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
 * @property firewallPolicyName The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class FirewallPolicyArgs(
    public val description: Output? = null,
    public val firewallPolicy: Output? = null,
    public val firewallPolicyName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.FirewallPolicyArgs =
        com.pulumi.awsnative.networkfirewall.FirewallPolicyArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .firewallPolicy(firewallPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .firewallPolicyName(firewallPolicyName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FirewallPolicyArgs].
 */
@PulumiTagMarker
public class FirewallPolicyArgsBuilder internal constructor() {
    private var description: Output? = null

    private var firewallPolicy:
        Output? = null

    private var firewallPolicyName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A description of the firewall policy.
     */
    @JvmName("refkhthhykgbemuc")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
     */
    @JvmName("tnyyccmqtsnplbsf")
    public suspend fun firewallPolicy(`value`: Output) {
        this.firewallPolicy = value
    }

    /**
     * @param value The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.
     */
    @JvmName("ctodpfxbfxgtkjvo")
    public suspend fun firewallPolicyName(`value`: Output) {
        this.firewallPolicyName = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("hndguneidafnsjev")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("aajgpxxtawvqwrll")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("xuevdreryhfeyiqj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A description of the firewall policy.
     */
    @JvmName("bwffvqaohbokxfvn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
     */
    @JvmName("hakhmfmxwkrrvlxx")
    public suspend fun firewallPolicy(`value`: com.pulumi.awsnative.networkfirewall.kotlin.inputs.FirewallPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallPolicy = mapped
    }

    /**
     * @param argument The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
     */
    @JvmName("eaubixgaarkvwctl")
    public suspend fun firewallPolicy(argument: suspend com.pulumi.awsnative.networkfirewall.kotlin.inputs.FirewallPolicyArgsBuilder.() -> Unit) {
        val toBeMapped =
            com.pulumi.awsnative.networkfirewall.kotlin.inputs.FirewallPolicyArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.firewallPolicy = mapped
    }

    /**
     * @param value The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.
     */
    @JvmName("bvhisaojnhnlftjg")
    public suspend fun firewallPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallPolicyName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("prkwaujvdxaenlcf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("gmxgrhslyuiijwrl")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("uybvmrcxedmbiguc")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ewknmarnvkcrvanc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("qymxwhcncqyhgnqg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FirewallPolicyArgs = FirewallPolicyArgs(
        description = description,
        firewallPolicy = firewallPolicy,
        firewallPolicyName = firewallPolicyName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy