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

com.pulumi.awsnative.refactorspaces.kotlin.inputs.ServiceUrlEndpointInputArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.refactorspaces.kotlin.inputs

import com.pulumi.awsnative.refactorspaces.inputs.ServiceUrlEndpointInputArgs.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 healthUrl The health check URL of the URL endpoint type. If the URL is a public endpoint, the `HealthUrl` must also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL must also be a private endpoint, and the host must be the same as the URL.
 * @property url The URL to route traffic to. The URL must be an [rfc3986-formatted URL](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc3986) . If the host is a domain name, the name must be resolvable over the public internet. If the scheme is `https` , the top level domain of the host must be listed in the [IANA root zone database](https://docs.aws.amazon.com/https://www.iana.org/domains/root/db) .
 */
public data class ServiceUrlEndpointInputArgs(
    public val healthUrl: Output? = null,
    public val url: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.refactorspaces.inputs.ServiceUrlEndpointInputArgs =
        com.pulumi.awsnative.refactorspaces.inputs.ServiceUrlEndpointInputArgs.builder()
            .healthUrl(healthUrl?.applyValue({ args0 -> args0 }))
            .url(url.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceUrlEndpointInputArgs].
 */
@PulumiTagMarker
public class ServiceUrlEndpointInputArgsBuilder internal constructor() {
    private var healthUrl: Output? = null

    private var url: Output? = null

    /**
     * @param value The health check URL of the URL endpoint type. If the URL is a public endpoint, the `HealthUrl` must also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL must also be a private endpoint, and the host must be the same as the URL.
     */
    @JvmName("bsoanyxbmdisinkg")
    public suspend fun healthUrl(`value`: Output) {
        this.healthUrl = value
    }

    /**
     * @param value The URL to route traffic to. The URL must be an [rfc3986-formatted URL](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc3986) . If the host is a domain name, the name must be resolvable over the public internet. If the scheme is `https` , the top level domain of the host must be listed in the [IANA root zone database](https://docs.aws.amazon.com/https://www.iana.org/domains/root/db) .
     */
    @JvmName("ihsfqhksheinremn")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value The health check URL of the URL endpoint type. If the URL is a public endpoint, the `HealthUrl` must also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL must also be a private endpoint, and the host must be the same as the URL.
     */
    @JvmName("mkxhkwdnqpnhyvqy")
    public suspend fun healthUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthUrl = mapped
    }

    /**
     * @param value The URL to route traffic to. The URL must be an [rfc3986-formatted URL](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc3986) . If the host is a domain name, the name must be resolvable over the public internet. If the scheme is `https` , the top level domain of the host must be listed in the [IANA root zone database](https://docs.aws.amazon.com/https://www.iana.org/domains/root/db) .
     */
    @JvmName("bxpfefyynpogytme")
    public suspend fun url(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): ServiceUrlEndpointInputArgs = ServiceUrlEndpointInputArgs(
        healthUrl = healthUrl,
        url = url ?: throw PulumiNullFieldException("url"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy