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

com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgs.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.SystemTopicEventSubscriptionDeadLetterIdentityArgs.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 dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
 * @property userAssignedIdentity The user identity associated with the resource.
 */
public data class SystemTopicEventSubscriptionDeadLetterIdentityArgs(
    public val type: Output,
    public val userAssignedIdentity: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgs =
        com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .userAssignedIdentity(userAssignedIdentity?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SystemTopicEventSubscriptionDeadLetterIdentityArgs].
 */
@PulumiTagMarker
public class SystemTopicEventSubscriptionDeadLetterIdentityArgsBuilder 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 dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
     */
    @JvmName("useiqqgoebgsqkef")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
     */
    @JvmName("dsruqcnheoapclly")
    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("smhpyxiuvuqqflaq")
    public suspend fun userAssignedIdentity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentity = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy