com.pulumi.aws.memorydb.kotlin.inputs.GetAclPlainArgs.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.memorydb.kotlin.inputs
import com.pulumi.aws.memorydb.inputs.GetAclPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAcl.
* @property name Name of the ACL.
* @property tags Map of tags assigned to the ACL.
*/
public data class GetAclPlainArgs(
public val name: String,
public val tags: Map? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.memorydb.inputs.GetAclPlainArgs =
com.pulumi.aws.memorydb.inputs.GetAclPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}
/**
* Builder for [GetAclPlainArgs].
*/
@PulumiTagMarker
public class GetAclPlainArgsBuilder internal constructor() {
private var name: String? = null
private var tags: Map? = null
/**
* @param value Name of the ACL.
*/
@JvmName("pwwbqtflmvmqoafe")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value Map of tags assigned to the ACL.
*/
@JvmName("mcytjeixxkpsbjac")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.tags = mapped
}
/**
* @param values Map of tags assigned to the ACL.
*/
@JvmName("hofhklnuwojmynwq")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> args0 })
this.tags = mapped
}
internal fun build(): GetAclPlainArgs = GetAclPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
tags = tags,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy