All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.apprunner.kotlin.inputs.ServiceSourceConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apprunner.kotlin.inputs

import com.pulumi.awsnative.apprunner.inputs.ServiceSourceConfigurationArgs.builder
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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Source Code configuration
 * @property authenticationConfiguration Describes the resources that are needed to authenticate access to some source repositories.
 * @property autoDeploymentsEnabled Auto Deployment enabled
 * @property codeRepository The description of a source code repository.
 * You must provide either this member or `ImageRepository` (but not both).
 * @property imageRepository The description of a source image repository.
 * You must provide either this member or `CodeRepository` (but not both).
 */
public data class ServiceSourceConfigurationArgs(
    public val authenticationConfiguration: Output? = null,
    public val autoDeploymentsEnabled: Output? = null,
    public val codeRepository: Output? = null,
    public val imageRepository: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apprunner.inputs.ServiceSourceConfigurationArgs =
        com.pulumi.awsnative.apprunner.inputs.ServiceSourceConfigurationArgs.builder()
            .authenticationConfiguration(
                authenticationConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .autoDeploymentsEnabled(autoDeploymentsEnabled?.applyValue({ args0 -> args0 }))
            .codeRepository(codeRepository?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .imageRepository(
                imageRepository?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceSourceConfigurationArgs].
 */
@PulumiTagMarker
public class ServiceSourceConfigurationArgsBuilder internal constructor() {
    private var authenticationConfiguration: Output? = null

    private var autoDeploymentsEnabled: Output? = null

    private var codeRepository: Output? = null

    private var imageRepository: Output? = null

    /**
     * @param value Describes the resources that are needed to authenticate access to some source repositories.
     */
    @JvmName("gjvrhexhwechload")
    public suspend fun authenticationConfiguration(`value`: Output) {
        this.authenticationConfiguration = value
    }

    /**
     * @param value Auto Deployment enabled
     */
    @JvmName("loaajqccicjwgydi")
    public suspend fun autoDeploymentsEnabled(`value`: Output) {
        this.autoDeploymentsEnabled = value
    }

    /**
     * @param value The description of a source code repository.
     * You must provide either this member or `ImageRepository` (but not both).
     */
    @JvmName("shqtjiqxbexmnxks")
    public suspend fun codeRepository(`value`: Output) {
        this.codeRepository = value
    }

    /**
     * @param value The description of a source image repository.
     * You must provide either this member or `CodeRepository` (but not both).
     */
    @JvmName("wtejcmdikwxlmxwq")
    public suspend fun imageRepository(`value`: Output) {
        this.imageRepository = value
    }

    /**
     * @param value Describes the resources that are needed to authenticate access to some source repositories.
     */
    @JvmName("sfxhbdrbpknuhheu")
    public suspend fun authenticationConfiguration(`value`: ServiceAuthenticationConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationConfiguration = mapped
    }

    /**
     * @param argument Describes the resources that are needed to authenticate access to some source repositories.
     */
    @JvmName("tksjlkmhlpkdsyff")
    public suspend fun authenticationConfiguration(argument: suspend ServiceAuthenticationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAuthenticationConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authenticationConfiguration = mapped
    }

    /**
     * @param value Auto Deployment enabled
     */
    @JvmName("hlmussmegybumhgc")
    public suspend fun autoDeploymentsEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoDeploymentsEnabled = mapped
    }

    /**
     * @param value The description of a source code repository.
     * You must provide either this member or `ImageRepository` (but not both).
     */
    @JvmName("jlrpftqipydpmqem")
    public suspend fun codeRepository(`value`: ServiceCodeRepositoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codeRepository = mapped
    }

    /**
     * @param argument The description of a source code repository.
     * You must provide either this member or `ImageRepository` (but not both).
     */
    @JvmName("uovcdpdethiunyer")
    public suspend fun codeRepository(argument: suspend ServiceCodeRepositoryArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCodeRepositoryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.codeRepository = mapped
    }

    /**
     * @param value The description of a source image repository.
     * You must provide either this member or `CodeRepository` (but not both).
     */
    @JvmName("wiaweoocgxdywedq")
    public suspend fun imageRepository(`value`: ServiceImageRepositoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageRepository = mapped
    }

    /**
     * @param argument The description of a source image repository.
     * You must provide either this member or `CodeRepository` (but not both).
     */
    @JvmName("qmdgmtqruoqomhuo")
    public suspend fun imageRepository(argument: suspend ServiceImageRepositoryArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceImageRepositoryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.imageRepository = mapped
    }

    internal fun build(): ServiceSourceConfigurationArgs = ServiceSourceConfigurationArgs(
        authenticationConfiguration = authenticationConfiguration,
        autoDeploymentsEnabled = autoDeploymentsEnabled,
        codeRepository = codeRepository,
        imageRepository = imageRepository,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy