com.pulumi.awsnative.events.kotlin.outputs.ConnectionOAuthParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.events.kotlin.outputs
import com.pulumi.awsnative.events.kotlin.enums.ConnectionOAuthParametersHttpMethod
import kotlin.String
import kotlin.Suppress
/**
*
* @property authorizationEndpoint The URL to the authorization endpoint when OAuth is specified as the authorization type.
* @property clientParameters A `CreateConnectionOAuthClientRequestParameters` object that contains the client parameters for OAuth authorization.
* @property httpMethod The method to use for the authorization request.
* @property oAuthHttpParameters A `ConnectionHttpParameters` object that contains details about the additional parameters to use for the connection.
*/
public data class ConnectionOAuthParameters(
public val authorizationEndpoint: String,
public val clientParameters: ConnectionClientParameters,
public val httpMethod: ConnectionOAuthParametersHttpMethod,
public val oAuthHttpParameters: ConnectionHttpParameters? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.events.outputs.ConnectionOAuthParameters): ConnectionOAuthParameters = ConnectionOAuthParameters(
authorizationEndpoint = javaType.authorizationEndpoint(),
clientParameters = javaType.clientParameters().let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.ConnectionClientParameters.Companion.toKotlin(args0)
}),
httpMethod = javaType.httpMethod().let({ args0 ->
com.pulumi.awsnative.events.kotlin.enums.ConnectionOAuthParametersHttpMethod.Companion.toKotlin(args0)
}),
oAuthHttpParameters = javaType.oAuthHttpParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.events.kotlin.outputs.ConnectionHttpParameters.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}