com.pulumi.awsnative.location.kotlin.inputs.GetApiKeyPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.location.kotlin.inputs
import com.pulumi.awsnative.location.inputs.GetApiKeyPlainArgs.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
/**
*
* @property keyName A custom name for the API key resource.
* Requirements:
* - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
* - Must be a unique API key name.
* - No spaces allowed. For example, `ExampleAPIKey` .
*/
public data class GetApiKeyPlainArgs(
public val keyName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.location.inputs.GetApiKeyPlainArgs =
com.pulumi.awsnative.location.inputs.GetApiKeyPlainArgs.builder()
.keyName(keyName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetApiKeyPlainArgs].
*/
@PulumiTagMarker
public class GetApiKeyPlainArgsBuilder internal constructor() {
private var keyName: String? = null
/**
* @param value A custom name for the API key resource.
* Requirements:
* - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
* - Must be a unique API key name.
* - No spaces allowed. For example, `ExampleAPIKey` .
*/
@JvmName("ntmmpsvrufcgutfo")
public suspend fun keyName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.keyName = mapped
}
internal fun build(): GetApiKeyPlainArgs = GetApiKeyPlainArgs(
keyName = keyName ?: throw PulumiNullFieldException("keyName"),
)
}