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

com.pulumi.awsnative.events.kotlin.inputs.ConnectionApiKeyAuthParametersArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.events.kotlin.inputs

import com.pulumi.awsnative.events.inputs.ConnectionApiKeyAuthParametersArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 apiKeyName The name of the API key to use for authorization.
 * @property apiKeyValue The value for the API key to use for authorization.
 */
public data class ConnectionApiKeyAuthParametersArgs(
    public val apiKeyName: Output,
    public val apiKeyValue: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.inputs.ConnectionApiKeyAuthParametersArgs =
        com.pulumi.awsnative.events.inputs.ConnectionApiKeyAuthParametersArgs.builder()
            .apiKeyName(apiKeyName.applyValue({ args0 -> args0 }))
            .apiKeyValue(apiKeyValue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionApiKeyAuthParametersArgs].
 */
@PulumiTagMarker
public class ConnectionApiKeyAuthParametersArgsBuilder internal constructor() {
    private var apiKeyName: Output? = null

    private var apiKeyValue: Output? = null

    /**
     * @param value The name of the API key to use for authorization.
     */
    @JvmName("nydtukucsbrvkcma")
    public suspend fun apiKeyName(`value`: Output) {
        this.apiKeyName = value
    }

    /**
     * @param value The value for the API key to use for authorization.
     */
    @JvmName("dellhwamwsryevmk")
    public suspend fun apiKeyValue(`value`: Output) {
        this.apiKeyValue = value
    }

    /**
     * @param value The name of the API key to use for authorization.
     */
    @JvmName("yggrskmcoqckusyw")
    public suspend fun apiKeyName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiKeyName = mapped
    }

    /**
     * @param value The value for the API key to use for authorization.
     */
    @JvmName("jrcyobttvjtccixu")
    public suspend fun apiKeyValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiKeyValue = mapped
    }

    internal fun build(): ConnectionApiKeyAuthParametersArgs = ConnectionApiKeyAuthParametersArgs(
        apiKeyName = apiKeyName ?: throw PulumiNullFieldException("apiKeyName"),
        apiKeyValue = apiKeyValue ?: throw PulumiNullFieldException("apiKeyValue"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy