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