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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateConfigPublicKeyArgs.kt Maven / Gradle / Ivy

@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("eucxotojspffvbfq")
    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("ywjqndodppymipyy")
    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("rbakaiokogwojvxb")
    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("unjbwnhrxcbvbrms")
    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