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

com.pulumi.googlenative.iam.v1.kotlin.KeyArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.iam.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.iam.v1.KeyArgs.builder
import com.pulumi.googlenative.iam.v1.kotlin.enums.KeyKeyAlgorithm
import com.pulumi.googlenative.iam.v1.kotlin.enums.KeyPrivateKeyType
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Creates a ServiceAccountKey.
 * Auto-naming is currently not supported for this resource.
 * @property keyAlgorithm Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
 * @property privateKeyType The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
 * @property project
 * @property serviceAccountId
 */
public data class KeyArgs(
    public val keyAlgorithm: Output? = null,
    public val privateKeyType: Output? = null,
    public val project: Output? = null,
    public val serviceAccountId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.iam.v1.KeyArgs =
        com.pulumi.googlenative.iam.v1.KeyArgs.builder()
            .keyAlgorithm(keyAlgorithm?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .privateKeyType(privateKeyType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .serviceAccountId(serviceAccountId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KeyArgs].
 */
@PulumiTagMarker
public class KeyArgsBuilder internal constructor() {
    private var keyAlgorithm: Output? = null

    private var privateKeyType: Output? = null

    private var project: Output? = null

    private var serviceAccountId: Output? = null

    /**
     * @param value Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
     */
    @JvmName("plmsfnqjnrigpkav")
    public suspend fun keyAlgorithm(`value`: Output) {
        this.keyAlgorithm = value
    }

    /**
     * @param value The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
     */
    @JvmName("nasqibeabdhbblff")
    public suspend fun privateKeyType(`value`: Output) {
        this.privateKeyType = value
    }

    /**
     * @param value
     */
    @JvmName("moshpdhtwssebpgg")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value
     */
    @JvmName("yamyatvidkokkqks")
    public suspend fun serviceAccountId(`value`: Output) {
        this.serviceAccountId = value
    }

    /**
     * @param value Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
     */
    @JvmName("nbktqjldtrwglcxy")
    public suspend fun keyAlgorithm(`value`: KeyKeyAlgorithm?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyAlgorithm = mapped
    }

    /**
     * @param value The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
     */
    @JvmName("yjlyrhcksxvaokbm")
    public suspend fun privateKeyType(`value`: KeyPrivateKeyType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKeyType = mapped
    }

    /**
     * @param value
     */
    @JvmName("qumtllcfsvbjotsu")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value
     */
    @JvmName("tcdieclmgoxkewbq")
    public suspend fun serviceAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccountId = mapped
    }

    internal fun build(): KeyArgs = KeyArgs(
        keyAlgorithm = keyAlgorithm,
        privateKeyType = privateKeyType,
        project = project,
        serviceAccountId = serviceAccountId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy