
com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleAction.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.outputs
import kotlin.Suppress
/**
*
* @property fixedResponse The fixed response action. The rule returns a custom HTTP response.
* @property forward The forward action. Traffic that matches the rule is forwarded to the specified target groups.
*/
public data class RuleAction(
public val fixedResponse: RuleFixedResponse? = null,
public val forward: RuleForward? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.vpclattice.outputs.RuleAction): RuleAction =
RuleAction(
fixedResponse = javaType.fixedResponse().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleFixedResponse.Companion.toKotlin(args0)
})
}).orElse(null),
forward = javaType.forward().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleForward.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy