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

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewaySslProfileArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewaySslProfileArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property id The ID of the Rewrite Rule Set
 * @property name The name of the SSL Profile that is unique within this Application Gateway.
 * @property sslPolicy a `ssl_policy` block as defined below.
 * @property trustedClientCertificateNames The name of the Trusted Client Certificate that will be used to authenticate requests from clients.
 * @property verifyClientCertIssuerDn Should client certificate issuer DN be verified? Defaults to `false`.
 * @property verifyClientCertificateRevocation Specify the method to check client certificate revocation status. Possible value is `OCSP`.
 */
public data class ApplicationGatewaySslProfileArgs(
    public val id: Output? = null,
    public val name: Output,
    public val sslPolicy: Output? = null,
    public val trustedClientCertificateNames: Output>? = null,
    public val verifyClientCertIssuerDn: Output? = null,
    public val verifyClientCertificateRevocation: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewaySslProfileArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewaySslProfileArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .sslPolicy(sslPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .trustedClientCertificateNames(
                trustedClientCertificateNames?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .verifyClientCertIssuerDn(verifyClientCertIssuerDn?.applyValue({ args0 -> args0 }))
            .verifyClientCertificateRevocation(
                verifyClientCertificateRevocation?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [ApplicationGatewaySslProfileArgs].
 */
@PulumiTagMarker
public class ApplicationGatewaySslProfileArgsBuilder internal constructor() {
    private var id: Output? = null

    private var name: Output? = null

    private var sslPolicy: Output? = null

    private var trustedClientCertificateNames: Output>? = null

    private var verifyClientCertIssuerDn: Output? = null

    private var verifyClientCertificateRevocation: Output? = null

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("tqqinvnkqkxnnams")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The name of the SSL Profile that is unique within this Application Gateway.
     */
    @JvmName("xyblyjfcnhqbanvd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value a `ssl_policy` block as defined below.
     */
    @JvmName("dojwytskmxantaae")
    public suspend fun sslPolicy(`value`: Output) {
        this.sslPolicy = value
    }

    /**
     * @param value The name of the Trusted Client Certificate that will be used to authenticate requests from clients.
     */
    @JvmName("eoplxrjwwbbsnqwe")
    public suspend fun trustedClientCertificateNames(`value`: Output>) {
        this.trustedClientCertificateNames = value
    }

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

    /**
     * @param values The name of the Trusted Client Certificate that will be used to authenticate requests from clients.
     */
    @JvmName("uvikyljpwykdeuea")
    public suspend fun trustedClientCertificateNames(values: List>) {
        this.trustedClientCertificateNames = Output.all(values)
    }

    /**
     * @param value Should client certificate issuer DN be verified? Defaults to `false`.
     */
    @JvmName("kcffggbhwdtlebfi")
    public suspend fun verifyClientCertIssuerDn(`value`: Output) {
        this.verifyClientCertIssuerDn = value
    }

    /**
     * @param value Specify the method to check client certificate revocation status. Possible value is `OCSP`.
     */
    @JvmName("blprnibkluoxqxtn")
    public suspend fun verifyClientCertificateRevocation(`value`: Output) {
        this.verifyClientCertificateRevocation = value
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("wdwmwgnhfdkrhiwb")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The name of the SSL Profile that is unique within this Application Gateway.
     */
    @JvmName("pirywnnyubcjfbgt")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value a `ssl_policy` block as defined below.
     */
    @JvmName("gvbqcmygcpewkyyd")
    public suspend fun sslPolicy(`value`: ApplicationGatewaySslProfileSslPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslPolicy = mapped
    }

    /**
     * @param argument a `ssl_policy` block as defined below.
     */
    @JvmName("melisttmrmnbcihg")
    public suspend
    fun sslPolicy(argument: suspend ApplicationGatewaySslProfileSslPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationGatewaySslProfileSslPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sslPolicy = mapped
    }

    /**
     * @param value The name of the Trusted Client Certificate that will be used to authenticate requests from clients.
     */
    @JvmName("yiisyxjjiyqjvlfl")
    public suspend fun trustedClientCertificateNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedClientCertificateNames = mapped
    }

    /**
     * @param values The name of the Trusted Client Certificate that will be used to authenticate requests from clients.
     */
    @JvmName("lkangchwimqmpytx")
    public suspend fun trustedClientCertificateNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedClientCertificateNames = mapped
    }

    /**
     * @param value Should client certificate issuer DN be verified? Defaults to `false`.
     */
    @JvmName("chmeotnloovjykvm")
    public suspend fun verifyClientCertIssuerDn(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifyClientCertIssuerDn = mapped
    }

    /**
     * @param value Specify the method to check client certificate revocation status. Possible value is `OCSP`.
     */
    @JvmName("tnpnatngdckjajrb")
    public suspend fun verifyClientCertificateRevocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifyClientCertificateRevocation = mapped
    }

    internal fun build(): ApplicationGatewaySslProfileArgs = ApplicationGatewaySslProfileArgs(
        id = id,
        name = name ?: throw PulumiNullFieldException("name"),
        sslPolicy = sslPolicy,
        trustedClientCertificateNames = trustedClientCertificateNames,
        verifyClientCertIssuerDn = verifyClientCertIssuerDn,
        verifyClientCertificateRevocation = verifyClientCertificateRevocation,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy