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

com.pulumi.awsnative.appflow.kotlin.inputs.ConnectorProfileApiKeyCredentialsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appflow.kotlin.inputs

import com.pulumi.awsnative.appflow.inputs.ConnectorProfileApiKeyCredentialsArgs.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 apiKey The API key required for API key authentication.
 * @property apiSecretKey The API secret key required for API key authentication.
 */
public data class ConnectorProfileApiKeyCredentialsArgs(
    public val apiKey: Output,
    public val apiSecretKey: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.inputs.ConnectorProfileApiKeyCredentialsArgs =
        com.pulumi.awsnative.appflow.inputs.ConnectorProfileApiKeyCredentialsArgs.builder()
            .apiKey(apiKey.applyValue({ args0 -> args0 }))
            .apiSecretKey(apiSecretKey?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorProfileApiKeyCredentialsArgs].
 */
@PulumiTagMarker
public class ConnectorProfileApiKeyCredentialsArgsBuilder internal constructor() {
    private var apiKey: Output? = null

    private var apiSecretKey: Output? = null

    /**
     * @param value The API key required for API key authentication.
     */
    @JvmName("lykhkvtkfaigojwt")
    public suspend fun apiKey(`value`: Output) {
        this.apiKey = value
    }

    /**
     * @param value The API secret key required for API key authentication.
     */
    @JvmName("qeciswnodbwgsaqu")
    public suspend fun apiSecretKey(`value`: Output) {
        this.apiSecretKey = value
    }

    /**
     * @param value The API key required for API key authentication.
     */
    @JvmName("mubjtbhwaedlhnih")
    public suspend fun apiKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiKey = mapped
    }

    /**
     * @param value The API secret key required for API key authentication.
     */
    @JvmName("wbawewvrracwjlxv")
    public suspend fun apiSecretKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiSecretKey = mapped
    }

    internal fun build(): ConnectorProfileApiKeyCredentialsArgs =
        ConnectorProfileApiKeyCredentialsArgs(
            apiKey = apiKey ?: throw PulumiNullFieldException("apiKey"),
            apiSecretKey = apiSecretKey,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy