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

com.pulumi.googlenative.appengine.v1alpha.kotlin.DomainMappingArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.appengine.v1alpha.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.appengine.v1alpha.DomainMappingArgs.builder
import com.pulumi.googlenative.appengine.v1alpha.kotlin.inputs.SslSettingsArgs
import com.pulumi.googlenative.appengine.v1alpha.kotlin.inputs.SslSettingsArgsBuilder
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.jvm.JvmName

/**
 * Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
 * Auto-naming is currently not supported for this resource.
 * @property appId
 * @property id Relative name of the domain serving the application. Example: example.com.
 * @property noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
 * @property overrideStrategy Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.
 * @property sslSettings SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
 */
public data class DomainMappingArgs(
    public val appId: Output? = null,
    public val id: Output? = null,
    public val noManagedCertificate: Output? = null,
    public val overrideStrategy: Output? = null,
    public val sslSettings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.appengine.v1alpha.DomainMappingArgs =
        com.pulumi.googlenative.appengine.v1alpha.DomainMappingArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .noManagedCertificate(noManagedCertificate?.applyValue({ args0 -> args0 }))
            .overrideStrategy(overrideStrategy?.applyValue({ args0 -> args0 }))
            .sslSettings(sslSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var id: Output? = null

    private var noManagedCertificate: Output? = null

    private var overrideStrategy: Output? = null

    private var sslSettings: Output? = null

    /**
     * @param value
     */
    @JvmName("prakqjhsslwdbime")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value Relative name of the domain serving the application. Example: example.com.
     */
    @JvmName("npbludgoodbikqoo")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
     */
    @JvmName("phvhxphhrsgbamvn")
    public suspend fun noManagedCertificate(`value`: Output) {
        this.noManagedCertificate = value
    }

    /**
     * @param value Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.
     */
    @JvmName("ubxoxipwnkpaudxy")
    public suspend fun overrideStrategy(`value`: Output) {
        this.overrideStrategy = value
    }

    /**
     * @param value SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
     */
    @JvmName("icwdhimhrabmkibl")
    public suspend fun sslSettings(`value`: Output) {
        this.sslSettings = value
    }

    /**
     * @param value
     */
    @JvmName("oahjyqfxpotxiwpb")
    public suspend fun appId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value Relative name of the domain serving the application. Example: example.com.
     */
    @JvmName("egurdtmyiebiinwe")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
     */
    @JvmName("ikjocujkhltsmyqr")
    public suspend fun noManagedCertificate(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noManagedCertificate = mapped
    }

    /**
     * @param value Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.
     */
    @JvmName("tpullmolbavytlgw")
    public suspend fun overrideStrategy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrideStrategy = mapped
    }

    /**
     * @param value SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
     */
    @JvmName("uhtqvxrsitiskkqf")
    public suspend fun sslSettings(`value`: SslSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslSettings = mapped
    }

    /**
     * @param argument SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
     */
    @JvmName("qpjqkjwwgceomqgq")
    public suspend fun sslSettings(argument: suspend SslSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SslSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sslSettings = mapped
    }

    internal fun build(): DomainMappingArgs = DomainMappingArgs(
        appId = appId,
        id = id,
        noManagedCertificate = noManagedCertificate,
        overrideStrategy = overrideStrategy,
        sslSettings = sslSettings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy