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

com.pulumi.gcp.kms.kotlin.inputs.EkmConnectionServiceResolverArgs.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.kms.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 endpointFilter Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request. For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
 * @property hostname Required. The hostname of the EKM replica used at TLS and HTTP layers.
 * @property serverCertificates Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
 * Structure is documented below.
 * @property serviceDirectoryService Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*
 * */*/*/*/
 */
public data class EkmConnectionServiceResolverArgs(
    public val endpointFilter: Output? = null,
    public val hostname: Output,
    public val serverCertificates: Output>,
    public val serviceDirectoryService: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverArgs =
        com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverArgs.builder()
            .endpointFilter(endpointFilter?.applyValue({ args0 -> args0 }))
            .hostname(hostname.applyValue({ args0 -> args0 }))
            .serverCertificates(
                serverCertificates.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .serviceDirectoryService(serviceDirectoryService.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EkmConnectionServiceResolverArgs].
 */
@PulumiTagMarker
public class EkmConnectionServiceResolverArgsBuilder internal constructor() {
    private var endpointFilter: Output? = null

    private var hostname: Output? = null

    private var serverCertificates: Output>? =
        null

    private var serviceDirectoryService: Output? = null

    /**
     * @param value Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request. For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
     */
    @JvmName("mokeeighpuvcnqhx")
    public suspend fun endpointFilter(`value`: Output) {
        this.endpointFilter = value
    }

    /**
     * @param value Required. The hostname of the EKM replica used at TLS and HTTP layers.
     */
    @JvmName("hvejmejdjuukdmyk")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("vbgvcmxeoiwjfmqn")
    public suspend fun serverCertificates(`value`: Output>) {
        this.serverCertificates = value
    }

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

    /**
     * @param values Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("yotdupcbxaxrrkla")
    public suspend fun serverCertificates(values: List>) {
        this.serverCertificates = Output.all(values)
    }

    /**
     * @param value Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*
     * */*/*/*/
     */
    @JvmName("ikqbcdnuigtljfbc")
    public suspend fun serviceDirectoryService(`value`: Output) {
        this.serviceDirectoryService = value
    }

    /**
     * @param value Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request. For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
     */
    @JvmName("nwolmawgvlelexro")
    public suspend fun endpointFilter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointFilter = mapped
    }

    /**
     * @param value Required. The hostname of the EKM replica used at TLS and HTTP layers.
     */
    @JvmName("oyfnhfommganuhck")
    public suspend fun hostname(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("huignexcelhqxiij")
    public suspend fun serverCertificates(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverCertificates = mapped
    }

    /**
     * @param argument Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("bcruekwkcmoabtcd")
    public suspend fun serverCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EkmConnectionServiceResolverServerCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param argument Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("ibykliqyfqnvrnfa")
    public suspend fun serverCertificates(vararg argument: suspend EkmConnectionServiceResolverServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EkmConnectionServiceResolverServerCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param argument Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("kxkcekwvpeopxsjb")
    public suspend fun serverCertificates(argument: suspend EkmConnectionServiceResolverServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EkmConnectionServiceResolverServerCertificateArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.serverCertificates = mapped
    }

    /**
     * @param values Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.
     * Structure is documented below.
     */
    @JvmName("ltqcjgiiugciiesa")
    public suspend fun serverCertificates(vararg values: EkmConnectionServiceResolverServerCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverCertificates = mapped
    }

    /**
     * @param value Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*
     * */*/*/*/
     */
    @JvmName("uyirmnvgtotjfoya")
    public suspend fun serviceDirectoryService(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceDirectoryService = mapped
    }

    internal fun build(): EkmConnectionServiceResolverArgs = EkmConnectionServiceResolverArgs(
        endpointFilter = endpointFilter,
        hostname = hostname ?: throw PulumiNullFieldException("hostname"),
        serverCertificates = serverCertificates ?: throw PulumiNullFieldException("serverCertificates"),
        serviceDirectoryService = serviceDirectoryService ?: throw
            PulumiNullFieldException("serviceDirectoryService"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy