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

com.pulumi.awsnative.route53recoveryreadiness.kotlin.CellArgs.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.route53recoveryreadiness.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.route53recoveryreadiness.CellArgs.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 API Schema for AWS Route53 Recovery Readiness Cells.
 * @property cellName The name of the cell to create.
 * @property cells A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
 * @property tags A collection of tags associated with a resource
 */
public data class CellArgs(
    public val cellName: Output? = null,
    public val cells: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53recoveryreadiness.CellArgs =
        com.pulumi.awsnative.route53recoveryreadiness.CellArgs.builder()
            .cellName(cellName?.applyValue({ args0 -> args0 }))
            .cells(cells?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CellArgs].
 */
@PulumiTagMarker
public class CellArgsBuilder internal constructor() {
    private var cellName: Output? = null

    private var cells: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the cell to create.
     */
    @JvmName("cqfhhwuglmpwgvvd")
    public suspend fun cellName(`value`: Output) {
        this.cellName = value
    }

    /**
     * @param value A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
     */
    @JvmName("arrmbmppktehlgyk")
    public suspend fun cells(`value`: Output>) {
        this.cells = value
    }

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

    /**
     * @param values A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
     */
    @JvmName("rfniofqujsxsyjfw")
    public suspend fun cells(values: List>) {
        this.cells = Output.all(values)
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("kcodqkyaarphetxo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("jcurvaooieqkqxyp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the cell to create.
     */
    @JvmName("kecjeovnryanjnyj")
    public suspend fun cellName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cellName = mapped
    }

    /**
     * @param value A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
     */
    @JvmName("whhcywqknnrxrsgq")
    public suspend fun cells(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cells = mapped
    }

    /**
     * @param values A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
     */
    @JvmName("ldsfxfdsfapkywus")
    public suspend fun cells(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cells = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("wsypldwkomqdvjch")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("syylexmrolaubibo")
    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 A collection of tags associated with a resource
     */
    @JvmName("auirluvvrrpncfvy")
    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 A collection of tags associated with a resource
     */
    @JvmName("dysvimgspdfxbmny")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("enidrqsdwnyrufva")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CellArgs = CellArgs(
        cellName = cellName,
        cells = cells,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy