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

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

package com.pulumi.aws.kms.kotlin.inputs

import com.pulumi.aws.kms.inputs.GetPublicKeyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getPublicKey.
 * @property grantTokens List of grant tokens
 * @property keyId Key identifier which can be one of the following format:
 * * Key ID. E.g - `1234abcd-12ab-34cd-56ef-1234567890ab`
 * * Key ARN. E.g. - `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
 * * Alias name. E.g. - `alias/my-key`
 * * Alias ARN - E.g. - `arn:aws:kms:us-east-1:111122223333:alias/my-key`
 */
public data class GetPublicKeyPlainArgs(
    public val grantTokens: List? = null,
    public val keyId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kms.inputs.GetPublicKeyPlainArgs =
        com.pulumi.aws.kms.inputs.GetPublicKeyPlainArgs.builder()
            .grantTokens(grantTokens?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .keyId(keyId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetPublicKeyPlainArgs].
 */
@PulumiTagMarker
public class GetPublicKeyPlainArgsBuilder internal constructor() {
    private var grantTokens: List? = null

    private var keyId: String? = null

    /**
     * @param value List of grant tokens
     */
    @JvmName("bdjfyhnmxgddmhei")
    public suspend fun grantTokens(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.grantTokens = mapped
    }

    /**
     * @param values List of grant tokens
     */
    @JvmName("fvphxujdlesrukkh")
    public suspend fun grantTokens(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.grantTokens = mapped
    }

    /**
     * @param value Key identifier which can be one of the following format:
     * * Key ID. E.g - `1234abcd-12ab-34cd-56ef-1234567890ab`
     * * Key ARN. E.g. - `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
     * * Alias name. E.g. - `alias/my-key`
     * * Alias ARN - E.g. - `arn:aws:kms:us-east-1:111122223333:alias/my-key`
     */
    @JvmName("trbeumldsdcsjdeq")
    public suspend fun keyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.keyId = mapped
    }

    internal fun build(): GetPublicKeyPlainArgs = GetPublicKeyPlainArgs(
        grantTokens = grantTokens,
        keyId = keyId ?: throw PulumiNullFieldException("keyId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy