com.pulumi.awsnative.vpclattice.kotlin.RuleArgs.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.vpclattice.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.vpclattice.RuleArgs.builder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleActionArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleActionArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleMatchArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleMatchArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions.
* @property action Describes the action for a rule.
* @property listenerIdentifier The ID or Amazon Resource Name (ARN) of the listener.
* @property match The rule match.
* @property name The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
* If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
* @property priority The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
* @property serviceIdentifier The ID or Amazon Resource Name (ARN) of the service.
* @property tags The tags for the rule.
*/
public data class RuleArgs(
public val action: Output? = null,
public val listenerIdentifier: Output? = null,
public val match: Output? = null,
public val name: Output? = null,
public val priority: Output? = null,
public val serviceIdentifier: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.vpclattice.RuleArgs =
com.pulumi.awsnative.vpclattice.RuleArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.listenerIdentifier(listenerIdentifier?.applyValue({ args0 -> args0 }))
.match(match?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.priority(priority?.applyValue({ args0 -> args0 }))
.serviceIdentifier(serviceIdentifier?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [RuleArgs].
*/
@PulumiTagMarker
public class RuleArgsBuilder internal constructor() {
private var action: Output? = null
private var listenerIdentifier: Output? = null
private var match: Output? = null
private var name: Output? = null
private var priority: Output? = null
private var serviceIdentifier: Output? = null
private var tags: Output>? = null
/**
* @param value Describes the action for a rule.
*/
@JvmName("spxibfossyebynup")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The ID or Amazon Resource Name (ARN) of the listener.
*/
@JvmName("tgnntvmaasrnsmys")
public suspend fun listenerIdentifier(`value`: Output) {
this.listenerIdentifier = value
}
/**
* @param value The rule match.
*/
@JvmName("jvkdrlryjtqaiyaj")
public suspend fun match(`value`: Output) {
this.match = value
}
/**
* @param value The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
* If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
*/
@JvmName("uocjypdxligtmspx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
*/
@JvmName("srlbkjvvvomyjgdr")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value The ID or Amazon Resource Name (ARN) of the service.
*/
@JvmName("lwksjtxqgbfeonxc")
public suspend fun serviceIdentifier(`value`: Output) {
this.serviceIdentifier = value
}
/**
* @param value The tags for the rule.
*/
@JvmName("ncnnggmvhniwomyj")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("tiidxqqwephigudp")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values The tags for the rule.
*/
@JvmName("lehsqvqoarjxgajd")
public suspend fun tags(values: List