com.pulumi.aws.appmesh.kotlin.inputs.MeshSpecArgs.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.MeshSpecArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property egressFilter Egress filter rules for the service mesh.
* @property serviceDiscovery The service discovery information for the service mesh.
*/
public data class MeshSpecArgs(
public val egressFilter: Output? = null,
public val serviceDiscovery: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appmesh.inputs.MeshSpecArgs =
com.pulumi.aws.appmesh.inputs.MeshSpecArgs.builder()
.egressFilter(egressFilter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.serviceDiscovery(
serviceDiscovery?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [MeshSpecArgs].
*/
@PulumiTagMarker
public class MeshSpecArgsBuilder internal constructor() {
private var egressFilter: Output? = null
private var serviceDiscovery: Output? = null
/**
* @param value Egress filter rules for the service mesh.
*/
@JvmName("ofhnjjgwbpqxpyat")
public suspend fun egressFilter(`value`: Output) {
this.egressFilter = value
}
/**
* @param value The service discovery information for the service mesh.
*/
@JvmName("llvudticopfcyrdp")
public suspend fun serviceDiscovery(`value`: Output) {
this.serviceDiscovery = value
}
/**
* @param value Egress filter rules for the service mesh.
*/
@JvmName("lpikthxexhnowtug")
public suspend fun egressFilter(`value`: MeshSpecEgressFilterArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.egressFilter = mapped
}
/**
* @param argument Egress filter rules for the service mesh.
*/
@JvmName("rdeicxpsilbwsnls")
public suspend fun egressFilter(argument: suspend MeshSpecEgressFilterArgsBuilder.() -> Unit) {
val toBeMapped = MeshSpecEgressFilterArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.egressFilter = mapped
}
/**
* @param value The service discovery information for the service mesh.
*/
@JvmName("buiclpgemkpxsgju")
public suspend fun serviceDiscovery(`value`: MeshSpecServiceDiscoveryArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceDiscovery = mapped
}
/**
* @param argument The service discovery information for the service mesh.
*/
@JvmName("hxvrqtnmccbhdtpu")
public suspend fun serviceDiscovery(argument: suspend MeshSpecServiceDiscoveryArgsBuilder.() -> Unit) {
val toBeMapped = MeshSpecServiceDiscoveryArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.serviceDiscovery = mapped
}
internal fun build(): MeshSpecArgs = MeshSpecArgs(
egressFilter = egressFilter,
serviceDiscovery = serviceDiscovery,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy