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

com.pulumi.gcp.networksecurity.kotlin.inputs.ServerTlsPolicyMtlsPolicyClientValidationCaArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyClientValidationCaArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property certificateProviderInstance Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty.
 * Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allowOpen as a permissive mode that allows both plain text and TLS is not supported.
 * Structure is documented below.
 * @property grpcEndpoint gRPC specific configuration to access the gRPC server to obtain the cert and private key.
 * Structure is documented below.
 */
public data class ServerTlsPolicyMtlsPolicyClientValidationCaArgs(
    public val certificateProviderInstance: Output? = null,
    public val grpcEndpoint: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyClientValidationCaArgs =
        com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyMtlsPolicyClientValidationCaArgs.builder()
            .certificateProviderInstance(
                certificateProviderInstance?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .grpcEndpoint(grpcEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServerTlsPolicyMtlsPolicyClientValidationCaArgs].
 */
@PulumiTagMarker
public class ServerTlsPolicyMtlsPolicyClientValidationCaArgsBuilder internal constructor() {
    private var certificateProviderInstance:
        Output? = null

    private var grpcEndpoint: Output? =
        null

    /**
     * @param value Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty.
     * Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allowOpen as a permissive mode that allows both plain text and TLS is not supported.
     * Structure is documented below.
     */
    @JvmName("gripuedgkqdkpaqy")
    public suspend fun certificateProviderInstance(`value`: Output) {
        this.certificateProviderInstance = value
    }

    /**
     * @param value gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("gpdsqtkkinqqanen")
    public suspend fun grpcEndpoint(`value`: Output) {
        this.grpcEndpoint = value
    }

    /**
     * @param value Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty.
     * Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allowOpen as a permissive mode that allows both plain text and TLS is not supported.
     * Structure is documented below.
     */
    @JvmName("gtpbvibvykaeeprg")
    public suspend fun certificateProviderInstance(`value`: ServerTlsPolicyMtlsPolicyClientValidationCaCertificateProviderInstanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateProviderInstance = mapped
    }

    /**
     * @param argument Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty.
     * Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allowOpen as a permissive mode that allows both plain text and TLS is not supported.
     * Structure is documented below.
     */
    @JvmName("ngdvviyvbjrdhkcf")
    public suspend fun certificateProviderInstance(argument: suspend ServerTlsPolicyMtlsPolicyClientValidationCaCertificateProviderInstanceArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServerTlsPolicyMtlsPolicyClientValidationCaCertificateProviderInstanceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.certificateProviderInstance = mapped
    }

    /**
     * @param value gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("qiretnhmtigqyjuy")
    public suspend fun grpcEndpoint(`value`: ServerTlsPolicyMtlsPolicyClientValidationCaGrpcEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grpcEndpoint = mapped
    }

    /**
     * @param argument gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("lxnfbykihorokhas")
    public suspend fun grpcEndpoint(argument: suspend ServerTlsPolicyMtlsPolicyClientValidationCaGrpcEndpointArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServerTlsPolicyMtlsPolicyClientValidationCaGrpcEndpointArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.grpcEndpoint = mapped
    }

    internal fun build(): ServerTlsPolicyMtlsPolicyClientValidationCaArgs =
        ServerTlsPolicyMtlsPolicyClientValidationCaArgs(
            certificateProviderInstance = certificateProviderInstance,
            grpcEndpoint = grpcEndpoint,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy