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

com.pulumi.awsnative.controltower.kotlin.EnabledBaselineArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.controltower.kotlin

import com.pulumi.awsnative.controltower.EnabledBaselineArgs.builder
import com.pulumi.awsnative.controltower.kotlin.inputs.EnabledBaselineParameterArgs
import com.pulumi.awsnative.controltower.kotlin.inputs.EnabledBaselineParameterArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::ControlTower::EnabledBaseline Resource Type
 * @property baselineIdentifier The specific `Baseline` enabled as part of the `EnabledBaseline` resource.
 * @property baselineVersion The enabled version of the `Baseline` .
 * @property parameters Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
 * @property tags Tags associated with input to `EnableBaseline` .
 * @property targetIdentifier The target on which to enable the `Baseline` .
 */
public data class EnabledBaselineArgs(
    public val baselineIdentifier: Output? = null,
    public val baselineVersion: Output? = null,
    public val parameters: Output>? = null,
    public val tags: Output>? = null,
    public val targetIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.controltower.EnabledBaselineArgs =
        com.pulumi.awsnative.controltower.EnabledBaselineArgs.builder()
            .baselineIdentifier(baselineIdentifier?.applyValue({ args0 -> args0 }))
            .baselineVersion(baselineVersion?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .targetIdentifier(targetIdentifier?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnabledBaselineArgs].
 */
@PulumiTagMarker
public class EnabledBaselineArgsBuilder internal constructor() {
    private var baselineIdentifier: Output? = null

    private var baselineVersion: Output? = null

    private var parameters: Output>? = null

    private var tags: Output>? = null

    private var targetIdentifier: Output? = null

    /**
     * @param value The specific `Baseline` enabled as part of the `EnabledBaseline` resource.
     */
    @JvmName("jcwdanafaxngcqcw")
    public suspend fun baselineIdentifier(`value`: Output) {
        this.baselineIdentifier = value
    }

    /**
     * @param value The enabled version of the `Baseline` .
     */
    @JvmName("imfabshfwrcogrgi")
    public suspend fun baselineVersion(`value`: Output) {
        this.baselineVersion = value
    }

    /**
     * @param value Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("irbvjmrvtqkrreeo")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("wnygcrwckqalcofs")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value Tags associated with input to `EnableBaseline` .
     */
    @JvmName("eahijjlboeodbtrw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags associated with input to `EnableBaseline` .
     */
    @JvmName("aykefivjutengvrd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The target on which to enable the `Baseline` .
     */
    @JvmName("bxhbwismsxpvojko")
    public suspend fun targetIdentifier(`value`: Output) {
        this.targetIdentifier = value
    }

    /**
     * @param value The specific `Baseline` enabled as part of the `EnabledBaseline` resource.
     */
    @JvmName("jhnraitfvkljgqlx")
    public suspend fun baselineIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baselineIdentifier = mapped
    }

    /**
     * @param value The enabled version of the `Baseline` .
     */
    @JvmName("dyfijkmlghfgjjuj")
    public suspend fun baselineVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baselineVersion = mapped
    }

    /**
     * @param value Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("wvmsyeomqmrumpux")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("hcgmwjacitotuaeg")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnabledBaselineParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("xqcsqalfchrlucbt")
    public suspend fun parameters(vararg argument: suspend EnabledBaselineParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnabledBaselineParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("jtarshmuleypppet")
    public suspend fun parameters(argument: suspend EnabledBaselineParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EnabledBaselineParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Parameters that are applied when enabling this `Baseline` . These parameters configure the behavior of the baseline.
     */
    @JvmName("uwijbytduexdrtpa")
    public suspend fun parameters(vararg values: EnabledBaselineParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Tags associated with input to `EnableBaseline` .
     */
    @JvmName("fcecpfxgpiobvrdo")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with input to `EnableBaseline` .
     */
    @JvmName("vldbncdeufbexwlm")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with input to `EnableBaseline` .
     */
    @JvmName("vmhbcbbfqrppsmlx")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with input to `EnableBaseline` .
     */
    @JvmName("mkdehnsirwhgbhpb")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags associated with input to `EnableBaseline` .
     */
    @JvmName("wvigotkllonvcvan")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The target on which to enable the `Baseline` .
     */
    @JvmName("oaoctaofxiyscxrs")
    public suspend fun targetIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetIdentifier = mapped
    }

    internal fun build(): EnabledBaselineArgs = EnabledBaselineArgs(
        baselineIdentifier = baselineIdentifier,
        baselineVersion = baselineVersion,
        parameters = parameters,
        tags = tags,
        targetIdentifier = targetIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy