![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devices.kotlin.inputs.SharedAccessSignatureAuthorizationRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devices.kotlin.inputs
import com.pulumi.azurenative.devices.inputs.SharedAccessSignatureAuthorizationRuleArgs.builder
import com.pulumi.azurenative.devices.kotlin.enums.AccessRights
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
/**
* The properties of an IoT hub shared access policy.
* @property keyName The name of the shared access policy.
* @property primaryKey The primary key.
* @property rights The permissions assigned to the shared access policy.
* @property secondaryKey The secondary key.
*/
public data class SharedAccessSignatureAuthorizationRuleArgs(
public val keyName: Output,
public val primaryKey: Output? = null,
public val rights: Output,
public val secondaryKey: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devices.inputs.SharedAccessSignatureAuthorizationRuleArgs =
com.pulumi.azurenative.devices.inputs.SharedAccessSignatureAuthorizationRuleArgs.builder()
.keyName(keyName.applyValue({ args0 -> args0 }))
.primaryKey(primaryKey?.applyValue({ args0 -> args0 }))
.rights(rights.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.secondaryKey(secondaryKey?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SharedAccessSignatureAuthorizationRuleArgs].
*/
@PulumiTagMarker
public class SharedAccessSignatureAuthorizationRuleArgsBuilder internal constructor() {
private var keyName: Output? = null
private var primaryKey: Output? = null
private var rights: Output? = null
private var secondaryKey: Output? = null
/**
* @param value The name of the shared access policy.
*/
@JvmName("tfmwreyehmtppfhn")
public suspend fun keyName(`value`: Output) {
this.keyName = value
}
/**
* @param value The primary key.
*/
@JvmName("inkgprcgiimpmeoh")
public suspend fun primaryKey(`value`: Output) {
this.primaryKey = value
}
/**
* @param value The permissions assigned to the shared access policy.
*/
@JvmName("itkusdfviaqkpuor")
public suspend fun rights(`value`: Output) {
this.rights = value
}
/**
* @param value The secondary key.
*/
@JvmName("kavsoalpbugexfme")
public suspend fun secondaryKey(`value`: Output) {
this.secondaryKey = value
}
/**
* @param value The name of the shared access policy.
*/
@JvmName("dxlfirhkkmbwmlug")
public suspend fun keyName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyName = mapped
}
/**
* @param value The primary key.
*/
@JvmName("kliyphrksauhthyn")
public suspend fun primaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primaryKey = mapped
}
/**
* @param value The permissions assigned to the shared access policy.
*/
@JvmName("nicisahncpdtnola")
public suspend fun rights(`value`: AccessRights) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.rights = mapped
}
/**
* @param value The secondary key.
*/
@JvmName("nmcywekccxvrrvhy")
public suspend fun secondaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secondaryKey = mapped
}
internal fun build(): SharedAccessSignatureAuthorizationRuleArgs =
SharedAccessSignatureAuthorizationRuleArgs(
keyName = keyName ?: throw PulumiNullFieldException("keyName"),
primaryKey = primaryKey,
rights = rights ?: throw PulumiNullFieldException("rights"),
secondaryKey = secondaryKey,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy