com.pulumi.aws.kms.kotlin.inputs.GetSecretSecret.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.kms.kotlin.inputs
import com.pulumi.aws.kms.inputs.GetSecretSecret.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property context
* @property grantTokens
* @property name
* @property payload
*/
public data class GetSecretSecret(
public val context: Map? = null,
public val grantTokens: List? = null,
public val name: String,
public val payload: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.kms.inputs.GetSecretSecret =
com.pulumi.aws.kms.inputs.GetSecretSecret.builder()
.context(context?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.grantTokens(grantTokens?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name.let({ args0 -> args0 }))
.payload(payload.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSecretSecret].
*/
@PulumiTagMarker
public class GetSecretSecretBuilder internal constructor() {
private var context: Map? = null
private var grantTokens: List? = null
private var name: String? = null
private var payload: String? = null
/**
* @param value
*/
@JvmName("hfpbgjxnuxgtogcf")
public suspend fun context(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.context = mapped
}
/**
* @param values
*/
@JvmName("gnecuuwmaaidrrgj")
public fun context(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> args0 })
this.context = mapped
}
/**
* @param value
*/
@JvmName("ohgyuwmbfnvelwhh")
public suspend fun grantTokens(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.grantTokens = mapped
}
/**
* @param values
*/
@JvmName("xxmtxewpgadkldvm")
public suspend fun grantTokens(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.grantTokens = mapped
}
/**
* @param value
*/
@JvmName("lssabyvarrwccifo")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value
*/
@JvmName("jiluuaaxxoaditat")
public suspend fun payload(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.payload = mapped
}
internal fun build(): GetSecretSecret = GetSecretSecret(
context = context,
grantTokens = grantTokens,
name = name ?: throw PulumiNullFieldException("name"),
payload = payload ?: throw PulumiNullFieldException("payload"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy