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

com.pulumi.awsnative.events.kotlin.outputs.ConnectionOAuthParameters.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: 0.122.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy