com.pulumi.aws.ecr.kotlin.inputs.GetLifecyclePolicyDocumentPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.ecr.kotlin.inputs
import com.pulumi.aws.ecr.inputs.GetLifecyclePolicyDocumentPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getLifecyclePolicyDocument.
* @property rules
*/
public data class GetLifecyclePolicyDocumentPlainArgs(
public val rules: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ecr.inputs.GetLifecyclePolicyDocumentPlainArgs =
com.pulumi.aws.ecr.inputs.GetLifecyclePolicyDocumentPlainArgs.builder()
.rules(rules?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) })).build()
}
/**
* Builder for [GetLifecyclePolicyDocumentPlainArgs].
*/
@PulumiTagMarker
public class GetLifecyclePolicyDocumentPlainArgsBuilder internal constructor() {
private var rules: List? = null
/**
* @param value
*/
@JvmName("bjjuqbnhuiycxyvn")
public suspend fun rules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.rules = mapped
}
/**
* @param argument
*/
@JvmName("ngixhigdughlhfdr")
public suspend fun rules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetLifecyclePolicyDocumentRuleBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.rules = mapped
}
/**
* @param argument
*/
@JvmName("totcfnnrtegxvdtr")
public suspend fun rules(vararg argument: suspend GetLifecyclePolicyDocumentRuleBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetLifecyclePolicyDocumentRuleBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.rules = mapped
}
/**
* @param argument
*/
@JvmName("aljppigunrhktwvo")
public suspend fun rules(argument: suspend GetLifecyclePolicyDocumentRuleBuilder.() -> Unit) {
val toBeMapped = listOf(
GetLifecyclePolicyDocumentRuleBuilder().applySuspend {
argument()
}.build(),
)
val mapped = toBeMapped
this.rules = mapped
}
/**
* @param values
*/
@JvmName("cirbfrurvmpsgftw")
public suspend fun rules(vararg values: GetLifecyclePolicyDocumentRule) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.rules = mapped
}
internal fun build(): GetLifecyclePolicyDocumentPlainArgs = GetLifecyclePolicyDocumentPlainArgs(
rules = rules,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy