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

com.pulumi.awsnative.events.kotlin.inputs.EndpointPrimaryArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.events.kotlin.inputs

import com.pulumi.awsnative.events.inputs.EndpointPrimaryArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property healthCheck The ARN of the health check used by the endpoint to determine whether failover is triggered.
 */
public data class EndpointPrimaryArgs(
    public val healthCheck: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.inputs.EndpointPrimaryArgs =
        com.pulumi.awsnative.events.inputs.EndpointPrimaryArgs.builder()
            .healthCheck(healthCheck.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointPrimaryArgs].
 */
@PulumiTagMarker
public class EndpointPrimaryArgsBuilder internal constructor() {
    private var healthCheck: Output? = null

    /**
     * @param value The ARN of the health check used by the endpoint to determine whether failover is triggered.
     */
    @JvmName("vdaixhfdbnncnjbq")
    public suspend fun healthCheck(`value`: Output) {
        this.healthCheck = value
    }

    /**
     * @param value The ARN of the health check used by the endpoint to determine whether failover is triggered.
     */
    @JvmName("lxulersvivvevovj")
    public suspend fun healthCheck(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.healthCheck = mapped
    }

    internal fun build(): EndpointPrimaryArgs = EndpointPrimaryArgs(
        healthCheck = healthCheck ?: throw PulumiNullFieldException("healthCheck"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy