com.pulumi.azurenative.resources.kotlin.inputs.DenySettingsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.resources.kotlin.inputs
import com.pulumi.azurenative.resources.inputs.DenySettingsArgs.builder
import com.pulumi.azurenative.resources.kotlin.enums.DenySettingsMode
import com.pulumi.core.Either
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Defines how resources deployed by the deployment stack are locked.
* @property applyToChildScopes DenySettings will be applied to child scopes.
* @property excludedActions List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.
* @property excludedPrincipals List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted.
* @property mode denySettings Mode.
*/
public data class DenySettingsArgs(
public val applyToChildScopes: Output? = null,
public val excludedActions: Output>? = null,
public val excludedPrincipals: Output>? = null,
public val mode: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.resources.inputs.DenySettingsArgs =
com.pulumi.azurenative.resources.inputs.DenySettingsArgs.builder()
.applyToChildScopes(applyToChildScopes?.applyValue({ args0 -> args0 }))
.excludedActions(excludedActions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.excludedPrincipals(excludedPrincipals?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.mode(
mode.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DenySettingsArgs].
*/
@PulumiTagMarker
public class DenySettingsArgsBuilder internal constructor() {
private var applyToChildScopes: Output? = null
private var excludedActions: Output>? = null
private var excludedPrincipals: Output>? = null
private var mode: Output>? = null
/**
* @param value DenySettings will be applied to child scopes.
*/
@JvmName("tlqyomakxgbvdndr")
public suspend fun applyToChildScopes(`value`: Output) {
this.applyToChildScopes = value
}
/**
* @param value List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.
*/
@JvmName("ftjbqthrxwlbxbhj")
public suspend fun excludedActions(`value`: Output>) {
this.excludedActions = value
}
@JvmName("esxblrxkscwyawxh")
public suspend fun excludedActions(vararg values: Output) {
this.excludedActions = Output.all(values.asList())
}
/**
* @param values List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.
*/
@JvmName("vklhspwdxqbjxvtf")
public suspend fun excludedActions(values: List