
com.pulumi.aws.opsworks.kotlin.inputs.StackCustomCookbooksSourceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.opsworks.kotlin.inputs
import com.pulumi.aws.opsworks.inputs.StackCustomCookbooksSourceArgs.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. The 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 cookbooks resource can be found.
* @property username Username to use when authenticating to the source.
*/
public data class StackCustomCookbooksSourceArgs(
public val password: Output? = null,
public val revision: Output? = null,
public val sshKey: Output? = null,
public val type: Output,
public val url: Output,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.StackCustomCookbooksSourceArgs =
com.pulumi.aws.opsworks.inputs.StackCustomCookbooksSourceArgs.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 [StackCustomCookbooksSourceArgs].
*/
@PulumiTagMarker
public class StackCustomCookbooksSourceArgsBuilder 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. The provider cannot perform drift detection of this configuration.
*/
@JvmName("riuiydhsifpwxqlu")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value For sources that are version-aware, the revision to use.
*/
@JvmName("tkdmbtohptimkpix")
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("yihxogbpgjchkctf")
public suspend fun sshKey(`value`: Output) {
this.sshKey = value
}
/**
* @param value The type of source to use. For example, "archive".
*/
@JvmName("ktskycfiurskserp")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The URL where the cookbooks resource can be found.
*/
@JvmName("iapudrlvrmorkbeq")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value Username to use when authenticating to the source.
*/
@JvmName("qwmuewldlatdhhtt")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
*/
@JvmName("qnmtpsbvwxfhexrk")
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("dyueshvgwwhvbheu")
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("cxeqntxfqlsgupvv")
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("aybtaytxbxlommbx")
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 cookbooks resource can be found.
*/
@JvmName("dleihwntfjrldbqo")
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("lpkndfcogyijntyw")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): StackCustomCookbooksSourceArgs = StackCustomCookbooksSourceArgs(
password = password,
revision = revision,
sshKey = sshKey,
type = type ?: throw PulumiNullFieldException("type"),
url = url ?: throw PulumiNullFieldException("url"),
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy