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

com.pulumi.azure.domainservices.kotlin.outputs.ServiceSecureLdap.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.domainservices.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property certificateExpiry The expiry time of the certificate.
 * @property certificateThumbprint The thumbprint of the certificate.
 * @property enabled Whether to enable secure LDAP for the managed domain. For more information, please see [official documentation on enabling LDAPS](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-configure-ldaps), paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
 * @property externalAccessEnabled Whether to enable external access to LDAPS over the Internet. Defaults to `false`.
 * @property pfxCertificate The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
 * @property pfxCertificatePassword The password to use for decrypting the PKCS#12 bundle (PFX file).
 * @property publicCertificate The public certificate.
 */
public data class ServiceSecureLdap(
    public val certificateExpiry: String? = null,
    public val certificateThumbprint: String? = null,
    public val enabled: Boolean,
    public val externalAccessEnabled: Boolean? = null,
    public val pfxCertificate: String,
    public val pfxCertificatePassword: String,
    public val publicCertificate: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.domainservices.outputs.ServiceSecureLdap): ServiceSecureLdap = ServiceSecureLdap(
            certificateExpiry = javaType.certificateExpiry().map({ args0 -> args0 }).orElse(null),
            certificateThumbprint = javaType.certificateThumbprint().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled(),
            externalAccessEnabled = javaType.externalAccessEnabled().map({ args0 -> args0 }).orElse(null),
            pfxCertificate = javaType.pfxCertificate(),
            pfxCertificatePassword = javaType.pfxCertificatePassword(),
            publicCertificate = javaType.publicCertificate().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy