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

com.pulumi.gcp.compute.kotlin.inputs.BackendServiceSecuritySettingsArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.BackendServiceSecuritySettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property clientTlsPolicy ClientTlsPolicy is a resource that specifies how a client should authenticate
 * connections to backends of a service. This resource itself does not affect
 * configuration unless it is attached to a backend service resource.
 * @property subjectAltNames A list of alternate names to verify the subject identity in the certificate.
 * If specified, the client will verify that the server certificate's subject
 * alt name matches one of the specified values.
 */
public data class BackendServiceSecuritySettingsArgs(
    public val clientTlsPolicy: Output,
    public val subjectAltNames: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceSecuritySettingsArgs =
        com.pulumi.gcp.compute.inputs.BackendServiceSecuritySettingsArgs.builder()
            .clientTlsPolicy(clientTlsPolicy.applyValue({ args0 -> args0 }))
            .subjectAltNames(subjectAltNames.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [BackendServiceSecuritySettingsArgs].
 */
@PulumiTagMarker
public class BackendServiceSecuritySettingsArgsBuilder internal constructor() {
    private var clientTlsPolicy: Output? = null

    private var subjectAltNames: Output>? = null

    /**
     * @param value ClientTlsPolicy is a resource that specifies how a client should authenticate
     * connections to backends of a service. This resource itself does not affect
     * configuration unless it is attached to a backend service resource.
     */
    @JvmName("jfupawbhwgcusmvv")
    public suspend fun clientTlsPolicy(`value`: Output) {
        this.clientTlsPolicy = value
    }

    /**
     * @param value A list of alternate names to verify the subject identity in the certificate.
     * If specified, the client will verify that the server certificate's subject
     * alt name matches one of the specified values.
     */
    @JvmName("ccguvjkpkdlqwecs")
    public suspend fun subjectAltNames(`value`: Output>) {
        this.subjectAltNames = value
    }

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

    /**
     * @param values A list of alternate names to verify the subject identity in the certificate.
     * If specified, the client will verify that the server certificate's subject
     * alt name matches one of the specified values.
     */
    @JvmName("srvxtxitlkgrnusw")
    public suspend fun subjectAltNames(values: List>) {
        this.subjectAltNames = Output.all(values)
    }

    /**
     * @param value ClientTlsPolicy is a resource that specifies how a client should authenticate
     * connections to backends of a service. This resource itself does not affect
     * configuration unless it is attached to a backend service resource.
     */
    @JvmName("jhemtjgmfeeuwjjt")
    public suspend fun clientTlsPolicy(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientTlsPolicy = mapped
    }

    /**
     * @param value A list of alternate names to verify the subject identity in the certificate.
     * If specified, the client will verify that the server certificate's subject
     * alt name matches one of the specified values.
     */
    @JvmName("kxralwgymjrdecjg")
    public suspend fun subjectAltNames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subjectAltNames = mapped
    }

    /**
     * @param values A list of alternate names to verify the subject identity in the certificate.
     * If specified, the client will verify that the server certificate's subject
     * alt name matches one of the specified values.
     */
    @JvmName("psbxekkcdfftojld")
    public suspend fun subjectAltNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subjectAltNames = mapped
    }

    internal fun build(): BackendServiceSecuritySettingsArgs = BackendServiceSecuritySettingsArgs(
        clientTlsPolicy = clientTlsPolicy ?: throw PulumiNullFieldException("clientTlsPolicy"),
        subjectAltNames = subjectAltNames ?: throw PulumiNullFieldException("subjectAltNames"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy