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

com.pulumi.awsnative.apigatewayv2.kotlin.DomainNameArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apigatewayv2.kotlin

import com.pulumi.awsnative.apigatewayv2.DomainNameArgs.builder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.DomainNameConfigurationArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.DomainNameConfigurationArgsBuilder
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.DomainNameMutualTlsAuthenticationArgs
import com.pulumi.awsnative.apigatewayv2.kotlin.inputs.DomainNameMutualTlsAuthenticationArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The ``AWS::ApiGatewayV2::DomainName`` resource specifies a custom domain name for your API in Amazon API Gateway (API Gateway).
 *  You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see [Set up Custom Domain Name for an API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) in the *API Gateway Developer Guide*.
 * @property domainName The custom domain name for your API in Amazon API Gateway. Uppercase letters are not supported.
 * @property domainNameConfigurations The domain name configurations.
 * @property mutualTlsAuthentication The mutual TLS authentication configuration for a custom domain name.
 * @property tags The collection of tags associated with a domain name.
 */
public data class DomainNameArgs(
    public val domainName: Output? = null,
    public val domainNameConfigurations: Output>? = null,
    public val mutualTlsAuthentication: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigatewayv2.DomainNameArgs =
        com.pulumi.awsnative.apigatewayv2.DomainNameArgs.builder()
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .domainNameConfigurations(
                domainNameConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .mutualTlsAuthentication(
                mutualTlsAuthentication?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DomainNameArgs].
 */
@PulumiTagMarker
public class DomainNameArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var domainNameConfigurations: Output>? = null

    private var mutualTlsAuthentication: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The custom domain name for your API in Amazon API Gateway. Uppercase letters are not supported.
     */
    @JvmName("acnnpfbrddqebbtm")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The domain name configurations.
     */
    @JvmName("hljrkgblcfqewjcm")
    public suspend fun domainNameConfigurations(`value`: Output>) {
        this.domainNameConfigurations = value
    }

    @JvmName("lcsnrblfcwlpmmec")
    public suspend fun domainNameConfigurations(vararg values: Output) {
        this.domainNameConfigurations = Output.all(values.asList())
    }

    /**
     * @param values The domain name configurations.
     */
    @JvmName("ipmhrdwslnxlgvdh")
    public suspend fun domainNameConfigurations(values: List>) {
        this.domainNameConfigurations = Output.all(values)
    }

    /**
     * @param value The mutual TLS authentication configuration for a custom domain name.
     */
    @JvmName("iaiovvpsdivjhsiq")
    public suspend fun mutualTlsAuthentication(`value`: Output) {
        this.mutualTlsAuthentication = value
    }

    /**
     * @param value The collection of tags associated with a domain name.
     */
    @JvmName("djsdhgtyioboejyg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The custom domain name for your API in Amazon API Gateway. Uppercase letters are not supported.
     */
    @JvmName("hrtqmeniyxgmjpkx")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The domain name configurations.
     */
    @JvmName("vjxhsnxuompapgiw")
    public suspend fun domainNameConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNameConfigurations = mapped
    }

    /**
     * @param argument The domain name configurations.
     */
    @JvmName("njtitcknhlokhfej")
    public suspend fun domainNameConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DomainNameConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.domainNameConfigurations = mapped
    }

    /**
     * @param argument The domain name configurations.
     */
    @JvmName("diuvfhjdfscdnehg")
    public suspend fun domainNameConfigurations(vararg argument: suspend DomainNameConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DomainNameConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.domainNameConfigurations = mapped
    }

    /**
     * @param argument The domain name configurations.
     */
    @JvmName("xpoxkfpamkirawli")
    public suspend fun domainNameConfigurations(argument: suspend DomainNameConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DomainNameConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.domainNameConfigurations = mapped
    }

    /**
     * @param values The domain name configurations.
     */
    @JvmName("oghnwrcajukogurh")
    public suspend fun domainNameConfigurations(vararg values: DomainNameConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainNameConfigurations = mapped
    }

    /**
     * @param value The mutual TLS authentication configuration for a custom domain name.
     */
    @JvmName("fkjkrrnxwysjgfpu")
    public suspend fun mutualTlsAuthentication(`value`: DomainNameMutualTlsAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mutualTlsAuthentication = mapped
    }

    /**
     * @param argument The mutual TLS authentication configuration for a custom domain name.
     */
    @JvmName("iucwxjxdmtbnbyie")
    public suspend fun mutualTlsAuthentication(argument: suspend DomainNameMutualTlsAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = DomainNameMutualTlsAuthenticationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.mutualTlsAuthentication = mapped
    }

    /**
     * @param value The collection of tags associated with a domain name.
     */
    @JvmName("cwjerkfikxtybagh")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The collection of tags associated with a domain name.
     */
    @JvmName("fkyiutpnrltrsspk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DomainNameArgs = DomainNameArgs(
        domainName = domainName,
        domainNameConfigurations = domainNameConfigurations,
        mutualTlsAuthentication = mutualTlsAuthentication,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy