com.pulumi.azure.datadog.kotlin.inputs.MonitorIdentityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.datadog.kotlin.inputs
import com.pulumi.azure.datadog.inputs.MonitorIdentityArgs.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 principalId The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.
* @property tenantId The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.
* @property type Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.
* > **NOTE:** The assigned `principal_id` and `tenant_id` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Datadog Monitor has been created. More details are available below.
*/
public data class MonitorIdentityArgs(
public val principalId: Output? = null,
public val tenantId: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.datadog.inputs.MonitorIdentityArgs =
com.pulumi.azure.datadog.inputs.MonitorIdentityArgs.builder()
.principalId(principalId?.applyValue({ args0 -> args0 }))
.tenantId(tenantId?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MonitorIdentityArgs].
*/
@PulumiTagMarker
public class MonitorIdentityArgsBuilder internal constructor() {
private var principalId: Output? = null
private var tenantId: Output? = null
private var type: Output? = null
/**
* @param value The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.
*/
@JvmName("ixetyyiadpeepyjp")
public suspend fun principalId(`value`: Output) {
this.principalId = value
}
/**
* @param value The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.
*/
@JvmName("xweksarstsmtegcb")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.
* > **NOTE:** The assigned `principal_id` and `tenant_id` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Datadog Monitor has been created. More details are available below.
*/
@JvmName("wpytyyqkptipeart")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.
*/
@JvmName("txehobfrnkhothlr")
public suspend fun principalId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.principalId = mapped
}
/**
* @param value The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.
*/
@JvmName("vqdtsblwyrcmnifd")
public suspend fun tenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantId = mapped
}
/**
* @param value Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.
* > **NOTE:** The assigned `principal_id` and `tenant_id` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Datadog Monitor has been created. More details are available below.
*/
@JvmName("snnafntcblxmrher")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): MonitorIdentityArgs = MonitorIdentityArgs(
principalId = principalId,
tenantId = tenantId,
type = type ?: throw PulumiNullFieldException("type"),
)
}