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

com.pulumi.aws.networkfirewall.kotlin.inputs.TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.networkfirewall.kotlin.inputs

import com.pulumi.aws.networkfirewall.inputs.TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property certificateAuthorityArn ARN of the imported certificate authority (CA) certificate within Certificate Manager (ACM) to use for outbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html) for limitations on CA certificates.
 * @property checkCertificateRevocationStatus Check Certificate Revocation Status block. Detailed below.
 * @property scopes Scope block. Detailed below.
 * @property serverCertificates Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
 */
public data class
TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs(
    public val certificateAuthorityArn: Output? = null,
    public val checkCertificateRevocationStatus: Output? =
        null,
    public val scopes: Output>? =
        null,
    public val serverCertificates: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.networkfirewall.inputs.TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs =
        com.pulumi.aws.networkfirewall.inputs.TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs.builder()
            .certificateAuthorityArn(certificateAuthorityArn?.applyValue({ args0 -> args0 }))
            .checkCertificateRevocationStatus(
                checkCertificateRevocationStatus?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .serverCertificates(
                serverCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs].
 */
@PulumiTagMarker
public class
TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgsBuilder
internal constructor() {
    private var certificateAuthorityArn: Output? = null

    private var checkCertificateRevocationStatus:
        Output? =
        null

    private var scopes:
        Output>? =
        null

    private var serverCertificates:
        Output>? =
        null

    /**
     * @param value ARN of the imported certificate authority (CA) certificate within Certificate Manager (ACM) to use for outbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html) for limitations on CA certificates.
     */
    @JvmName("edfyucomfpqfwnhc")
    public suspend fun certificateAuthorityArn(`value`: Output) {
        this.certificateAuthorityArn = value
    }

    /**
     * @param value Check Certificate Revocation Status block. Detailed below.
     */
    @JvmName("udmiabahyjhpoxmh")
    public suspend fun checkCertificateRevocationStatus(`value`: Output) {
        this.checkCertificateRevocationStatus = value
    }

    /**
     * @param value Scope block. Detailed below.
     */
    @JvmName("lhimsvqsejavlptw")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values Scope block. Detailed below.
     */
    @JvmName("ygqirvaxtjotamco")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("nbfxihfwwlnhhdvn")
    public suspend fun serverCertificates(`value`: Output>) {
        this.serverCertificates = value
    }

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

    /**
     * @param values Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("fprjobhmbqyiputo")
    public suspend fun serverCertificates(values: List>) {
        this.serverCertificates = Output.all(values)
    }

    /**
     * @param value ARN of the imported certificate authority (CA) certificate within Certificate Manager (ACM) to use for outbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html) for limitations on CA certificates.
     */
    @JvmName("eqdryvmnqflsejpf")
    public suspend fun certificateAuthorityArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateAuthorityArn = mapped
    }

    /**
     * @param value Check Certificate Revocation Status block. Detailed below.
     */
    @JvmName("aicjujeapyqlmlvg")
    public suspend fun checkCertificateRevocationStatus(`value`: TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationCheckCertificateRevocationStatusArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.checkCertificateRevocationStatus = mapped
    }

    /**
     * @param argument Check Certificate Revocation Status block. Detailed below.
     */
    @JvmName("ybwosnhajuumpaxn")
    public suspend fun checkCertificateRevocationStatus(argument: suspend TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationCheckCertificateRevocationStatusArgsBuilder.() -> Unit) {
        val toBeMapped =
            TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationCheckCertificateRevocationStatusArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.checkCertificateRevocationStatus = mapped
    }

    /**
     * @param value Scope block. Detailed below.
     */
    @JvmName("rkaeaktxpseiknhn")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param argument Scope block. Detailed below.
     */
    @JvmName("anqehdgrppxqnwle")
    public suspend fun scopes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument Scope block. Detailed below.
     */
    @JvmName("eplajqjyutqlhhgd")
    public suspend fun scopes(vararg argument: suspend TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument Scope block. Detailed below.
     */
    @JvmName("hjjaisodktyusokx")
    public suspend fun scopes(argument: suspend TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param values Scope block. Detailed below.
     */
    @JvmName("pvxvniravfdaacnk")
    public suspend fun scopes(vararg values: TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationScopeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("pxykxfqfejxxnpas")
    public suspend fun serverCertificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCertificates = mapped
    }

    /**
     * @param argument Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("xcgfqsrldukcaurp")
    public suspend fun serverCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param argument Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("wtnhxkawweywbbfa")
    public suspend fun serverCertificates(vararg argument: suspend TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param argument Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("caxqpoleikuqyhvn")
    public suspend fun serverCertificates(argument: suspend TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param values Server certificates to use for inbound SSL/TLS inspection. See [Using SSL/TLS certificates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html).
     */
    @JvmName("qxcywogibkpippjg")
    public suspend fun serverCertificates(vararg values: TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationServerCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverCertificates = mapped
    }

    internal fun build(): TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs =
        TlsInspectionConfigurationTlsInspectionConfigurationServerCertificateConfigurationArgs(
            certificateAuthorityArn = certificateAuthorityArn,
            checkCertificateRevocationStatus = checkCertificateRevocationStatus,
            scopes = scopes,
            serverCertificates = serverCertificates,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy