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

com.pulumi.awsnative.backup.kotlin.inputs.FrameworkControlControlScopePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.backup.kotlin.inputs

import com.pulumi.awsnative.backup.inputs.FrameworkControlControlScopePropertiesArgs.builder
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

/**
 * The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
 * @property complianceResourceIds The ID of the only AWS resource that you want your control scope to contain.
 * @property complianceResourceTypes Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.
 * @property tags Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
 */
public data class FrameworkControlControlScopePropertiesArgs(
    public val complianceResourceIds: Output>? = null,
    public val complianceResourceTypes: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backup.inputs.FrameworkControlControlScopePropertiesArgs =
        com.pulumi.awsnative.backup.inputs.FrameworkControlControlScopePropertiesArgs.builder()
            .complianceResourceIds(complianceResourceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .complianceResourceTypes(
                complianceResourceTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var complianceResourceTypes: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of the only AWS resource that you want your control scope to contain.
     */
    @JvmName("uccleemgnrhifobd")
    public suspend fun complianceResourceIds(`value`: Output>) {
        this.complianceResourceIds = value
    }

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

    /**
     * @param values The ID of the only AWS resource that you want your control scope to contain.
     */
    @JvmName("rvcmargxwrkeosya")
    public suspend fun complianceResourceIds(values: List>) {
        this.complianceResourceIds = Output.all(values)
    }

    /**
     * @param value Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.
     */
    @JvmName("vcyqxjgolmceayvy")
    public suspend fun complianceResourceTypes(`value`: Output>) {
        this.complianceResourceTypes = value
    }

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

    /**
     * @param values Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.
     */
    @JvmName("jhvxufxckxolfqrb")
    public suspend fun complianceResourceTypes(values: List>) {
        this.complianceResourceTypes = Output.all(values)
    }

    /**
     * @param value Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("yryjaucustiipdea")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("qldkrlpifvbyrryw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the only AWS resource that you want your control scope to contain.
     */
    @JvmName("gaelpajcdcanydao")
    public suspend fun complianceResourceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.complianceResourceIds = mapped
    }

    /**
     * @param values The ID of the only AWS resource that you want your control scope to contain.
     */
    @JvmName("ncvqvedcarvaucdl")
    public suspend fun complianceResourceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complianceResourceIds = mapped
    }

    /**
     * @param value Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.
     */
    @JvmName("lbybiiphoxwalgpk")
    public suspend fun complianceResourceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.complianceResourceTypes = mapped
    }

    /**
     * @param values Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.
     */
    @JvmName("ecjedibfujsnxxfq")
    public suspend fun complianceResourceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complianceResourceTypes = mapped
    }

    /**
     * @param value Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("mffxyjyvegltwbxl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("ykabakfoujpqcupn")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrameworkTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("egnpcwthaqugrmwj")
    public suspend fun tags(vararg argument: suspend FrameworkTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrameworkTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("qocdtqsautudykuk")
    public suspend fun tags(argument: suspend FrameworkTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FrameworkTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
     */
    @JvmName("tjovjarpoudotxps")
    public suspend fun tags(vararg values: FrameworkTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FrameworkControlControlScopePropertiesArgs =
        FrameworkControlControlScopePropertiesArgs(
            complianceResourceIds = complianceResourceIds,
            complianceResourceTypes = complianceResourceTypes,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy