com.pulumi.aws.apprunner.kotlin.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs.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.apprunner.kotlin.inputs
import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs.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
/**
*
* @property codeConfigurationValues Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
* @property configurationSource Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
* * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
* source code repository and ignores the CodeConfigurationValues parameter.
* * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
* parameter and ignores the apprunner.yaml file in the source code repository.
*/
public data class ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs(
public val codeConfigurationValues: Output? =
null,
public val configurationSource: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs =
com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs.builder()
.codeConfigurationValues(
codeConfigurationValues?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.configurationSource(configurationSource.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs].
*/
@PulumiTagMarker
public class ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgsBuilder internal constructor() {
private var codeConfigurationValues:
Output? =
null
private var configurationSource: Output? = null
/**
* @param value Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
*/
@JvmName("ugjweyvdmfojqwld")
public suspend fun codeConfigurationValues(`value`: Output) {
this.codeConfigurationValues = value
}
/**
* @param value Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
* * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
* source code repository and ignores the CodeConfigurationValues parameter.
* * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
* parameter and ignores the apprunner.yaml file in the source code repository.
*/
@JvmName("asjovuxcxfkhjsur")
public suspend fun configurationSource(`value`: Output) {
this.configurationSource = value
}
/**
* @param value Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
*/
@JvmName("hpicuwquejisussg")
public suspend fun codeConfigurationValues(`value`: ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.codeConfigurationValues = mapped
}
/**
* @param argument Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
*/
@JvmName("ixfjeytdcewttgxf")
public suspend fun codeConfigurationValues(argument: suspend ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgsBuilder.() -> Unit) {
val toBeMapped =
ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.codeConfigurationValues = mapped
}
/**
* @param value Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
* * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
* source code repository and ignores the CodeConfigurationValues parameter.
* * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
* parameter and ignores the apprunner.yaml file in the source code repository.
*/
@JvmName("ilehgdnaiqdkyebu")
public suspend fun configurationSource(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.configurationSource = mapped
}
internal fun build(): ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs =
ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs(
codeConfigurationValues = codeConfigurationValues,
configurationSource = configurationSource ?: throw PulumiNullFieldException("configurationSource"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy