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

com.pulumi.azurenative.storage.kotlin.inputs.AzureFilesIdentityBasedAuthenticationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.storage.kotlin.inputs

import com.pulumi.azurenative.storage.inputs.AzureFilesIdentityBasedAuthenticationArgs.builder
import com.pulumi.azurenative.storage.kotlin.enums.DefaultSharePermission
import com.pulumi.azurenative.storage.kotlin.enums.DirectoryServiceOptions
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Settings for Azure Files identity based authentication.
 * @property activeDirectoryProperties Required if directoryServiceOptions are AD, optional if they are AADKERB.
 * @property defaultSharePermission Default share permission for users using Kerberos authentication if RBAC role is not assigned.
 * @property directoryServiceOptions Indicates the directory service used. Note that this enum may be extended in the future.
 */
public data class AzureFilesIdentityBasedAuthenticationArgs(
    public val activeDirectoryProperties: Output? = null,
    public val defaultSharePermission: Output>? = null,
    public val directoryServiceOptions: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storage.inputs.AzureFilesIdentityBasedAuthenticationArgs =
        com.pulumi.azurenative.storage.inputs.AzureFilesIdentityBasedAuthenticationArgs.builder()
            .activeDirectoryProperties(
                activeDirectoryProperties?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .defaultSharePermission(
                defaultSharePermission?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .directoryServiceOptions(
                directoryServiceOptions.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [AzureFilesIdentityBasedAuthenticationArgs].
 */
@PulumiTagMarker
public class AzureFilesIdentityBasedAuthenticationArgsBuilder internal constructor() {
    private var activeDirectoryProperties: Output? = null

    private var defaultSharePermission: Output>? = null

    private var directoryServiceOptions: Output>? = null

    /**
     * @param value Required if directoryServiceOptions are AD, optional if they are AADKERB.
     */
    @JvmName("hhscoiwmkmdlywpq")
    public suspend fun activeDirectoryProperties(`value`: Output) {
        this.activeDirectoryProperties = value
    }

    /**
     * @param value Default share permission for users using Kerberos authentication if RBAC role is not assigned.
     */
    @JvmName("dlwcguxcwondumms")
    public suspend fun defaultSharePermission(`value`: Output>) {
        this.defaultSharePermission = value
    }

    /**
     * @param value Indicates the directory service used. Note that this enum may be extended in the future.
     */
    @JvmName("gfoodxmlurwyljfl")
    public suspend fun directoryServiceOptions(`value`: Output>) {
        this.directoryServiceOptions = value
    }

    /**
     * @param value Required if directoryServiceOptions are AD, optional if they are AADKERB.
     */
    @JvmName("hwfreixdouitqwai")
    public suspend fun activeDirectoryProperties(`value`: ActiveDirectoryPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDirectoryProperties = mapped
    }

    /**
     * @param argument Required if directoryServiceOptions are AD, optional if they are AADKERB.
     */
    @JvmName("smsjydjwasiwsdfi")
    public suspend fun activeDirectoryProperties(argument: suspend ActiveDirectoryPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ActiveDirectoryPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.activeDirectoryProperties = mapped
    }

    /**
     * @param value Default share permission for users using Kerberos authentication if RBAC role is not assigned.
     */
    @JvmName("mdqkwhtifiwapqei")
    public suspend fun defaultSharePermission(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultSharePermission = mapped
    }

    /**
     * @param value Default share permission for users using Kerberos authentication if RBAC role is not assigned.
     */
    @JvmName("tufoubyfvfyoabki")
    public fun defaultSharePermission(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultSharePermission = mapped
    }

    /**
     * @param value Default share permission for users using Kerberos authentication if RBAC role is not assigned.
     */
    @JvmName("inuitqybutbiqtmo")
    public fun defaultSharePermission(`value`: DefaultSharePermission) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultSharePermission = mapped
    }

    /**
     * @param value Indicates the directory service used. Note that this enum may be extended in the future.
     */
    @JvmName("swqolncohnwkkgow")
    public suspend fun directoryServiceOptions(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.directoryServiceOptions = mapped
    }

    /**
     * @param value Indicates the directory service used. Note that this enum may be extended in the future.
     */
    @JvmName("arvxcqyxfqrjgifb")
    public fun directoryServiceOptions(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.directoryServiceOptions = mapped
    }

    /**
     * @param value Indicates the directory service used. Note that this enum may be extended in the future.
     */
    @JvmName("fsdyfgnrgolfoxyb")
    public fun directoryServiceOptions(`value`: DirectoryServiceOptions) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.directoryServiceOptions = mapped
    }

    internal fun build(): AzureFilesIdentityBasedAuthenticationArgs =
        AzureFilesIdentityBasedAuthenticationArgs(
            activeDirectoryProperties = activeDirectoryProperties,
            defaultSharePermission = defaultSharePermission,
            directoryServiceOptions = directoryServiceOptions ?: throw
                PulumiNullFieldException("directoryServiceOptions"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy