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

com.pulumi.gcp.kms.kotlin.inputs.GetCryptoKeyLatestVersionPlainArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.gcp.kms.inputs.GetCryptoKeyLatestVersionPlainArgs.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 getCryptoKeyLatestVersion.
 * @property cryptoKey The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
 * `gcp.kms.CryptoKey` resource/datasource.
 * @property filter The filter argument is used to add a filter query parameter that limits which type of cryptoKeyVersion is retrieved as the latest by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
 * Example filter values if filtering on state.
 * * `"state:ENABLED"` will retrieve the latest cryptoKeyVersion that has the state "ENABLED".
 * [See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
 */
public data class GetCryptoKeyLatestVersionPlainArgs(
    public val cryptoKey: String,
    public val filter: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.GetCryptoKeyLatestVersionPlainArgs =
        com.pulumi.gcp.kms.inputs.GetCryptoKeyLatestVersionPlainArgs.builder()
            .cryptoKey(cryptoKey.let({ args0 -> args0 }))
            .filter(filter?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetCryptoKeyLatestVersionPlainArgs].
 */
@PulumiTagMarker
public class GetCryptoKeyLatestVersionPlainArgsBuilder internal constructor() {
    private var cryptoKey: String? = null

    private var filter: String? = null

    /**
     * @param value The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
     * `gcp.kms.CryptoKey` resource/datasource.
     */
    @JvmName("tidadpqnnyeqgeok")
    public suspend fun cryptoKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.cryptoKey = mapped
    }

    /**
     * @param value The filter argument is used to add a filter query parameter that limits which type of cryptoKeyVersion is retrieved as the latest by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
     * Example filter values if filtering on state.
     * * `"state:ENABLED"` will retrieve the latest cryptoKeyVersion that has the state "ENABLED".
     * [See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
     */
    @JvmName("yrbqwmxuyyhwnmsp")
    public suspend fun filter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filter = mapped
    }

    internal fun build(): GetCryptoKeyLatestVersionPlainArgs = GetCryptoKeyLatestVersionPlainArgs(
        cryptoKey = cryptoKey ?: throw PulumiNullFieldException("cryptoKey"),
        filter = filter,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy