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