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

com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleAction.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.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