
com.pulumi.awsnative.opensearchserverless.kotlin.inputs.GetAccessPolicyPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.opensearchserverless.kotlin.inputs
import com.pulumi.awsnative.opensearchserverless.inputs.GetAccessPolicyPlainArgs.builder
import com.pulumi.awsnative.opensearchserverless.kotlin.enums.AccessPolicyType
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name The name of the policy
* @property type The type of access policy. Currently the only option is `data` .
*/
public data class GetAccessPolicyPlainArgs(
public val name: String,
public val type: AccessPolicyType,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.opensearchserverless.inputs.GetAccessPolicyPlainArgs =
com.pulumi.awsnative.opensearchserverless.inputs.GetAccessPolicyPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.type(type.let({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GetAccessPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetAccessPolicyPlainArgsBuilder internal constructor() {
private var name: String? = null
private var type: AccessPolicyType? = null
/**
* @param value The name of the policy
*/
@JvmName("sumldqvesosacuvn")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The type of access policy. Currently the only option is `data` .
*/
@JvmName("liehxfrtqxsctlya")
public suspend fun type(`value`: AccessPolicyType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.type = mapped
}
internal fun build(): GetAccessPolicyPlainArgs = GetAccessPolicyPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy