com.pulumi.awsnative.apprunner.kotlin.inputs.ServiceIngressConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apprunner.kotlin.inputs
import com.pulumi.awsnative.apprunner.inputs.ServiceIngressConfigurationArgs.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 kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Network ingress configuration
* @property isPubliclyAccessible It's set to true if the Apprunner service is publicly accessible. It's set to false otherwise.
*/
public data class ServiceIngressConfigurationArgs(
public val isPubliclyAccessible: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.apprunner.inputs.ServiceIngressConfigurationArgs =
com.pulumi.awsnative.apprunner.inputs.ServiceIngressConfigurationArgs.builder()
.isPubliclyAccessible(isPubliclyAccessible.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceIngressConfigurationArgs].
*/
@PulumiTagMarker
public class ServiceIngressConfigurationArgsBuilder internal constructor() {
private var isPubliclyAccessible: Output? = null
/**
* @param value It's set to true if the Apprunner service is publicly accessible. It's set to false otherwise.
*/
@JvmName("ovylwyxehlgheuwi")
public suspend fun isPubliclyAccessible(`value`: Output) {
this.isPubliclyAccessible = value
}
/**
* @param value It's set to true if the Apprunner service is publicly accessible. It's set to false otherwise.
*/
@JvmName("pfoixmfnrwchsmsj")
public suspend fun isPubliclyAccessible(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.isPubliclyAccessible = mapped
}
internal fun build(): ServiceIngressConfigurationArgs = ServiceIngressConfigurationArgs(
isPubliclyAccessible = isPubliclyAccessible ?: throw
PulumiNullFieldException("isPubliclyAccessible"),
)
}