
com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProfileOAuth2Properties.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appflow.kotlin.outputs
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileOAuth2GrantType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @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 ConnectorProfileOAuth2Properties(
public val oAuth2GrantType: ConnectorProfileOAuth2GrantType? = null,
public val tokenUrl: String? = null,
public val tokenUrlCustomProperties: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.appflow.outputs.ConnectorProfileOAuth2Properties): ConnectorProfileOAuth2Properties = ConnectorProfileOAuth2Properties(
oAuth2GrantType = javaType.oAuth2GrantType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileOAuth2GrantType.Companion.toKotlin(args0)
})
}).orElse(null),
tokenUrl = javaType.tokenUrl().map({ args0 -> args0 }).orElse(null),
tokenUrlCustomProperties = javaType.tokenUrlCustomProperties().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy