com.pulumi.aws.opsworks.kotlin.inputs.ApplicationAppSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.opsworks.kotlin.inputs
import com.pulumi.aws.opsworks.inputs.ApplicationAppSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property password Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
* @property revision For sources that are version-aware, the revision to use.
* @property sshKey SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
* @property type The type of source to use. For example, "archive".
* @property url The URL where the app resource can be found.
* @property username Username to use when authenticating to the source.
*/
public data class ApplicationAppSourceArgs(
public val password: Output? = null,
public val revision: Output? = null,
public val sshKey: Output? = null,
public val type: Output,
public val url: Output? = null,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.ApplicationAppSourceArgs =
com.pulumi.aws.opsworks.inputs.ApplicationAppSourceArgs.builder()
.password(password?.applyValue({ args0 -> args0 }))
.revision(revision?.applyValue({ args0 -> args0 }))
.sshKey(sshKey?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.url(url?.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationAppSourceArgs].
*/
@PulumiTagMarker
public class ApplicationAppSourceArgsBuilder internal constructor() {
private var password: Output? = null
private var revision: Output? = null
private var sshKey: Output? = null
private var type: Output? = null
private var url: Output? = null
private var username: Output? = null
/**
* @param value Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
*/
@JvmName("sgmdnemjmiukitsi")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value For sources that are version-aware, the revision to use.
*/
@JvmName("ipgfdnurcovgowmn")
public suspend fun revision(`value`: Output) {
this.revision = value
}
/**
* @param value SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
*/
@JvmName("lcfyscqdcrxswxli")
public suspend fun sshKey(`value`: Output) {
this.sshKey = value
}
/**
* @param value The type of source to use. For example, "archive".
*/
@JvmName("qkbrnejwysvfnwvb")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The URL where the app resource can be found.
*/
@JvmName("egovdtesbrugtdaf")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value Username to use when authenticating to the source.
*/
@JvmName("rfrkwcahcbrtkhdf")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
*/
@JvmName("tieudpmotnkigrkn")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value For sources that are version-aware, the revision to use.
*/
@JvmName("picjpwagthhlsauk")
public suspend fun revision(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.revision = mapped
}
/**
* @param value SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
*/
@JvmName("pyytlnvooklxdxdv")
public suspend fun sshKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sshKey = mapped
}
/**
* @param value The type of source to use. For example, "archive".
*/
@JvmName("lnbqgtfddiniqmqn")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The URL where the app resource can be found.
*/
@JvmName("gjxqbcqrhahlghnt")
public suspend fun url(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.url = mapped
}
/**
* @param value Username to use when authenticating to the source.
*/
@JvmName("vlxynysfjvkhrrhk")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ApplicationAppSourceArgs = ApplicationAppSourceArgs(
password = password,
revision = revision,
sshKey = sshKey,
type = type ?: throw PulumiNullFieldException("type"),
url = url,
username = username,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy