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

com.pulumi.awsnative.location.kotlin.inputs.GetApiKeyPlainArgs.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: 1.11.0.0
Show newest version
@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"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy