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

com.pulumi.azurenative.machinelearningservices.kotlin.inputs.CertificateDatastoreCredentialsArgs.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.machinelearningservices.kotlin.inputs

import com.pulumi.azurenative.machinelearningservices.inputs.CertificateDatastoreCredentialsArgs.builder
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

/**
 * Certificate datastore credentials configuration.
 * @property authorityUrl Authority URL used for authentication.
 * @property clientId [Required] Service principal client ID.
 * @property credentialsType Enum to determine the datastore credentials type.
 * Expected value is 'Certificate'.
 * @property resourceUrl Resource the service principal has access to.
 * @property secrets [Required] Service principal secrets.
 * @property tenantId [Required] ID of the tenant to which the service principal belongs.
 * @property thumbprint [Required] Thumbprint of the certificate used for authentication.
 */
public data class CertificateDatastoreCredentialsArgs(
    public val authorityUrl: Output? = null,
    public val clientId: Output,
    public val credentialsType: Output,
    public val resourceUrl: Output? = null,
    public val secrets: Output,
    public val tenantId: Output,
    public val thumbprint: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.CertificateDatastoreCredentialsArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.CertificateDatastoreCredentialsArgs.builder()
            .authorityUrl(authorityUrl?.applyValue({ args0 -> args0 }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .credentialsType(credentialsType.applyValue({ args0 -> args0 }))
            .resourceUrl(resourceUrl?.applyValue({ args0 -> args0 }))
            .secrets(secrets.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tenantId(tenantId.applyValue({ args0 -> args0 }))
            .thumbprint(thumbprint.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateDatastoreCredentialsArgs].
 */
@PulumiTagMarker
public class CertificateDatastoreCredentialsArgsBuilder internal constructor() {
    private var authorityUrl: Output? = null

    private var clientId: Output? = null

    private var credentialsType: Output? = null

    private var resourceUrl: Output? = null

    private var secrets: Output? = null

    private var tenantId: Output? = null

    private var thumbprint: Output? = null

    /**
     * @param value Authority URL used for authentication.
     */
    @JvmName("cmqulvutqsvmjdps")
    public suspend fun authorityUrl(`value`: Output) {
        this.authorityUrl = value
    }

    /**
     * @param value [Required] Service principal client ID.
     */
    @JvmName("txbcuofrxulwgmom")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Enum to determine the datastore credentials type.
     * Expected value is 'Certificate'.
     */
    @JvmName("kfqryumfkjdmguer")
    public suspend fun credentialsType(`value`: Output) {
        this.credentialsType = value
    }

    /**
     * @param value Resource the service principal has access to.
     */
    @JvmName("wdsuyvgelfiammfv")
    public suspend fun resourceUrl(`value`: Output) {
        this.resourceUrl = value
    }

    /**
     * @param value [Required] Service principal secrets.
     */
    @JvmName("ocwbhklhetiqvrss")
    public suspend fun secrets(`value`: Output) {
        this.secrets = value
    }

    /**
     * @param value [Required] ID of the tenant to which the service principal belongs.
     */
    @JvmName("fpufksscbjipcvyt")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value [Required] Thumbprint of the certificate used for authentication.
     */
    @JvmName("ycerimgwbugfgvyi")
    public suspend fun thumbprint(`value`: Output) {
        this.thumbprint = value
    }

    /**
     * @param value Authority URL used for authentication.
     */
    @JvmName("qwbnxhwphotqqbcl")
    public suspend fun authorityUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorityUrl = mapped
    }

    /**
     * @param value [Required] Service principal client ID.
     */
    @JvmName("ktbbyxqjlxtewgca")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Enum to determine the datastore credentials type.
     * Expected value is 'Certificate'.
     */
    @JvmName("nakdxtixrqvlvqqv")
    public suspend fun credentialsType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentialsType = mapped
    }

    /**
     * @param value Resource the service principal has access to.
     */
    @JvmName("gbumbiikjpdrhald")
    public suspend fun resourceUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceUrl = mapped
    }

    /**
     * @param value [Required] Service principal secrets.
     */
    @JvmName("mrxlnmfxggnejlgc")
    public suspend fun secrets(`value`: CertificateDatastoreSecretsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param argument [Required] Service principal secrets.
     */
    @JvmName("lohoastkstetrtmk")
    public suspend fun secrets(argument: suspend CertificateDatastoreSecretsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateDatastoreSecretsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param value [Required] ID of the tenant to which the service principal belongs.
     */
    @JvmName("snxtsaepdtbcefih")
    public suspend fun tenantId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    /**
     * @param value [Required] Thumbprint of the certificate used for authentication.
     */
    @JvmName("cykydfirbvdcgaof")
    public suspend fun thumbprint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.thumbprint = mapped
    }

    internal fun build(): CertificateDatastoreCredentialsArgs = CertificateDatastoreCredentialsArgs(
        authorityUrl = authorityUrl,
        clientId = clientId ?: throw PulumiNullFieldException("clientId"),
        credentialsType = credentialsType ?: throw PulumiNullFieldException("credentialsType"),
        resourceUrl = resourceUrl,
        secrets = secrets ?: throw PulumiNullFieldException("secrets"),
        tenantId = tenantId ?: throw PulumiNullFieldException("tenantId"),
        thumbprint = thumbprint ?: throw PulumiNullFieldException("thumbprint"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy