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

com.pulumi.aws.ecr.kotlin.inputs.ReplicationConfigurationReplicationConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ecr.kotlin.inputs

import com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property rules The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
 */
public data class ReplicationConfigurationReplicationConfigurationArgs(
    public val rules: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs =
        com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs.builder()
            .rules(
                rules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("iyihhnhxxaenipwn")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("chucbflsdknogouo")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("rsawcajpuphvxkks")
    public suspend fun rules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("fkfhxgolnxbjxasc")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationConfigurationReplicationConfigurationRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("sbmfheocpvqjxpvy")
    public suspend fun rules(vararg argument: suspend ReplicationConfigurationReplicationConfigurationRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationConfigurationReplicationConfigurationRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("cqrmvpniqfvegafp")
    public suspend fun rules(argument: suspend ReplicationConfigurationReplicationConfigurationRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ReplicationConfigurationReplicationConfigurationRuleArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     */
    @JvmName("rgtxentmdxumchyw")
    public suspend fun rules(vararg values: ReplicationConfigurationReplicationConfigurationRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): ReplicationConfigurationReplicationConfigurationArgs =
        ReplicationConfigurationReplicationConfigurationArgs(
            rules = rules ?: throw PulumiNullFieldException("rules"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy