com.pulumi.azure.iot.kotlin.outputs.IoTHubSharedAccessPolicy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.iot.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property keyName The name of the shared access policy.
* @property permissions The permissions assigned to the shared access policy.
* @property primaryKey The primary key.
* @property secondaryKey The secondary key.
*/
public data class IoTHubSharedAccessPolicy(
public val keyName: String? = null,
public val permissions: String? = null,
public val primaryKey: String? = null,
public val secondaryKey: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.iot.outputs.IoTHubSharedAccessPolicy): IoTHubSharedAccessPolicy = IoTHubSharedAccessPolicy(
keyName = javaType.keyName().map({ args0 -> args0 }).orElse(null),
permissions = javaType.permissions().map({ args0 -> args0 }).orElse(null),
primaryKey = javaType.primaryKey().map({ args0 -> args0 }).orElse(null),
secondaryKey = javaType.secondaryKey().map({ args0 -> args0 }).orElse(null),
)
}
}