com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudConnectionAuthenticationArgs.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.appplatform.kotlin.inputs
import com.pulumi.azure.appplatform.inputs.SpringCloudConnectionAuthenticationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 SpringCloudConnectionAuthenticationArgs(
public val certificate: Output? = null,
public val clientId: Output? = null,
public val name: Output? = null,
public val principalId: Output? = null,
public val secret: Output? = null,
public val subscriptionId: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appplatform.inputs.SpringCloudConnectionAuthenticationArgs =
com.pulumi.azure.appplatform.inputs.SpringCloudConnectionAuthenticationArgs.builder()
.certificate(certificate?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.principalId(principalId?.applyValue({ args0 -> args0 }))
.secret(secret?.applyValue({ args0 -> args0 }))
.subscriptionId(subscriptionId?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpringCloudConnectionAuthenticationArgs].
*/
@PulumiTagMarker
public class SpringCloudConnectionAuthenticationArgsBuilder internal constructor() {
private var certificate: Output? = null
private var clientId: Output? = null
private var name: Output? = null
private var principalId: Output? = null
private var secret: Output? = null
private var subscriptionId: Output? = null
private var type: Output? = null
/**
* @param value Service principal certificate for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalCertificate`.
*/
@JvmName("fysqwuwdebembpvr")
public suspend fun certificate(`value`: Output) {
this.certificate = value
}
/**
* @param value 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.
*/
@JvmName("tqcvslpawdaejigf")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value 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`.
*/
@JvmName("hxhdfsakkotxeyhg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Principal ID for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalSecret` or `servicePrincipalCertificate`.
*/
@JvmName("urssaieihujyaurg")
public suspend fun principalId(`value`: Output) {
this.principalId = value
}
/**
* @param value 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`.
*/
@JvmName("klhoywyburjtydro")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value Subscription ID for `userAssignedIdentity`. `subscription_id` and `client_id` should be either both specified or both not specified.
*/
@JvmName("ydldketbthpxqplo")
public suspend fun subscriptionId(`value`: Output) {
this.subscriptionId = value
}
/**
* @param value The authentication type. Possible values are `systemAssignedIdentity`, `userAssignedIdentity`, `servicePrincipalSecret`, `servicePrincipalCertificate`, `secret`. Changing this forces a new resource to be created.
*/
@JvmName("aoqavurehajxderb")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Service principal certificate for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalCertificate`.
*/
@JvmName("mkliaspuovomcknj")
public suspend fun certificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certificate = mapped
}
/**
* @param value 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.
*/
@JvmName("vnxqayqxdhtqliru")
public suspend fun clientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value 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`.
*/
@JvmName("kvobsuaoyppcmtco")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Principal ID for `servicePrincipal` auth. Should be specified when `type` is set to `servicePrincipalSecret` or `servicePrincipalCertificate`.
*/
@JvmName("oceopecwreluxnic")
public suspend fun principalId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.principalId = mapped
}
/**
* @param value 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`.
*/
@JvmName("icruwqoujsodyees")
public suspend fun secret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secret = mapped
}
/**
* @param value Subscription ID for `userAssignedIdentity`. `subscription_id` and `client_id` should be either both specified or both not specified.
*/
@JvmName("rbkxwxcmvgranuuk")
public suspend fun subscriptionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subscriptionId = mapped
}
/**
* @param value The authentication type. Possible values are `systemAssignedIdentity`, `userAssignedIdentity`, `servicePrincipalSecret`, `servicePrincipalCertificate`, `secret`. Changing this forces a new resource to be created.
*/
@JvmName("qagrtmbdbqntqfud")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): SpringCloudConnectionAuthenticationArgs =
SpringCloudConnectionAuthenticationArgs(
certificate = certificate,
clientId = clientId,
name = name,
principalId = principalId,
secret = secret,
subscriptionId = subscriptionId,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy