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

com.pulumi.awsnative.inspector.kotlin.ResourceGroupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.inspector.kotlin

import com.pulumi.awsnative.inspector.ResourceGroupArgs.builder
import com.pulumi.awsnative.inspector.kotlin.inputs.ResourceGroupTagArgs
import com.pulumi.awsnative.inspector.kotlin.inputs.ResourceGroupTagArgsBuilder
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Inspector::ResourceGroup
 * @property resourceGroupTags The tags (key and value pairs) that will be associated with the resource group.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class ResourceGroupArgs(
    public val resourceGroupTags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.inspector.ResourceGroupArgs =
        com.pulumi.awsnative.inspector.ResourceGroupArgs.builder()
            .resourceGroupTags(
                resourceGroupTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("rkchyixuoousldln")
    public suspend fun resourceGroupTags(`value`: Output>) {
        this.resourceGroupTags = value
    }

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

    /**
     * @param values The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("anhnnndennnkynni")
    public suspend fun resourceGroupTags(values: List>) {
        this.resourceGroupTags = Output.all(values)
    }

    /**
     * @param value The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("gmuacwhbtgogwcgb")
    public suspend fun resourceGroupTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupTags = mapped
    }

    /**
     * @param argument The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("qfikplhvfdpwdiur")
    public suspend fun resourceGroupTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceGroupTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceGroupTags = mapped
    }

    /**
     * @param argument The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("paaqcotjbshpjhvw")
    public suspend fun resourceGroupTags(vararg argument: suspend ResourceGroupTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceGroupTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceGroupTags = mapped
    }

    /**
     * @param argument The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ekjqtqewcmbopxoj")
    public suspend fun resourceGroupTags(argument: suspend ResourceGroupTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceGroupTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.resourceGroupTags = mapped
    }

    /**
     * @param values The tags (key and value pairs) that will be associated with the resource group.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("rspnltdhwkshiopw")
    public suspend fun resourceGroupTags(vararg values: ResourceGroupTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceGroupTags = mapped
    }

    internal fun build(): ResourceGroupArgs = ResourceGroupArgs(
        resourceGroupTags = resourceGroupTags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy