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

com.pulumi.gcp.networksecurity.kotlin.inputs.ServerTlsPolicyServerCertificateArgs.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.10.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.ServerTlsPolicyServerCertificateArgs.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 ServerTlsPolicyServerCertificateArgs(
    public val certificateProviderInstance: Output? = null,
    public val grpcEndpoint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyServerCertificateArgs = com.pulumi.gcp.networksecurity.inputs.ServerTlsPolicyServerCertificateArgs.builder()
        .certificateProviderInstance(
            certificateProviderInstance?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .grpcEndpoint(grpcEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServerTlsPolicyServerCertificateArgs].
 */
@PulumiTagMarker
public class ServerTlsPolicyServerCertificateArgsBuilder 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("bhflxrgvkysknkgx")
    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("vsihobbxawpicmac")
    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("vleqeogomjofxmbe")
    public suspend fun certificateProviderInstance(`value`: ServerTlsPolicyServerCertificateCertificateProviderInstanceArgs?) {
        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("mqaxicpwgumgidow")
    public suspend fun certificateProviderInstance(argument: suspend ServerTlsPolicyServerCertificateCertificateProviderInstanceArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServerTlsPolicyServerCertificateCertificateProviderInstanceArgsBuilder().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("kogmuneqynikxehi")
    public suspend fun grpcEndpoint(`value`: ServerTlsPolicyServerCertificateGrpcEndpointArgs?) {
        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("mgxrfegvgksvivnb")
    public suspend fun grpcEndpoint(argument: suspend ServerTlsPolicyServerCertificateGrpcEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = ServerTlsPolicyServerCertificateGrpcEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.grpcEndpoint = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy