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

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

/**
 * AWS Route53 Recovery Readiness Recovery Group Schema and API specifications.
 * @property cells A list of the cell Amazon Resource Names (ARNs) in the recovery group.
 * @property recoveryGroupName The name of the recovery group to create.
 * @property tags A collection of tags associated with a resource.
 */
public data class RecoveryGroupArgs(
    public val cells: Output>? = null,
    public val recoveryGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53recoveryreadiness.RecoveryGroupArgs =
        com.pulumi.awsnative.route53recoveryreadiness.RecoveryGroupArgs.builder()
            .cells(cells?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .recoveryGroupName(recoveryGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var recoveryGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A list of the cell Amazon Resource Names (ARNs) in the recovery group.
     */
    @JvmName("irstqilyxmjnshnt")
    public suspend fun cells(`value`: Output>) {
        this.cells = value
    }

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

    /**
     * @param values A list of the cell Amazon Resource Names (ARNs) in the recovery group.
     */
    @JvmName("ukppjbrpojiawnhu")
    public suspend fun cells(values: List>) {
        this.cells = Output.all(values)
    }

    /**
     * @param value The name of the recovery group to create.
     */
    @JvmName("ruedjspcobqabivg")
    public suspend fun recoveryGroupName(`value`: Output) {
        this.recoveryGroupName = value
    }

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

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

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

    /**
     * @param value A list of the cell Amazon Resource Names (ARNs) in the recovery group.
     */
    @JvmName("yhgluktcbymfnool")
    public suspend fun cells(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cells = mapped
    }

    /**
     * @param values A list of the cell Amazon Resource Names (ARNs) in the recovery group.
     */
    @JvmName("qoekbadrwnqfassp")
    public suspend fun cells(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cells = mapped
    }

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

    /**
     * @param value A collection of tags associated with a resource.
     */
    @JvmName("jkolmoawncjlcluf")
    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("rjorjdigplchotdk")
    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("yqujosxrelmnjgjy")
    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("wjcnvdhmvrsonrnr")
    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("hkcmprkjeurfvxuc")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RecoveryGroupArgs = RecoveryGroupArgs(
        cells = cells,
        recoveryGroupName = recoveryGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy