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

com.pulumi.awsnative.ssmincidents.kotlin.ReplicationSetArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssmincidents.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ssmincidents.ReplicationSetArgs.builder
import com.pulumi.awsnative.ssmincidents.kotlin.inputs.ReplicationSetReplicationRegionArgs
import com.pulumi.awsnative.ssmincidents.kotlin.inputs.ReplicationSetReplicationRegionArgsBuilder
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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource type definition for AWS::SSMIncidents::ReplicationSet
 * @property deletionProtected Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Region in the replication set.
 * @property regions The ReplicationSet configuration.
 * @property tags The tags to apply to the replication set.
 */
public data class ReplicationSetArgs(
    public val deletionProtected: Output? = null,
    public val regions: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmincidents.ReplicationSetArgs =
        com.pulumi.awsnative.ssmincidents.ReplicationSetArgs.builder()
            .deletionProtected(deletionProtected?.applyValue({ args0 -> args0 }))
            .regions(
                regions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ReplicationSetArgs].
 */
@PulumiTagMarker
public class ReplicationSetArgsBuilder internal constructor() {
    private var deletionProtected: Output? = null

    private var regions: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Region in the replication set.
     */
    @JvmName("kpfoubymuxfursge")
    public suspend fun deletionProtected(`value`: Output) {
        this.deletionProtected = value
    }

    /**
     * @param value The ReplicationSet configuration.
     */
    @JvmName("hffhhndpyutvrplp")
    public suspend fun regions(`value`: Output>) {
        this.regions = value
    }

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

    /**
     * @param values The ReplicationSet configuration.
     */
    @JvmName("htmujebucadwvxlr")
    public suspend fun regions(values: List>) {
        this.regions = Output.all(values)
    }

    /**
     * @param value The tags to apply to the replication set.
     */
    @JvmName("jrxuefaoqipafyno")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to apply to the replication set.
     */
    @JvmName("fcmcnmbvakdstvlc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Region in the replication set.
     */
    @JvmName("bjfymvctasjnxxce")
    public suspend fun deletionProtected(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionProtected = mapped
    }

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

    /**
     * @param argument The ReplicationSet configuration.
     */
    @JvmName("rvqkeatuaqdjwfxj")
    public suspend fun regions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationSetReplicationRegionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.regions = mapped
    }

    /**
     * @param argument The ReplicationSet configuration.
     */
    @JvmName("vehsmhrqyekhaqrt")
    public suspend fun regions(vararg argument: suspend ReplicationSetReplicationRegionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationSetReplicationRegionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.regions = mapped
    }

    /**
     * @param argument The ReplicationSet configuration.
     */
    @JvmName("mxclgddtsltuhvdb")
    public suspend fun regions(argument: suspend ReplicationSetReplicationRegionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ReplicationSetReplicationRegionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.regions = mapped
    }

    /**
     * @param values The ReplicationSet configuration.
     */
    @JvmName("lmssvrefiroseniw")
    public suspend fun regions(vararg values: ReplicationSetReplicationRegionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param value The tags to apply to the replication set.
     */
    @JvmName("nupvtynwgliuqxkv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to apply to the replication set.
     */
    @JvmName("hopmhhpryvweutua")
    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 The tags to apply to the replication set.
     */
    @JvmName("rgdqaaeubwqfdywr")
    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 The tags to apply to the replication set.
     */
    @JvmName("wlywvjolodfuoctd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to apply to the replication set.
     */
    @JvmName("uiobewxehnhforpo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ReplicationSetArgs = ReplicationSetArgs(
        deletionProtected = deletionProtected,
        regions = regions,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy