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

com.pulumi.awsnative.appflow.kotlin.inputs.ConnectorProfileOAuth2PropertiesArgs.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.ConnectorProfileOAuth2PropertiesArgs.builder
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileOAuth2GrantType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property oAuth2GrantType The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.
 * @property tokenUrl The token URL required for OAuth 2.0 authentication.
 * @property tokenUrlCustomProperties Associates your token URL with a map of properties that you define. Use this parameter to provide any additional details that the connector requires to authenticate your request.
 */
public data class ConnectorProfileOAuth2PropertiesArgs(
    public val oAuth2GrantType: Output? = null,
    public val tokenUrl: Output? = null,
    public val tokenUrlCustomProperties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.inputs.ConnectorProfileOAuth2PropertiesArgs =
        com.pulumi.awsnative.appflow.inputs.ConnectorProfileOAuth2PropertiesArgs.builder()
            .oAuth2GrantType(oAuth2GrantType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tokenUrl(tokenUrl?.applyValue({ args0 -> args0 }))
            .tokenUrlCustomProperties(
                tokenUrlCustomProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ConnectorProfileOAuth2PropertiesArgs].
 */
@PulumiTagMarker
public class ConnectorProfileOAuth2PropertiesArgsBuilder internal constructor() {
    private var oAuth2GrantType: Output? = null

    private var tokenUrl: Output? = null

    private var tokenUrlCustomProperties: Output>? = null

    /**
     * @param value The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.
     */
    @JvmName("nxdhpjpikcompmyl")
    public suspend fun oAuth2GrantType(`value`: Output) {
        this.oAuth2GrantType = value
    }

    /**
     * @param value The token URL required for OAuth 2.0 authentication.
     */
    @JvmName("tjyopvdirkmtyawb")
    public suspend fun tokenUrl(`value`: Output) {
        this.tokenUrl = value
    }

    /**
     * @param value Associates your token URL with a map of properties that you define. Use this parameter to provide any additional details that the connector requires to authenticate your request.
     */
    @JvmName("ulcvuxirpfcdhvxy")
    public suspend fun tokenUrlCustomProperties(`value`: Output>) {
        this.tokenUrlCustomProperties = value
    }

    /**
     * @param value The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.
     */
    @JvmName("dbpujexbqxbfetfn")
    public suspend fun oAuth2GrantType(`value`: ConnectorProfileOAuth2GrantType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oAuth2GrantType = mapped
    }

    /**
     * @param value The token URL required for OAuth 2.0 authentication.
     */
    @JvmName("ukjocegrlrvrcjhl")
    public suspend fun tokenUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenUrl = mapped
    }

    /**
     * @param value Associates your token URL with a map of properties that you define. Use this parameter to provide any additional details that the connector requires to authenticate your request.
     */
    @JvmName("suxrinugmvsblrrp")
    public suspend fun tokenUrlCustomProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenUrlCustomProperties = mapped
    }

    /**
     * @param values Associates your token URL with a map of properties that you define. Use this parameter to provide any additional details that the connector requires to authenticate your request.
     */
    @JvmName("niwcvofihaqsydxr")
    public fun tokenUrlCustomProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tokenUrlCustomProperties = mapped
    }

    internal fun build(): ConnectorProfileOAuth2PropertiesArgs = ConnectorProfileOAuth2PropertiesArgs(
        oAuth2GrantType = oAuth2GrantType,
        tokenUrl = tokenUrl,
        tokenUrlCustomProperties = tokenUrlCustomProperties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy