![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.apprunner.kotlin.inputs.ServiceCodeRepositoryArgs.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.apprunner.kotlin.inputs
import com.pulumi.awsnative.apprunner.inputs.ServiceCodeRepositoryArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Source Code Repository
* @property codeConfiguration Configuration for building and running the service from a source code repository.
* > `CodeConfiguration` is required only for `CreateService` request.
* @property repositoryUrl Repository Url
* @property sourceCodeVersion The version that should be used within the source code repository.
* @property sourceDirectory Source Directory
*/
public data class ServiceCodeRepositoryArgs(
public val codeConfiguration: Output? = null,
public val repositoryUrl: Output,
public val sourceCodeVersion: Output,
public val sourceDirectory: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.apprunner.inputs.ServiceCodeRepositoryArgs =
com.pulumi.awsnative.apprunner.inputs.ServiceCodeRepositoryArgs.builder()
.codeConfiguration(codeConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.repositoryUrl(repositoryUrl.applyValue({ args0 -> args0 }))
.sourceCodeVersion(sourceCodeVersion.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sourceDirectory(sourceDirectory?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceCodeRepositoryArgs].
*/
@PulumiTagMarker
public class ServiceCodeRepositoryArgsBuilder internal constructor() {
private var codeConfiguration: Output? = null
private var repositoryUrl: Output? = null
private var sourceCodeVersion: Output? = null
private var sourceDirectory: Output? = null
/**
* @param value Configuration for building and running the service from a source code repository.
* > `CodeConfiguration` is required only for `CreateService` request.
*/
@JvmName("qjdyvjkccqpvsrbx")
public suspend fun codeConfiguration(`value`: Output) {
this.codeConfiguration = value
}
/**
* @param value Repository Url
*/
@JvmName("dfvooxaebifnsavp")
public suspend fun repositoryUrl(`value`: Output) {
this.repositoryUrl = value
}
/**
* @param value The version that should be used within the source code repository.
*/
@JvmName("fhfgytiphnfyhcuv")
public suspend fun sourceCodeVersion(`value`: Output) {
this.sourceCodeVersion = value
}
/**
* @param value Source Directory
*/
@JvmName("woovdfepuwqcckgv")
public suspend fun sourceDirectory(`value`: Output) {
this.sourceDirectory = value
}
/**
* @param value Configuration for building and running the service from a source code repository.
* > `CodeConfiguration` is required only for `CreateService` request.
*/
@JvmName("fsyrrwsbaxoufhpp")
public suspend fun codeConfiguration(`value`: ServiceCodeConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.codeConfiguration = mapped
}
/**
* @param argument Configuration for building and running the service from a source code repository.
* > `CodeConfiguration` is required only for `CreateService` request.
*/
@JvmName("cwcafkphktolaglh")
public suspend fun codeConfiguration(argument: suspend ServiceCodeConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = ServiceCodeConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.codeConfiguration = mapped
}
/**
* @param value Repository Url
*/
@JvmName("brgubrsgjewujwbx")
public suspend fun repositoryUrl(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.repositoryUrl = mapped
}
/**
* @param value The version that should be used within the source code repository.
*/
@JvmName("ygaftkcdjvxuphqg")
public suspend fun sourceCodeVersion(`value`: ServiceSourceCodeVersionArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceCodeVersion = mapped
}
/**
* @param argument The version that should be used within the source code repository.
*/
@JvmName("jglqnkhqdapnmnca")
public suspend fun sourceCodeVersion(argument: suspend ServiceSourceCodeVersionArgsBuilder.() -> Unit) {
val toBeMapped = ServiceSourceCodeVersionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sourceCodeVersion = mapped
}
/**
* @param value Source Directory
*/
@JvmName("ssvqjexjpmhvdyqa")
public suspend fun sourceDirectory(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceDirectory = mapped
}
internal fun build(): ServiceCodeRepositoryArgs = ServiceCodeRepositoryArgs(
codeConfiguration = codeConfiguration,
repositoryUrl = repositoryUrl ?: throw PulumiNullFieldException("repositoryUrl"),
sourceCodeVersion = sourceCodeVersion ?: throw PulumiNullFieldException("sourceCodeVersion"),
sourceDirectory = sourceDirectory,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy