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

com.pulumi.awsnative.events.kotlin.ConnectionArgs.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

import com.pulumi.awsnative.events.ConnectionArgs.builder
import com.pulumi.awsnative.events.kotlin.enums.ConnectionAuthorizationType
import com.pulumi.awsnative.events.kotlin.inputs.ConnectionAuthParametersArgs
import com.pulumi.awsnative.events.kotlin.inputs.ConnectionAuthParametersArgsBuilder
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

/**
 * Resource Type definition for AWS::Events::Connection.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property authParameters A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
 * @property authorizationType The type of authorization to use for the connection.
 * > OAUTH tokens are refreshed when a 401 or 407 response is returned.
 * @property description Description of the connection.
 * @property name Name of the connection.
 */
public data class ConnectionArgs(
    public val authParameters: Output? = null,
    public val authorizationType: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.ConnectionArgs =
        com.pulumi.awsnative.events.ConnectionArgs.builder()
            .authParameters(authParameters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .authorizationType(authorizationType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionArgs].
 */
@PulumiTagMarker
public class ConnectionArgsBuilder internal constructor() {
    private var authParameters: Output? = null

    private var authorizationType: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    /**
     * @param value A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
     */
    @JvmName("hapeqtaonaslqnai")
    public suspend fun authParameters(`value`: Output) {
        this.authParameters = value
    }

    /**
     * @param value The type of authorization to use for the connection.
     * > OAUTH tokens are refreshed when a 401 or 407 response is returned.
     */
    @JvmName("ssupkgjbgtsphymm")
    public suspend fun authorizationType(`value`: Output) {
        this.authorizationType = value
    }

    /**
     * @param value Description of the connection.
     */
    @JvmName("mlyvfhoxfcsjtrah")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Name of the connection.
     */
    @JvmName("mmfxsexnsytqhtub")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
     */
    @JvmName("eexhyiwkaehhlema")
    public suspend fun authParameters(`value`: ConnectionAuthParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authParameters = mapped
    }

    /**
     * @param argument A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
     */
    @JvmName("udeaowwnuxyslfsj")
    public suspend fun authParameters(argument: suspend ConnectionAuthParametersArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionAuthParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authParameters = mapped
    }

    /**
     * @param value The type of authorization to use for the connection.
     * > OAUTH tokens are refreshed when a 401 or 407 response is returned.
     */
    @JvmName("wgfvxobqwhiwmonw")
    public suspend fun authorizationType(`value`: ConnectionAuthorizationType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizationType = mapped
    }

    /**
     * @param value Description of the connection.
     */
    @JvmName("porutglogbenthot")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Name of the connection.
     */
    @JvmName("aqhwgxqurjyuccvs")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ConnectionArgs = ConnectionArgs(
        authParameters = authParameters,
        authorizationType = authorizationType,
        description = description,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy