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

com.pulumi.aws.auditmanager.kotlin.inputs.FrameworkControlSetArgs.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.auditmanager.kotlin.inputs

import com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property controls Configuration block(s) for the controls within the control set. See `controls` Block below for details.
 * @property id Unique identifier for the framework.
 * @property name Name of the control set.
 */
public data class FrameworkControlSetArgs(
    public val controls: Output>? = null,
    public val id: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs =
        com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs.builder()
            .controls(
                controls?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    private var name: Output? = null

    /**
     * @param value Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("hylkxtphradoffnb")
    public suspend fun controls(`value`: Output>) {
        this.controls = value
    }

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

    /**
     * @param values Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("ygvirqllybtlqjmi")
    public suspend fun controls(values: List>) {
        this.controls = Output.all(values)
    }

    /**
     * @param value Unique identifier for the framework.
     */
    @JvmName("kljqkpkfyrtptsge")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Name of the control set.
     */
    @JvmName("pwoykbodafolmlvo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("tsqrgxpnsynjpsvx")
    public suspend fun controls(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controls = mapped
    }

    /**
     * @param argument Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("xoeefjjoxnypgxle")
    public suspend fun controls(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrameworkControlSetControlArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.controls = mapped
    }

    /**
     * @param argument Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("iqbgmslvbfesytkw")
    public suspend fun controls(vararg argument: suspend FrameworkControlSetControlArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrameworkControlSetControlArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.controls = mapped
    }

    /**
     * @param argument Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("qhxcupsiiwrwnlpk")
    public suspend fun controls(argument: suspend FrameworkControlSetControlArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrameworkControlSetControlArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.controls = mapped
    }

    /**
     * @param values Configuration block(s) for the controls within the control set. See `controls` Block below for details.
     */
    @JvmName("qrmehaqcmqhyfytk")
    public suspend fun controls(vararg values: FrameworkControlSetControlArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controls = mapped
    }

    /**
     * @param value Unique identifier for the framework.
     */
    @JvmName("jbfvqtpcpujehgdi")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Name of the control set.
     */
    @JvmName("qrfpnlmjkchfbgdl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): FrameworkControlSetArgs = FrameworkControlSetArgs(
        controls = controls,
        id = id,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy