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

com.pulumi.awsnative.appflow.kotlin.inputs.ConnectorProfileCustomAuthCredentialsArgs.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.appflow.kotlin.inputs

import com.pulumi.awsnative.appflow.inputs.ConnectorProfileCustomAuthCredentialsArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property credentialsMap A map that holds custom authentication credentials.
 * @property customAuthenticationType The custom authentication type that the connector uses.
 */
public data class ConnectorProfileCustomAuthCredentialsArgs(
    public val credentialsMap: Output>? = null,
    public val customAuthenticationType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.inputs.ConnectorProfileCustomAuthCredentialsArgs =
        com.pulumi.awsnative.appflow.inputs.ConnectorProfileCustomAuthCredentialsArgs.builder()
            .credentialsMap(
                credentialsMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .customAuthenticationType(customAuthenticationType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorProfileCustomAuthCredentialsArgs].
 */
@PulumiTagMarker
public class ConnectorProfileCustomAuthCredentialsArgsBuilder internal constructor() {
    private var credentialsMap: Output>? = null

    private var customAuthenticationType: Output? = null

    /**
     * @param value A map that holds custom authentication credentials.
     */
    @JvmName("dmjyweqvrwlwagqg")
    public suspend fun credentialsMap(`value`: Output>) {
        this.credentialsMap = value
    }

    /**
     * @param value The custom authentication type that the connector uses.
     */
    @JvmName("xubldehoxnnmlvtt")
    public suspend fun customAuthenticationType(`value`: Output) {
        this.customAuthenticationType = value
    }

    /**
     * @param value A map that holds custom authentication credentials.
     */
    @JvmName("penqckjndtcqhuwg")
    public suspend fun credentialsMap(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentialsMap = mapped
    }

    /**
     * @param values A map that holds custom authentication credentials.
     */
    @JvmName("xajidtbmyskuaufm")
    public fun credentialsMap(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentialsMap = mapped
    }

    /**
     * @param value The custom authentication type that the connector uses.
     */
    @JvmName("wqqtyfchytfsrtsk")
    public suspend fun customAuthenticationType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customAuthenticationType = mapped
    }

    internal fun build(): ConnectorProfileCustomAuthCredentialsArgs =
        ConnectorProfileCustomAuthCredentialsArgs(
            credentialsMap = credentialsMap,
            customAuthenticationType = customAuthenticationType ?: throw
                PulumiNullFieldException("customAuthenticationType"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy