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

com.pulumi.awsnative.controltower.kotlin.EnabledControlArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.controltower.kotlin

import com.pulumi.awsnative.controltower.EnabledControlArgs.builder
import com.pulumi.awsnative.controltower.kotlin.inputs.EnabledControlParameterArgs
import com.pulumi.awsnative.controltower.kotlin.inputs.EnabledControlParameterArgsBuilder
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

/**
 * Enables a control on a specified target.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property controlIdentifier Arn of the control.
 * @property parameters Parameters to configure the enabled control behavior.
 * @property tags A set of tags to assign to the enabled control.
 * @property targetIdentifier Arn for Organizational unit to which the control needs to be applied
 */
public data class EnabledControlArgs(
    public val controlIdentifier: 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.EnabledControlArgs =
        com.pulumi.awsnative.controltower.EnabledControlArgs.builder()
            .controlIdentifier(controlIdentifier?.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 [EnabledControlArgs].
 */
@PulumiTagMarker
public class EnabledControlArgsBuilder internal constructor() {
    private var controlIdentifier: Output? = null

    private var parameters: Output>? = null

    private var tags: Output>? = null

    private var targetIdentifier: Output? = null

    /**
     * @param value Arn of the control.
     */
    @JvmName("nfuwfgmeghwyikyv")
    public suspend fun controlIdentifier(`value`: Output) {
        this.controlIdentifier = value
    }

    /**
     * @param value Parameters to configure the enabled control behavior.
     */
    @JvmName("yfkblbhwswwmpwgo")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Parameters to configure the enabled control behavior.
     */
    @JvmName("vxksmstfieyxedeh")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value A set of tags to assign to the enabled control.
     */
    @JvmName("hiqahtsllaflwbka")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A set of tags to assign to the enabled control.
     */
    @JvmName("cmahqbnuaglyphod")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Arn for Organizational unit to which the control needs to be applied
     */
    @JvmName("axpolduoyawlmdxx")
    public suspend fun targetIdentifier(`value`: Output) {
        this.targetIdentifier = value
    }

    /**
     * @param value Arn of the control.
     */
    @JvmName("ndxmhyqsifcyackf")
    public suspend fun controlIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlIdentifier = mapped
    }

    /**
     * @param value Parameters to configure the enabled control behavior.
     */
    @JvmName("texliwqrapqhhhky")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to configure the enabled control behavior.
     */
    @JvmName("gmgivfabwcaordwo")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnabledControlParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to configure the enabled control behavior.
     */
    @JvmName("utittgjfieurkwoq")
    public suspend fun parameters(vararg argument: suspend EnabledControlParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnabledControlParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to configure the enabled control behavior.
     */
    @JvmName("ssrxubfuldmuwoko")
    public suspend fun parameters(argument: suspend EnabledControlParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EnabledControlParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Parameters to configure the enabled control behavior.
     */
    @JvmName("havwgvwekmptlwut")
    public suspend fun parameters(vararg values: EnabledControlParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value A set of tags to assign to the enabled control.
     */
    @JvmName("ypklosneqalcfwau")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A set of tags to assign to the enabled control.
     */
    @JvmName("bmqmljctxlvrabew")
    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 A set of tags to assign to the enabled control.
     */
    @JvmName("ymtnajfhnlqsihlq")
    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 A set of tags to assign to the enabled control.
     */
    @JvmName("jajmpwrjhnakfgol")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A set of tags to assign to the enabled control.
     */
    @JvmName("hgabviqsnlhhfccg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Arn for Organizational unit to which the control needs to be applied
     */
    @JvmName("gthcvuqswrbuskri")
    public suspend fun targetIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetIdentifier = mapped
    }

    internal fun build(): EnabledControlArgs = EnabledControlArgs(
        controlIdentifier = controlIdentifier,
        parameters = parameters,
        tags = tags,
        targetIdentifier = targetIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy