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

com.pulumi.aws.backup.kotlin.inputs.FrameworkControlScopeArgs.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.backup.kotlin.inputs

import com.pulumi.aws.backup.inputs.FrameworkControlScopeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property complianceResourceIds The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items.
 * @property complianceResourceTypes Describes whether the control scope includes one or more types of resources, such as EFS or RDS.
 * @property tags The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
 */
public data class FrameworkControlScopeArgs(
    public val complianceResourceIds: Output>? = null,
    public val complianceResourceTypes: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.backup.inputs.FrameworkControlScopeArgs =
        com.pulumi.aws.backup.inputs.FrameworkControlScopeArgs.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.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [FrameworkControlScopeArgs].
 */
@PulumiTagMarker
public class FrameworkControlScopeArgsBuilder 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. Minimum number of 1 item. Maximum number of 100 items.
     */
    @JvmName("jydtoywbbyhgsudo")
    public suspend fun complianceResourceIds(`value`: Output>) {
        this.complianceResourceIds = value
    }

    @JvmName("xkcmgbqfekhbynrl")
    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. Minimum number of 1 item. Maximum number of 100 items.
     */
    @JvmName("ewdaahexawvmcgdy")
    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("jfipaoiopjjfrfwc")
    public suspend fun complianceResourceTypes(`value`: Output>) {
        this.complianceResourceTypes = value
    }

    @JvmName("gixpnmsmtyefptge")
    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("uqmcogiqxkjkfpbe")
    public suspend fun complianceResourceTypes(values: List>) {
        this.complianceResourceTypes = Output.all(values)
    }

    /**
     * @param value The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
     */
    @JvmName("klnwrhrebugmenyd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items.
     */
    @JvmName("bfgperrxjdufdyiv")
    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. Minimum number of 1 item. Maximum number of 100 items.
     */
    @JvmName("rgwcrymhpyvfrqlb")
    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("nuuvktphosysrvup")
    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("dajqmrropttctewa")
    public suspend fun complianceResourceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complianceResourceTypes = mapped
    }

    /**
     * @param value The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
     */
    @JvmName("esucuqkdbnbpdsor")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
     */
    @JvmName("yqgtykidjohoevda")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy