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

com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventgrid.kotlin.inputs

import com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgs.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 type Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
 * @property userAssignedIdentity The user identity associated with the resource.
 */
public data class SystemTopicEventSubscriptionDeliveryIdentityArgs(
    public val type: Output,
    public val userAssignedIdentity: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgs =
        com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .userAssignedIdentity(userAssignedIdentity?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SystemTopicEventSubscriptionDeliveryIdentityArgs].
 */
@PulumiTagMarker
public class SystemTopicEventSubscriptionDeliveryIdentityArgsBuilder internal constructor() {
    private var type: Output? = null

    private var userAssignedIdentity: Output? = null

    /**
     * @param value Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
     */
    @JvmName("bljhyeiqpbtavhqm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The user identity associated with the resource.
     */
    @JvmName("ddjorirpuogptnif")
    public suspend fun userAssignedIdentity(`value`: Output) {
        this.userAssignedIdentity = value
    }

    /**
     * @param value Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
     */
    @JvmName("mdhntvugkjmrfmmq")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The user identity associated with the resource.
     */
    @JvmName("shesvvlnovvsutav")
    public suspend fun userAssignedIdentity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentity = mapped
    }

    internal fun build(): SystemTopicEventSubscriptionDeliveryIdentityArgs =
        SystemTopicEventSubscriptionDeliveryIdentityArgs(
            type = type ?: throw PulumiNullFieldException("type"),
            userAssignedIdentity = userAssignedIdentity,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy