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

com.pulumi.azure.postgresql.kotlin.inputs.FlexibleServerAuthenticationArgs.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.postgresql.kotlin.inputs

import com.pulumi.azure.postgresql.inputs.FlexibleServerAuthenticationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property activeDirectoryAuthEnabled Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `false`.
 * @property passwordAuthEnabled Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `true`.
 * @property tenantId The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. `active_directory_auth_enabled` must be set to `true`.
 * > **Note:** Setting `active_directory_auth_enabled` to `true` requires a Service Principal for the Postgres Flexible Server. For more details see [this document](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication).
 * > **Note:** `tenant_id` is required when `active_directory_auth_enabled` is set to `true`. And it should not be specified when `active_directory_auth_enabled` is set to `false`
 */
public data class FlexibleServerAuthenticationArgs(
    public val activeDirectoryAuthEnabled: Output? = null,
    public val passwordAuthEnabled: Output? = null,
    public val tenantId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.postgresql.inputs.FlexibleServerAuthenticationArgs =
        com.pulumi.azure.postgresql.inputs.FlexibleServerAuthenticationArgs.builder()
            .activeDirectoryAuthEnabled(activeDirectoryAuthEnabled?.applyValue({ args0 -> args0 }))
            .passwordAuthEnabled(passwordAuthEnabled?.applyValue({ args0 -> args0 }))
            .tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlexibleServerAuthenticationArgs].
 */
@PulumiTagMarker
public class FlexibleServerAuthenticationArgsBuilder internal constructor() {
    private var activeDirectoryAuthEnabled: Output? = null

    private var passwordAuthEnabled: Output? = null

    private var tenantId: Output? = null

    /**
     * @param value Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `false`.
     */
    @JvmName("qgnqkchtboqvgsyb")
    public suspend fun activeDirectoryAuthEnabled(`value`: Output) {
        this.activeDirectoryAuthEnabled = value
    }

    /**
     * @param value Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `true`.
     */
    @JvmName("skupsoolagssovbq")
    public suspend fun passwordAuthEnabled(`value`: Output) {
        this.passwordAuthEnabled = value
    }

    /**
     * @param value The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. `active_directory_auth_enabled` must be set to `true`.
     * > **Note:** Setting `active_directory_auth_enabled` to `true` requires a Service Principal for the Postgres Flexible Server. For more details see [this document](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication).
     * > **Note:** `tenant_id` is required when `active_directory_auth_enabled` is set to `true`. And it should not be specified when `active_directory_auth_enabled` is set to `false`
     */
    @JvmName("ogawmgbawpipptcw")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `false`.
     */
    @JvmName("ldkqlrhdadqokkva")
    public suspend fun activeDirectoryAuthEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDirectoryAuthEnabled = mapped
    }

    /**
     * @param value Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to `true`.
     */
    @JvmName("gqxnkjqlwebujpvm")
    public suspend fun passwordAuthEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwordAuthEnabled = mapped
    }

    /**
     * @param value The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. `active_directory_auth_enabled` must be set to `true`.
     * > **Note:** Setting `active_directory_auth_enabled` to `true` requires a Service Principal for the Postgres Flexible Server. For more details see [this document](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication).
     * > **Note:** `tenant_id` is required when `active_directory_auth_enabled` is set to `true`. And it should not be specified when `active_directory_auth_enabled` is set to `false`
     */
    @JvmName("pnreugequqdhispq")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    internal fun build(): FlexibleServerAuthenticationArgs = FlexibleServerAuthenticationArgs(
        activeDirectoryAuthEnabled = activeDirectoryAuthEnabled,
        passwordAuthEnabled = passwordAuthEnabled,
        tenantId = tenantId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy