Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.networksecurity.v1.kotlin.ClientTlsPolicyArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.networksecurity.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.networksecurity.v1.ClientTlsPolicyArgs.builder
import com.pulumi.googlenative.networksecurity.v1.kotlin.inputs.GoogleCloudNetworksecurityV1CertificateProviderArgs
import com.pulumi.googlenative.networksecurity.v1.kotlin.inputs.GoogleCloudNetworksecurityV1CertificateProviderArgsBuilder
import com.pulumi.googlenative.networksecurity.v1.kotlin.inputs.ValidationCAArgs
import com.pulumi.googlenative.networksecurity.v1.kotlin.inputs.ValidationCAArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates a new ClientTlsPolicy in a given project and location.
* @property clientCertificate Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
* @property clientTlsPolicyId Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".
* @property description Optional. Free-text description of the resource.
* @property labels Optional. Set of label tags associated with the resource.
* @property location
* @property name Name of the ClientTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
* @property project
* @property serverValidationCa Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
* @property sni Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
* */
*/
public data class ClientTlsPolicyArgs(
public val clientCertificate: Output? = null,
public val clientTlsPolicyId: Output? = null,
public val description: Output? = null,
public val labels: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val serverValidationCa: Output>? = null,
public val sni: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.networksecurity.v1.ClientTlsPolicyArgs =
com.pulumi.googlenative.networksecurity.v1.ClientTlsPolicyArgs.builder()
.clientCertificate(clientCertificate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.clientTlsPolicyId(clientTlsPolicyId?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.serverValidationCa(
serverValidationCa?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.sni(sni?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClientTlsPolicyArgs].
*/
@PulumiTagMarker
public class ClientTlsPolicyArgsBuilder internal constructor() {
private var clientCertificate: Output? = null
private var clientTlsPolicyId: Output? = null
private var description: Output? = null
private var labels: Output>? = null
private var location: Output? = null
private var name: Output? = null
private var project: Output? = null
private var serverValidationCa: Output>? = null
private var sni: Output? = null
/**
* @param value Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
*/
@JvmName("mpmusvkqnqrqwocb")
public suspend fun clientCertificate(`value`: Output) {
this.clientCertificate = value
}
/**
* @param value Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".
*/
@JvmName("oihusxxhcefpyplm")
public suspend fun clientTlsPolicyId(`value`: Output) {
this.clientTlsPolicyId = value
}
/**
* @param value Optional. Free-text description of the resource.
*/
@JvmName("cwcqhuwxcpyonnha")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Optional. Set of label tags associated with the resource.
*/
@JvmName("uaxygxlochpicboc")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value
*/
@JvmName("uujjijmbxuixuqkq")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Name of the ClientTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
* */
*/
@JvmName("rrxjuwqeawtqnhdf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("fvxamndtsilkcwrl")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("kdtxrgupmbjlfwav")
public suspend fun serverValidationCa(`value`: Output>) {
this.serverValidationCa = value
}
@JvmName("hmuylcflktwqsljm")
public suspend fun serverValidationCa(vararg values: Output) {
this.serverValidationCa = Output.all(values.asList())
}
/**
* @param values Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("fclyckdgbhmcmewl")
public suspend fun serverValidationCa(values: List>) {
this.serverValidationCa = Output.all(values)
}
/**
* @param value Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
*/
@JvmName("ndhhvnsqouxkjskw")
public suspend fun sni(`value`: Output) {
this.sni = value
}
/**
* @param value Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
*/
@JvmName("gnjwlmahdxwbmntd")
public suspend fun clientCertificate(`value`: GoogleCloudNetworksecurityV1CertificateProviderArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificate = mapped
}
/**
* @param argument Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
*/
@JvmName("riygoklgajmbjbup")
public suspend fun clientCertificate(argument: suspend GoogleCloudNetworksecurityV1CertificateProviderArgsBuilder.() -> Unit) {
val toBeMapped = GoogleCloudNetworksecurityV1CertificateProviderArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clientCertificate = mapped
}
/**
* @param value Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".
*/
@JvmName("fgmvjjvuvdhwweky")
public suspend fun clientTlsPolicyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientTlsPolicyId = mapped
}
/**
* @param value Optional. Free-text description of the resource.
*/
@JvmName("jinlniolaitnrvbn")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Optional. Set of label tags associated with the resource.
*/
@JvmName("cbiguirhnkorqbet")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values Optional. Set of label tags associated with the resource.
*/
@JvmName("bfrpwuonkusilayq")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value
*/
@JvmName("xkltdgfopjecwflh")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Name of the ClientTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
* */
*/
@JvmName("pxlifbesrynsuxhc")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("ihskfainqfkuhrhv")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("vdcnuuqqjfgslphw")
public suspend fun serverValidationCa(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serverValidationCa = mapped
}
/**
* @param argument Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("fjilsfqoxwqfqynd")
public suspend fun serverValidationCa(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ValidationCAArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serverValidationCa = mapped
}
/**
* @param argument Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("cyoemnicaxrixrln")
public suspend fun serverValidationCa(vararg argument: suspend ValidationCAArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ValidationCAArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serverValidationCa = mapped
}
/**
* @param argument Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("jjcinstxjpqkflxy")
public suspend fun serverValidationCa(argument: suspend ValidationCAArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ValidationCAArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.serverValidationCa = mapped
}
/**
* @param values Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
*/
@JvmName("yjbsixggemjqqhje")
public suspend fun serverValidationCa(vararg values: ValidationCAArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serverValidationCa = mapped
}
/**
* @param value Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
*/
@JvmName("brvhhpcehbvfjcuu")
public suspend fun sni(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sni = mapped
}
internal fun build(): ClientTlsPolicyArgs = ClientTlsPolicyArgs(
clientCertificate = clientCertificate,
clientTlsPolicyId = clientTlsPolicyId,
description = description,
labels = labels,
location = location,
name = name,
project = project,
serverValidationCa = serverValidationCa,
sni = sni,
)
}