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

com.pulumi.awsnative.fms.kotlin.ResourceSetArgs.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.fms.kotlin

import com.pulumi.awsnative.fms.ResourceSetArgs.builder
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

/**
 * Creates an AWS Firewall Manager resource set.
 * @property description A description of the resource set.
 * @property name The descriptive name of the resource set. You can't change the name of a resource set after you create it.
 * @property resourceTypeList Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
 * @property resources
 * @property tags
 */
public data class ResourceSetArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val resourceTypeList: Output>? = null,
    public val resources: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.fms.ResourceSetArgs =
        com.pulumi.awsnative.fms.ResourceSetArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceTypeList(resourceTypeList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resources(resources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ResourceSetArgs].
 */
@PulumiTagMarker
public class ResourceSetArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var resourceTypeList: Output>? = null

    private var resources: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A description of the resource set.
     */
    @JvmName("ogxgttedneywraph")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The descriptive name of the resource set. You can't change the name of a resource set after you create it.
     */
    @JvmName("ygkawsbayglucirk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
     */
    @JvmName("jlfxlkhcnfnokyed")
    public suspend fun resourceTypeList(`value`: Output>) {
        this.resourceTypeList = value
    }

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

    /**
     * @param values Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
     */
    @JvmName("aflspqptrnvgkjox")
    public suspend fun resourceTypeList(values: List>) {
        this.resourceTypeList = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("mnvymlbqvylsadsd")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

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

    /**
     * @param values
     */
    @JvmName("lklpupbdrtjyyxjx")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("idpgqdslnabooluw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values
     */
    @JvmName("pioqtwvbfdaatxpw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A description of the resource set.
     */
    @JvmName("ycvapylupdiicdsa")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The descriptive name of the resource set. You can't change the name of a resource set after you create it.
     */
    @JvmName("soidlhkoqtkouqqt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
     */
    @JvmName("njklvhsqbwarehag")
    public suspend fun resourceTypeList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceTypeList = mapped
    }

    /**
     * @param values Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
     */
    @JvmName("dodchmkpxhyjyssp")
    public suspend fun resourceTypeList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceTypeList = mapped
    }

    /**
     * @param value
     */
    @JvmName("qwfngqxohcgrgeep")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param values
     */
    @JvmName("exwkwqwoidsykgqe")
    public suspend fun resources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param value
     */
    @JvmName("cyynsaaxwscsvjaq")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("jmlufoaevpgihfuw")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("niculcbpfjfspxbu")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ptqpdjuohejgcugr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values
     */
    @JvmName("bwggqoayiqjitcsl")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ResourceSetArgs = ResourceSetArgs(
        description = description,
        name = name,
        resourceTypeList = resourceTypeList,
        resources = resources,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy