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

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

package com.pulumi.awsnative.backup.kotlin

import com.pulumi.awsnative.backup.FrameworkArgs.builder
import com.pulumi.awsnative.backup.kotlin.inputs.FrameworkControlArgs
import com.pulumi.awsnative.backup.kotlin.inputs.FrameworkControlArgsBuilder
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

/**
 * Contains detailed information about a framework. Frameworks contain controls, which evaluate and report on your backup events and resources. Frameworks generate daily compliance results.
 * @property frameworkControls Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
 * @property frameworkDescription An optional description of the framework with a maximum 1,024 characters.
 * @property frameworkName The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
 * @property frameworkTags Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
 */
public data class FrameworkArgs(
    public val frameworkControls: Output>? = null,
    public val frameworkDescription: Output? = null,
    public val frameworkName: Output? = null,
    public val frameworkTags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backup.FrameworkArgs =
        com.pulumi.awsnative.backup.FrameworkArgs.builder()
            .frameworkControls(
                frameworkControls?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .frameworkDescription(frameworkDescription?.applyValue({ args0 -> args0 }))
            .frameworkName(frameworkName?.applyValue({ args0 -> args0 }))
            .frameworkTags(
                frameworkTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var frameworkDescription: Output? = null

    private var frameworkName: Output? = null

    private var frameworkTags: Output>? = null

    /**
     * @param value Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("xhpwxnxgwprqcpws")
    public suspend fun frameworkControls(`value`: Output>) {
        this.frameworkControls = value
    }

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

    /**
     * @param values Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("odrvmnuywxvwculy")
    public suspend fun frameworkControls(values: List>) {
        this.frameworkControls = Output.all(values)
    }

    /**
     * @param value An optional description of the framework with a maximum 1,024 characters.
     */
    @JvmName("mvmqjarpjmpedkfp")
    public suspend fun frameworkDescription(`value`: Output) {
        this.frameworkDescription = value
    }

    /**
     * @param value The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
     */
    @JvmName("cpcaxemwxbplmuqx")
    public suspend fun frameworkName(`value`: Output) {
        this.frameworkName = value
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("wtfacgaombwurtme")
    public suspend fun frameworkTags(`value`: Output>) {
        this.frameworkTags = value
    }

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

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("hkparskeqbrroepm")
    public suspend fun frameworkTags(values: List>) {
        this.frameworkTags = Output.all(values)
    }

    /**
     * @param value Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("cbqnlgutytgahjhq")
    public suspend fun frameworkControls(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frameworkControls = mapped
    }

    /**
     * @param argument Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("nfuhgsqroyjyfexa")
    public suspend fun frameworkControls(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrameworkControlArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.frameworkControls = mapped
    }

    /**
     * @param argument Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("suplmwmauicuvblw")
    public suspend fun frameworkControls(vararg argument: suspend FrameworkControlArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrameworkControlArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.frameworkControls = mapped
    }

    /**
     * @param argument Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("jtiamsjeowtbdrgf")
    public suspend fun frameworkControls(argument: suspend FrameworkControlArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FrameworkControlArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.frameworkControls = mapped
    }

    /**
     * @param values Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.
     */
    @JvmName("olqubcyvjdtxqune")
    public suspend fun frameworkControls(vararg values: FrameworkControlArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frameworkControls = mapped
    }

    /**
     * @param value An optional description of the framework with a maximum 1,024 characters.
     */
    @JvmName("qpkjojqvlkywkwtq")
    public suspend fun frameworkDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frameworkDescription = mapped
    }

    /**
     * @param value The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
     */
    @JvmName("egnavkrqvsaruman")
    public suspend fun frameworkName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frameworkName = mapped
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("srsmbehplnagusqu")
    public suspend fun frameworkTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frameworkTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("rhhnjusgtktdhnig")
    public suspend fun frameworkTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.frameworkTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("egagucrmgwatqfsp")
    public suspend fun frameworkTags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.frameworkTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("twukgrdeqnjtywry")
    public suspend fun frameworkTags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.frameworkTags = mapped
    }

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("sfkouhspeimgaqdu")
    public suspend fun frameworkTags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frameworkTags = mapped
    }

    internal fun build(): FrameworkArgs = FrameworkArgs(
        frameworkControls = frameworkControls,
        frameworkDescription = frameworkDescription,
        frameworkName = frameworkName,
        frameworkTags = frameworkTags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy