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

com.pulumi.gcp.kms.kotlin.inputs.GetKMSCryptoKeyPlainArgs.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.kms.kotlin.inputs

import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyPlainArgs.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

/**
 * A collection of arguments for invoking getKMSCryptoKey.
 * @property keyRing The `id` of the Google Cloud Platform KeyRing to which the key belongs.
 * @property name The CryptoKey's name.
 * A CryptoKey’s name belonging to the specified Google Cloud Platform KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
 */
public data class GetKMSCryptoKeyPlainArgs(
    public val keyRing: String,
    public val name: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyPlainArgs =
        com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyPlainArgs.builder()
            .keyRing(keyRing.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetKMSCryptoKeyPlainArgs].
 */
@PulumiTagMarker
public class GetKMSCryptoKeyPlainArgsBuilder internal constructor() {
    private var keyRing: String? = null

    private var name: String? = null

    /**
     * @param value The `id` of the Google Cloud Platform KeyRing to which the key belongs.
     */
    @JvmName("yluygwakxqlexrwy")
    public suspend fun keyRing(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.keyRing = mapped
    }

    /**
     * @param value The CryptoKey's name.
     * A CryptoKey’s name belonging to the specified Google Cloud Platform KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
     */
    @JvmName("fheyllhnitfawbgc")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    internal fun build(): GetKMSCryptoKeyPlainArgs = GetKMSCryptoKeyPlainArgs(
        keyRing = keyRing ?: throw PulumiNullFieldException("keyRing"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy