com.pulumi.azure.appservice.kotlin.outputs.ConnectionAuthentication.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.appservice.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property certificate Service principal certificate for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalCertificate`.
* @property clientId Client ID for `userAssignedIdentity` or `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalSecret` or `servicePrincipalCertificate`. When `type` is set to `userAssignedIdentity`, `client_id` and `subscription_id` should be either both specified or both not specified.
* @property name Username or account name for secret auth. `name` and `secret` should be either both specified or both not specified when `type` is set to `secret`.
* @property principalId Principal ID for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalSecret` or `servicePrincipalCertificate`.
* @property secret Password or account key for secret auth. `secret` and `name` should be either both specified or both not specified when `type` is set to `secret`.
* @property subscriptionId Subscription ID for `userAssignedIdentity`. `subscription_id` and `client_id` should be either both specified or both not specified.
* @property type The authentication type. Possible values are `systemAssignedIdentity`, `userAssignedIdentity`, `servicePrincipalSecret`, `servicePrincipalCertificate`, `secret`. Changing this forces a new resource to be created.
*/
public data class ConnectionAuthentication(
public val certificate: String? = null,
public val clientId: String? = null,
public val name: String? = null,
public val principalId: String? = null,
public val secret: String? = null,
public val subscriptionId: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.ConnectionAuthentication):
ConnectionAuthentication = ConnectionAuthentication(
certificate = javaType.certificate().map({ args0 -> args0 }).orElse(null),
clientId = javaType.clientId().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
principalId = javaType.principalId().map({ args0 -> args0 }).orElse(null),
secret = javaType.secret().map({ args0 -> args0 }).orElse(null),
subscriptionId = javaType.subscriptionId().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy