com.pulumi.kubernetes.certificates.v1alpha1.kotlin.inputs.ClusterTrustBundleSpecArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.certificates.v1alpha1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleSpecArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ClusterTrustBundleSpec contains the signer and trust anchors.
* @property signerName signerName indicates the associated signer, if any.
* In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.
* If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
* If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
* List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
* @property trustBundle trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
* The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
* Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
*/
public data class ClusterTrustBundleSpecArgs(
public val signerName: Output? = null,
public val trustBundle: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleSpecArgs =
com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleSpecArgs.builder()
.signerName(signerName?.applyValue({ args0 -> args0 }))
.trustBundle(trustBundle.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterTrustBundleSpecArgs].
*/
@PulumiTagMarker
public class ClusterTrustBundleSpecArgsBuilder internal constructor() {
private var signerName: Output? = null
private var trustBundle: Output? = null
/**
* @param value signerName indicates the associated signer, if any.
* In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.
* If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
* If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
* List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
*/
@JvmName("yxyuutiemhtpffbx")
public suspend fun signerName(`value`: Output) {
this.signerName = value
}
/**
* @param value trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
* The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
* Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
*/
@JvmName("usvkplkkprlribrh")
public suspend fun trustBundle(`value`: Output) {
this.trustBundle = value
}
/**
* @param value signerName indicates the associated signer, if any.
* In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.
* If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
* If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
* List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
*/
@JvmName("jvhlmoyuarxhjyaw")
public suspend fun signerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.signerName = mapped
}
/**
* @param value trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
* The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
* Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
*/
@JvmName("cbbcbmwpeivicgpo")
public suspend fun trustBundle(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trustBundle = mapped
}
internal fun build(): ClusterTrustBundleSpecArgs = ClusterTrustBundleSpecArgs(
signerName = signerName,
trustBundle = trustBundle ?: throw PulumiNullFieldException("trustBundle"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy