com.pulumi.aws.appmesh.kotlin.inputs.RouteSpecHttp2RouteActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.appmesh.kotlin.inputs
import com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property weightedTargets Targets that traffic is routed to when a request matches the route.
* You can specify one or more targets and their relative weights with which to distribute traffic.
*/
public data class RouteSpecHttp2RouteActionArgs(
public val weightedTargets: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionArgs =
com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionArgs.builder()
.weightedTargets(
weightedTargets.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [RouteSpecHttp2RouteActionArgs].
*/
@PulumiTagMarker
public class RouteSpecHttp2RouteActionArgsBuilder internal constructor() {
private var weightedTargets: Output>? = null
/**
* @param value Targets that traffic is routed to when a request matches the route.
* You can specify one or more targets and their relative weights with which to distribute traffic.
*/
@JvmName("sainbcebxnskcpdx")
public suspend fun weightedTargets(`value`: Output>) {
this.weightedTargets = value
}
@JvmName("xlrkhswlhukvdwtv")
public suspend fun weightedTargets(vararg values: Output) {
this.weightedTargets = Output.all(values.asList())
}
/**
* @param values Targets that traffic is routed to when a request matches the route.
* You can specify one or more targets and their relative weights with which to distribute traffic.
*/
@JvmName("htsgncdnxppyilyf")
public suspend fun weightedTargets(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy