com.pulumi.kubernetes.extensions.v1beta1.kotlin.outputs.IngressBackend.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.extensions.v1beta1.kotlin.outputs
import com.pulumi.core.Either
import com.pulumi.kubernetes.core.v1.kotlin.outputs.TypedLocalObjectReference
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* IngressBackend describes all endpoints for a given service and port.
* @property resource Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.
* @property serviceName Specifies the name of the referenced service.
* @property servicePort Specifies the port of the referenced service.
*/
public data class IngressBackend(
public val resource: TypedLocalObjectReference? = null,
public val serviceName: String,
public val servicePort: Either,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.extensions.v1beta1.outputs.IngressBackend): IngressBackend = IngressBackend(
resource = javaType.resource().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.TypedLocalObjectReference.Companion.toKotlin(args0)
})
}).orElse(null),
serviceName = javaType.serviceName(),
servicePort = javaType.servicePort().transform({ args0 -> args0 }, { args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy