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

com.pulumi.awsnative.networkfirewall.kotlin.inputs.FirewallPolicyActionDefinitionArgs.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.networkfirewall.kotlin.inputs

import com.pulumi.awsnative.networkfirewall.inputs.FirewallPolicyActionDefinitionArgs.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

/**
 *
 * @property publishMetricAction Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
 * You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
 */
public data class FirewallPolicyActionDefinitionArgs(
    public val publishMetricAction: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.FirewallPolicyActionDefinitionArgs =
        com.pulumi.awsnative.networkfirewall.inputs.FirewallPolicyActionDefinitionArgs.builder()
            .publishMetricAction(
                publishMetricAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FirewallPolicyActionDefinitionArgs].
 */
@PulumiTagMarker
public class FirewallPolicyActionDefinitionArgsBuilder internal constructor() {
    private var publishMetricAction: Output? = null

    /**
     * @param value Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
     * You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
     */
    @JvmName("gsoahwpbetbwvmjp")
    public suspend fun publishMetricAction(`value`: Output) {
        this.publishMetricAction = value
    }

    /**
     * @param value Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
     * You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
     */
    @JvmName("geotitcadxblpvdc")
    public suspend fun publishMetricAction(`value`: FirewallPolicyPublishMetricActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publishMetricAction = mapped
    }

    /**
     * @param argument Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
     * You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
     */
    @JvmName("ggbwiuxttonhscpg")
    public suspend fun publishMetricAction(argument: suspend FirewallPolicyPublishMetricActionArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyPublishMetricActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.publishMetricAction = mapped
    }

    internal fun build(): FirewallPolicyActionDefinitionArgs = FirewallPolicyActionDefinitionArgs(
        publishMetricAction = publishMetricAction,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy