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

com.pulumi.azurenative.blueprint.kotlin.inputs.AssignmentLockSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.blueprint.kotlin.inputs

import com.pulumi.azurenative.blueprint.inputs.AssignmentLockSettingsArgs.builder
import com.pulumi.azurenative.blueprint.kotlin.enums.AssignmentLockMode
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *  /*
 * Defines how resources deployed by a blueprint assignment are locked.
 * @property excludedActions List of management operations that are excluded from blueprint locks. Up to 200 actions are permitted. If the lock mode is set to 'AllResourcesReadOnly', then the following actions are automatically appended to 'excludedActions': '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action' and 'Microsoft.Authorization/locks/delete'. If the lock mode is set to 'AllResourcesDoNotDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will get removed.
 * @property excludedPrincipals List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted.
 * @property mode Lock mode.
 */
public data class AssignmentLockSettingsArgs(
    public val excludedActions: Output>? = null,
    public val excludedPrincipals: Output>? = null,
    public val mode: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.blueprint.inputs.AssignmentLockSettingsArgs =
        com.pulumi.azurenative.blueprint.inputs.AssignmentLockSettingsArgs.builder()
            .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 [AssignmentLockSettingsArgs].
 */
@PulumiTagMarker
public class AssignmentLockSettingsArgsBuilder internal constructor() {
    private var excludedActions: Output>? = null

    private var excludedPrincipals: Output>? = null

    private var mode: Output>? = null

    /**
     *  /*
     * @param value List of management operations that are excluded from blueprint locks. Up to 200 actions are permitted. If the lock mode is set to 'AllResourcesReadOnly', then the following actions are automatically appended to 'excludedActions': '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action' and 'Microsoft.Authorization/locks/delete'. If the lock mode is set to 'AllResourcesDoNotDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will get removed.
     */
    @JvmName("tyxbymiappxlmvqk")
    public suspend fun excludedActions(`value`: Output>) {
        this.excludedActions = value
    }

    @JvmName("frliuqboxdsxvsji")
    public suspend fun excludedActions(vararg values: Output) {
        this.excludedActions = Output.all(values.asList())
    }

    /**
     *  /*
     * @param values List of management operations that are excluded from blueprint locks. Up to 200 actions are permitted. If the lock mode is set to 'AllResourcesReadOnly', then the following actions are automatically appended to 'excludedActions': '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action' and 'Microsoft.Authorization/locks/delete'. If the lock mode is set to 'AllResourcesDoNotDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will get removed.
     */
    @JvmName("hmbqlerefxdwvgrc")
    public suspend fun excludedActions(values: List>) {
        this.excludedActions = Output.all(values)
    }

    /**
     * @param value List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted.
     */
    @JvmName("jpjeomygvdgbbbdu")
    public suspend fun excludedPrincipals(`value`: Output>) {
        this.excludedPrincipals = value
    }

    @JvmName("wwamxhggxllqxfur")
    public suspend fun excludedPrincipals(vararg values: Output) {
        this.excludedPrincipals = Output.all(values.asList())
    }

    /**
     * @param values List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted.
     */
    @JvmName("cqwiakxposqxdpaq")
    public suspend fun excludedPrincipals(values: List>) {
        this.excludedPrincipals = Output.all(values)
    }

    /**
     * @param value Lock mode.
     */
    @JvmName("gtqtmdmemvccjanm")
    public suspend fun mode(`value`: Output>) {
        this.mode = value
    }

    /**
     *  /*
     * @param value List of management operations that are excluded from blueprint locks. Up to 200 actions are permitted. If the lock mode is set to 'AllResourcesReadOnly', then the following actions are automatically appended to 'excludedActions': '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action' and 'Microsoft.Authorization/locks/delete'. If the lock mode is set to 'AllResourcesDoNotDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will get removed.
     */
    @JvmName("wtrighubwnxmcvxv")
    public suspend fun excludedActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedActions = mapped
    }

    /**
     *  /*
     * @param values List of management operations that are excluded from blueprint locks. Up to 200 actions are permitted. If the lock mode is set to 'AllResourcesReadOnly', then the following actions are automatically appended to 'excludedActions': '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action' and 'Microsoft.Authorization/locks/delete'. If the lock mode is set to 'AllResourcesDoNotDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will get removed.
     */
    @JvmName("jhontdyieapsxlxh")
    public suspend fun excludedActions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedActions = mapped
    }

    /**
     * @param value List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted.
     */
    @JvmName("ckejssyvtsrxcdsh")
    public suspend fun excludedPrincipals(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedPrincipals = mapped
    }

    /**
     * @param values List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted.
     */
    @JvmName("iqujoyebylxtoiul")
    public suspend fun excludedPrincipals(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedPrincipals = mapped
    }

    /**
     * @param value Lock mode.
     */
    @JvmName("bnnvrldsjcijalbr")
    public suspend fun mode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Lock mode.
     */
    @JvmName("hmrllxegfsbwsukn")
    public fun mode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Lock mode.
     */
    @JvmName("uerqggsifvcpgjpk")
    public fun mode(`value`: AssignmentLockMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): AssignmentLockSettingsArgs = AssignmentLockSettingsArgs(
        excludedActions = excludedActions,
        excludedPrincipals = excludedPrincipals,
        mode = mode,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy