![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.postgresql.kotlin.outputs.FlexibleServerAuthentication.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.postgresql.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @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 FlexibleServerAuthentication(
public val activeDirectoryAuthEnabled: Boolean? = null,
public val passwordAuthEnabled: Boolean? = null,
public val tenantId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.postgresql.outputs.FlexibleServerAuthentication): FlexibleServerAuthentication = FlexibleServerAuthentication(
activeDirectoryAuthEnabled = javaType.activeDirectoryAuthEnabled().map({ args0 ->
args0
}).orElse(null),
passwordAuthEnabled = javaType.passwordAuthEnabled().map({ args0 -> args0 }).orElse(null),
tenantId = javaType.tenantId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy