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

com.pulumi.aws.codebuild.kotlin.inputs.ProjectBuildBatchConfigRestrictionsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codebuild.kotlin.inputs

import com.pulumi.aws.codebuild.inputs.ProjectBuildBatchConfigRestrictionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property computeTypesAlloweds An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values.
 * @property maximumBuildsAllowed Specifies the maximum number of builds allowed.
 */
public data class ProjectBuildBatchConfigRestrictionsArgs(
    public val computeTypesAlloweds: Output>? = null,
    public val maximumBuildsAllowed: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codebuild.inputs.ProjectBuildBatchConfigRestrictionsArgs =
        com.pulumi.aws.codebuild.inputs.ProjectBuildBatchConfigRestrictionsArgs.builder()
            .computeTypesAlloweds(computeTypesAlloweds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .maximumBuildsAllowed(maximumBuildsAllowed?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProjectBuildBatchConfigRestrictionsArgs].
 */
@PulumiTagMarker
public class ProjectBuildBatchConfigRestrictionsArgsBuilder internal constructor() {
    private var computeTypesAlloweds: Output>? = null

    private var maximumBuildsAllowed: Output? = null

    /**
     * @param value An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values.
     */
    @JvmName("erbeqmlnblnqdygv")
    public suspend fun computeTypesAlloweds(`value`: Output>) {
        this.computeTypesAlloweds = value
    }

    @JvmName("xfkiwjrldsaqqpmx")
    public suspend fun computeTypesAlloweds(vararg values: Output) {
        this.computeTypesAlloweds = Output.all(values.asList())
    }

    /**
     * @param values An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values.
     */
    @JvmName("mduucwgelxmnvuxs")
    public suspend fun computeTypesAlloweds(values: List>) {
        this.computeTypesAlloweds = Output.all(values)
    }

    /**
     * @param value Specifies the maximum number of builds allowed.
     */
    @JvmName("vuxxhatrudihggdm")
    public suspend fun maximumBuildsAllowed(`value`: Output) {
        this.maximumBuildsAllowed = value
    }

    /**
     * @param value An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values.
     */
    @JvmName("icqrmvkfqnejoonh")
    public suspend fun computeTypesAlloweds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeTypesAlloweds = mapped
    }

    /**
     * @param values An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values.
     */
    @JvmName("jmfvmsnasqgnbspo")
    public suspend fun computeTypesAlloweds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.computeTypesAlloweds = mapped
    }

    /**
     * @param value Specifies the maximum number of builds allowed.
     */
    @JvmName("iuqybfbwicalolkk")
    public suspend fun maximumBuildsAllowed(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumBuildsAllowed = mapped
    }

    internal fun build(): ProjectBuildBatchConfigRestrictionsArgs =
        ProjectBuildBatchConfigRestrictionsArgs(
            computeTypesAlloweds = computeTypesAlloweds,
            maximumBuildsAllowed = maximumBuildsAllowed,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy