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

com.pulumi.gcp.networksecurity.kotlin.outputs.ServerTlsPolicyMtlsPolicy.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.networksecurity.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 ServerTlsPolicyMtlsPolicy(
    public val clientValidationCas: List? = null,
    public val clientValidationMode: String? = null,
    public val clientValidationTrustConfig: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networksecurity.outputs.ServerTlsPolicyMtlsPolicy): ServerTlsPolicyMtlsPolicy = ServerTlsPolicyMtlsPolicy(
            clientValidationCas = javaType.clientValidationCas().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networksecurity.kotlin.outputs.ServerTlsPolicyMtlsPolicyClientValidationCa.Companion.toKotlin(args0)
                })
            }),
            clientValidationMode = javaType.clientValidationMode().map({ args0 -> args0 }).orElse(null),
            clientValidationTrustConfig = javaType.clientValidationTrustConfig().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy