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