
com.pulumi.awsnative.appflow.kotlin.inputs.ConnectorProfileOAuth2CredentialsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appflow.kotlin.inputs
import com.pulumi.awsnative.appflow.inputs.ConnectorProfileOAuth2CredentialsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property accessToken The access token used to access the connector on your behalf.
* @property clientId The identifier for the desired client.
* @property clientSecret The client secret used by the OAuth client to authenticate to the authorization server.
* @property oAuthRequest
* @property refreshToken The refresh token used to refresh an expired access token.
*/
public data class ConnectorProfileOAuth2CredentialsArgs(
public val accessToken: Output? = null,
public val clientId: Output? = null,
public val clientSecret: Output? = null,
public val oAuthRequest: Output? = null,
public val refreshToken: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.appflow.inputs.ConnectorProfileOAuth2CredentialsArgs =
com.pulumi.awsnative.appflow.inputs.ConnectorProfileOAuth2CredentialsArgs.builder()
.accessToken(accessToken?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
.oAuthRequest(oAuthRequest?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.refreshToken(refreshToken?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectorProfileOAuth2CredentialsArgs].
*/
@PulumiTagMarker
public class ConnectorProfileOAuth2CredentialsArgsBuilder internal constructor() {
private var accessToken: Output? = null
private var clientId: Output? = null
private var clientSecret: Output? = null
private var oAuthRequest: Output? = null
private var refreshToken: Output? = null
/**
* @param value The access token used to access the connector on your behalf.
*/
@JvmName("bfglnqvwgcholsri")
public suspend fun accessToken(`value`: Output) {
this.accessToken = value
}
/**
* @param value The identifier for the desired client.
*/
@JvmName("bmftiwijxcleplkn")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value The client secret used by the OAuth client to authenticate to the authorization server.
*/
@JvmName("acrdimkayxfyrmmu")
public suspend fun clientSecret(`value`: Output) {
this.clientSecret = value
}
/**
* @param value
*/
@JvmName("nphbgsjtfdfhpxrd")
public suspend fun oAuthRequest(`value`: Output) {
this.oAuthRequest = value
}
/**
* @param value The refresh token used to refresh an expired access token.
*/
@JvmName("eyfpcpxphjwrjhwt")
public suspend fun refreshToken(`value`: Output) {
this.refreshToken = value
}
/**
* @param value The access token used to access the connector on your behalf.
*/
@JvmName("gvrmsqduwmueaaxq")
public suspend fun accessToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessToken = mapped
}
/**
* @param value The identifier for the desired client.
*/
@JvmName("hbygnbtnpxvvplkh")
public suspend fun clientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value The client secret used by the OAuth client to authenticate to the authorization server.
*/
@JvmName("qcfqcioaxtreklnr")
public suspend fun clientSecret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientSecret = mapped
}
/**
* @param value
*/
@JvmName("txhmlruvlanmplpc")
public suspend fun oAuthRequest(`value`: ConnectorProfileConnectorOAuthRequestArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.oAuthRequest = mapped
}
/**
* @param argument
*/
@JvmName("brixejuqaspvosin")
public suspend fun oAuthRequest(argument: suspend ConnectorProfileConnectorOAuthRequestArgsBuilder.() -> Unit) {
val toBeMapped = ConnectorProfileConnectorOAuthRequestArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.oAuthRequest = mapped
}
/**
* @param value The refresh token used to refresh an expired access token.
*/
@JvmName("ifrfqklvgofgfleg")
public suspend fun refreshToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.refreshToken = mapped
}
internal fun build(): ConnectorProfileOAuth2CredentialsArgs =
ConnectorProfileOAuth2CredentialsArgs(
accessToken = accessToken,
clientId = clientId,
clientSecret = clientSecret,
oAuthRequest = oAuthRequest,
refreshToken = refreshToken,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy