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

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

package com.pulumi.awsnative.amplify.kotlin

import com.pulumi.awsnative.amplify.DomainArgs.builder
import com.pulumi.awsnative.amplify.kotlin.inputs.DomainCertificateSettingsArgs
import com.pulumi.awsnative.amplify.kotlin.inputs.DomainCertificateSettingsArgsBuilder
import com.pulumi.awsnative.amplify.kotlin.inputs.DomainSubDomainSettingArgs
import com.pulumi.awsnative.amplify.kotlin.inputs.DomainSubDomainSettingArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.
 * @property appId The unique ID for an Amplify app.
 * @property autoSubDomainCreationPatterns Sets the branch patterns for automatic subdomain creation.
 * @property autoSubDomainIamRole The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
 * @property certificateSettings The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
 * @property domainName The domain name for the domain association.
 * @property enableAutoSubDomain Enables the automated creation of subdomains for branches.
 * @property subDomainSettings The setting for the subdomain.
 */
public data class DomainArgs(
    public val appId: Output? = null,
    public val autoSubDomainCreationPatterns: Output>? = null,
    public val autoSubDomainIamRole: Output? = null,
    public val certificateSettings: Output? = null,
    public val domainName: Output? = null,
    public val enableAutoSubDomain: Output? = null,
    public val subDomainSettings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplify.DomainArgs =
        com.pulumi.awsnative.amplify.DomainArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .autoSubDomainCreationPatterns(
                autoSubDomainCreationPatterns?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .autoSubDomainIamRole(autoSubDomainIamRole?.applyValue({ args0 -> args0 }))
            .certificateSettings(
                certificateSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .enableAutoSubDomain(enableAutoSubDomain?.applyValue({ args0 -> args0 }))
            .subDomainSettings(
                subDomainSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DomainArgs].
 */
@PulumiTagMarker
public class DomainArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var autoSubDomainCreationPatterns: Output>? = null

    private var autoSubDomainIamRole: Output? = null

    private var certificateSettings: Output? = null

    private var domainName: Output? = null

    private var enableAutoSubDomain: Output? = null

    private var subDomainSettings: Output>? = null

    /**
     * @param value The unique ID for an Amplify app.
     */
    @JvmName("tguylgjpmmyulcfs")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value Sets the branch patterns for automatic subdomain creation.
     */
    @JvmName("olwmyqteiuublrcr")
    public suspend fun autoSubDomainCreationPatterns(`value`: Output>) {
        this.autoSubDomainCreationPatterns = value
    }

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

    /**
     * @param values Sets the branch patterns for automatic subdomain creation.
     */
    @JvmName("gmqshrdsgnjjsvhs")
    public suspend fun autoSubDomainCreationPatterns(values: List>) {
        this.autoSubDomainCreationPatterns = Output.all(values)
    }

    /**
     * @param value The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
     */
    @JvmName("vrswktefinnkvpud")
    public suspend fun autoSubDomainIamRole(`value`: Output) {
        this.autoSubDomainIamRole = value
    }

    /**
     * @param value The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
     */
    @JvmName("rnukainegvaxmmiw")
    public suspend fun certificateSettings(`value`: Output) {
        this.certificateSettings = value
    }

    /**
     * @param value The domain name for the domain association.
     */
    @JvmName("qkenaidltkfwmknf")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value Enables the automated creation of subdomains for branches.
     */
    @JvmName("wcdmrlbsnxhandlb")
    public suspend fun enableAutoSubDomain(`value`: Output) {
        this.enableAutoSubDomain = value
    }

    /**
     * @param value The setting for the subdomain.
     */
    @JvmName("lojsypsjwsbrvunu")
    public suspend fun subDomainSettings(`value`: Output>) {
        this.subDomainSettings = value
    }

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

    /**
     * @param values The setting for the subdomain.
     */
    @JvmName("ahrjxnjeodyrehty")
    public suspend fun subDomainSettings(values: List>) {
        this.subDomainSettings = Output.all(values)
    }

    /**
     * @param value The unique ID for an Amplify app.
     */
    @JvmName("uwuscjcvojnrmqdn")
    public suspend fun appId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value Sets the branch patterns for automatic subdomain creation.
     */
    @JvmName("vnnsfdwptkihjjsm")
    public suspend fun autoSubDomainCreationPatterns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoSubDomainCreationPatterns = mapped
    }

    /**
     * @param values Sets the branch patterns for automatic subdomain creation.
     */
    @JvmName("ydpfistetbhyfhxw")
    public suspend fun autoSubDomainCreationPatterns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autoSubDomainCreationPatterns = mapped
    }

    /**
     * @param value The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
     */
    @JvmName("eygkjcvayicxotau")
    public suspend fun autoSubDomainIamRole(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoSubDomainIamRole = mapped
    }

    /**
     * @param value The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
     */
    @JvmName("eifhoikkcmihwgay")
    public suspend fun certificateSettings(`value`: DomainCertificateSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateSettings = mapped
    }

    /**
     * @param argument The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
     */
    @JvmName("btagdyjnsubbbajw")
    public suspend fun certificateSettings(argument: suspend DomainCertificateSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = DomainCertificateSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.certificateSettings = mapped
    }

    /**
     * @param value The domain name for the domain association.
     */
    @JvmName("vlrrqmapoerxydlx")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value Enables the automated creation of subdomains for branches.
     */
    @JvmName("ijostgdjpsoboiav")
    public suspend fun enableAutoSubDomain(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAutoSubDomain = mapped
    }

    /**
     * @param value The setting for the subdomain.
     */
    @JvmName("naspeiekxtsgaytq")
    public suspend fun subDomainSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subDomainSettings = mapped
    }

    /**
     * @param argument The setting for the subdomain.
     */
    @JvmName("rplpvtuogmpgsbmh")
    public suspend fun subDomainSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DomainSubDomainSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subDomainSettings = mapped
    }

    /**
     * @param argument The setting for the subdomain.
     */
    @JvmName("mmkgkhbsujrtqlrr")
    public suspend fun subDomainSettings(vararg argument: suspend DomainSubDomainSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DomainSubDomainSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subDomainSettings = mapped
    }

    /**
     * @param argument The setting for the subdomain.
     */
    @JvmName("infopulhdrxmvebu")
    public suspend fun subDomainSettings(argument: suspend DomainSubDomainSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DomainSubDomainSettingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.subDomainSettings = mapped
    }

    /**
     * @param values The setting for the subdomain.
     */
    @JvmName("qauxnxtuwihlrvei")
    public suspend fun subDomainSettings(vararg values: DomainSubDomainSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subDomainSettings = mapped
    }

    internal fun build(): DomainArgs = DomainArgs(
        appId = appId,
        autoSubDomainCreationPatterns = autoSubDomainCreationPatterns,
        autoSubDomainIamRole = autoSubDomainIamRole,
        certificateSettings = certificateSettings,
        domainName = domainName,
        enableAutoSubDomain = enableAutoSubDomain,
        subDomainSettings = subDomainSettings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy