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

com.pulumi.awsnative.codeconnections.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.codeconnections.kotlin

import com.pulumi.awsnative.codeconnections.ConnectionArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Schema for AWS::CodeConnections::Connection resource which can be used to connect external source providers with other AWS services (i.e. AWS CodePipeline)
 * @property connectionName The name of the connection. Connection names must be unique in an AWS user account.
 * @property hostArn The host arn configured to represent the infrastructure where your third-party provider is installed. You must specify either a ProviderType or a HostArn.
 * @property providerType The name of the external provider where your third-party code repository is configured. You must specify either a ProviderType or a HostArn.
 * @property tags Specifies the tags applied to a connection.
 */
public data class ConnectionArgs(
    public val connectionName: Output? = null,
    public val hostArn: Output? = null,
    public val providerType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codeconnections.ConnectionArgs =
        com.pulumi.awsnative.codeconnections.ConnectionArgs.builder()
            .connectionName(connectionName?.applyValue({ args0 -> args0 }))
            .hostArn(hostArn?.applyValue({ args0 -> args0 }))
            .providerType(providerType?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var hostArn: Output? = null

    private var providerType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the connection. Connection names must be unique in an AWS user account.
     */
    @JvmName("vscmetwdckugcfld")
    public suspend fun connectionName(`value`: Output) {
        this.connectionName = value
    }

    /**
     * @param value The host arn configured to represent the infrastructure where your third-party provider is installed. You must specify either a ProviderType or a HostArn.
     */
    @JvmName("qymwpnftmyysfsad")
    public suspend fun hostArn(`value`: Output) {
        this.hostArn = value
    }

    /**
     * @param value The name of the external provider where your third-party code repository is configured. You must specify either a ProviderType or a HostArn.
     */
    @JvmName("yjpdiqyhjkdqxlxg")
    public suspend fun providerType(`value`: Output) {
        this.providerType = value
    }

    /**
     * @param value Specifies the tags applied to a connection.
     */
    @JvmName("jgmunrrqbchdtdrf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("rnwgluvudcbilvmt")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Specifies the tags applied to a connection.
     */
    @JvmName("iitexxxjljpvqdfy")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the connection. Connection names must be unique in an AWS user account.
     */
    @JvmName("uuvcojsvvvlsthsk")
    public suspend fun connectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionName = mapped
    }

    /**
     * @param value The host arn configured to represent the infrastructure where your third-party provider is installed. You must specify either a ProviderType or a HostArn.
     */
    @JvmName("wpqbphsulrjkwklb")
    public suspend fun hostArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostArn = mapped
    }

    /**
     * @param value The name of the external provider where your third-party code repository is configured. You must specify either a ProviderType or a HostArn.
     */
    @JvmName("uccpcfqlyynnsfay")
    public suspend fun providerType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value Specifies the tags applied to a connection.
     */
    @JvmName("rvkbhevmlyfmvecv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a connection.
     */
    @JvmName("umqsqnutbygblgpc")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a connection.
     */
    @JvmName("hxbihmuwnqqklkux")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a connection.
     */
    @JvmName("bkgvpqqwggwtwagn")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies the tags applied to a connection.
     */
    @JvmName("lamhgykfltdnblsp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConnectionArgs = ConnectionArgs(
        connectionName = connectionName,
        hostArn = hostArn,
        providerType = providerType,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy