com.pulumi.azure.eventgrid.kotlin.outputs.TopicIdentity.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.eventgrid.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property identityIds Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Topic.
* > **NOTE:** This is required when `type` is set to `UserAssigned`
* > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Event Grid Topic has been created. More details are available below.
* @property principalId The Principal ID associated with this Managed Service Identity.
* @property tenantId The Tenant ID associated with this Managed Service Identity.
* @property type Specifies the type of Managed Service Identity that should be configured on this Event Grid Topic. Possible values are `SystemAssigned`, `UserAssigned`.
*/
public data class TopicIdentity(
public val identityIds: List? = null,
public val principalId: String? = null,
public val tenantId: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.eventgrid.outputs.TopicIdentity): TopicIdentity =
TopicIdentity(
identityIds = javaType.identityIds().map({ args0 -> args0 }),
principalId = javaType.principalId().map({ args0 -> args0 }).orElse(null),
tenantId = javaType.tenantId().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}