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

com.pulumi.aws.opensearch.kotlin.inputs.GetServerlessAccessPolicyPlainArgs.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.opensearch.kotlin.inputs

import com.pulumi.aws.opensearch.inputs.GetServerlessAccessPolicyPlainArgs.builder
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

/**
 * A collection of arguments for invoking getServerlessAccessPolicy.
 * @property name Name of the policy.
 * @property type Type of access policy. Must be `data`.
 */
public data class GetServerlessAccessPolicyPlainArgs(
    public val name: String,
    public val type: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opensearch.inputs.GetServerlessAccessPolicyPlainArgs =
        com.pulumi.aws.opensearch.inputs.GetServerlessAccessPolicyPlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .type(type.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetServerlessAccessPolicyPlainArgs].
 */
@PulumiTagMarker
public class GetServerlessAccessPolicyPlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var type: String? = null

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

    /**
     * @param value Type of access policy. Must be `data`.
     */
    @JvmName("uqylvhnxbftfqkgf")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.type = mapped
    }

    internal fun build(): GetServerlessAccessPolicyPlainArgs = GetServerlessAccessPolicyPlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy