com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateConfigPublicKeyArgs.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.certificateauthority.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificateauthority.inputs.CertificateConfigPublicKeyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property format The format of the public key. Currently, only PEM format is supported.
* Possible values are: `KEY_TYPE_UNSPECIFIED`, `PEM`.
* @property key Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key. A base64-encoded string.
*/
public data class CertificateConfigPublicKeyArgs(
public val format: Output,
public val key: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateConfigPublicKeyArgs =
com.pulumi.gcp.certificateauthority.inputs.CertificateConfigPublicKeyArgs.builder()
.format(format.applyValue({ args0 -> args0 }))
.key(key?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CertificateConfigPublicKeyArgs].
*/
@PulumiTagMarker
public class CertificateConfigPublicKeyArgsBuilder internal constructor() {
private var format: Output? = null
private var key: Output? = null
/**
* @param value The format of the public key. Currently, only PEM format is supported.
* Possible values are: `KEY_TYPE_UNSPECIFIED`, `PEM`.
*/
@JvmName("qqxsnjhkmlstyrkr")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key. A base64-encoded string.
*/
@JvmName("rspcntanoakvldjk")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The format of the public key. Currently, only PEM format is supported.
* Possible values are: `KEY_TYPE_UNSPECIFIED`, `PEM`.
*/
@JvmName("gsouyeoocaaxveth")
public suspend fun format(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.format = mapped
}
/**
* @param value Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key. A base64-encoded string.
*/
@JvmName("pmwdhquagkgtvlhn")
public suspend fun key(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.key = mapped
}
internal fun build(): CertificateConfigPublicKeyArgs = CertificateConfigPublicKeyArgs(
format = format ?: throw PulumiNullFieldException("format"),
key = key,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy