com.pulumi.gcp.networksecurity.kotlin.inputs.ServerTlsPolicyMtlsPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networksecurity.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyArgs.builder
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 clientValidationCas Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty.
* Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
* Structure is documented below.
* @property clientValidationMode When the client presents an invalid certificate or no certificate to the load balancer, the clientValidationMode specifies how the client connection is handled.
* Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty.
* Possible values are: `CLIENT_VALIDATION_MODE_UNSPECIFIED`, `ALLOW_INVALID_OR_MISSING_CLIENT_CERT`, `REJECT_INVALID`.
* @property clientValidationTrustConfig Reference to the TrustConfig from certificatemanager.googleapis.com namespace.
* If specified, the chain validation will be performed against certificates configured in the given TrustConfig.
* Allowed only if the policy is to be used with external HTTPS load balancers.
*/
public data class ServerTlsPolicyMtlsPolicyArgs(
public val clientValidationCas: Output>? =
null,
public val clientValidationMode: Output? = null,
public val clientValidationTrustConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyArgs =
com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyArgs.builder()
.clientValidationCas(
clientValidationCas?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.clientValidationMode(clientValidationMode?.applyValue({ args0 -> args0 }))
.clientValidationTrustConfig(clientValidationTrustConfig?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServerTlsPolicyMtlsPolicyArgs].
*/
@PulumiTagMarker
public class ServerTlsPolicyMtlsPolicyArgsBuilder internal constructor() {
private var clientValidationCas: Output>? =
null
private var clientValidationMode: Output? = null
private var clientValidationTrustConfig: Output? = null
/**
* @param value Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty.
* Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
* Structure is documented below.
*/
@JvmName("qerwlrexpauuskyx")
public suspend fun clientValidationCas(`value`: Output>) {
this.clientValidationCas = value
}
@JvmName("wplqldhadjqpssnx")
public suspend fun clientValidationCas(vararg values: Output) {
this.clientValidationCas = Output.all(values.asList())
}
/**
* @param values Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty.
* Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
* Structure is documented below.
*/
@JvmName("ltyevirifpiihagw")
public suspend fun clientValidationCas(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy