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

com.pulumi.awsnative.opensearchserverless.kotlin.AccessPolicyArgs.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.opensearchserverless.kotlin

import com.pulumi.awsnative.opensearchserverless.AccessPolicyArgs.builder
import com.pulumi.awsnative.opensearchserverless.kotlin.enums.AccessPolicyType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Amazon OpenSearchServerless access policy resource
 * @property description The description of the policy
 * @property name The name of the policy
 * @property policy The JSON policy document that is the content for the policy
 * @property type The type of access policy. Currently the only option is `data` .
 */
public data class AccessPolicyArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val policy: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.opensearchserverless.AccessPolicyArgs =
        com.pulumi.awsnative.opensearchserverless.AccessPolicyArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .policy(policy?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AccessPolicyArgs].
 */
@PulumiTagMarker
public class AccessPolicyArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var policy: Output? = null

    private var type: Output? = null

    /**
     * @param value The description of the policy
     */
    @JvmName("dsbgsacxiuuublve")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the policy
     */
    @JvmName("fvjtsjuhkluhpsyj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The JSON policy document that is the content for the policy
     */
    @JvmName("qbdtahjlrepcinav")
    public suspend fun policy(`value`: Output) {
        this.policy = value
    }

    /**
     * @param value The type of access policy. Currently the only option is `data` .
     */
    @JvmName("nipwuhovhlbtitdn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The description of the policy
     */
    @JvmName("hbepsehbnshbmwnv")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the policy
     */
    @JvmName("ypxcqyfpbhgyihfc")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The JSON policy document that is the content for the policy
     */
    @JvmName("gimkxbcenlsebpiv")
    public suspend fun policy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policy = mapped
    }

    /**
     * @param value The type of access policy. Currently the only option is `data` .
     */
    @JvmName("rwaewsswwnrpckss")
    public suspend fun type(`value`: AccessPolicyType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AccessPolicyArgs = AccessPolicyArgs(
        description = description,
        name = name,
        policy = policy,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy