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

com.pulumi.azure.media.kotlin.inputs.ServiceAccountKeyDeliveryAccessControlArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.ServiceAccountKeyDeliveryAccessControlArgs.builder
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

/**
 *
 * @property defaultAction The Default Action to use when no rules match from `ip_allow_list`. Possible values are `Allow` and `Deny`.
 * @property ipAllowLists One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
 */
public data class ServiceAccountKeyDeliveryAccessControlArgs(
    public val defaultAction: Output? = null,
    public val ipAllowLists: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.ServiceAccountKeyDeliveryAccessControlArgs =
        com.pulumi.azure.media.inputs.ServiceAccountKeyDeliveryAccessControlArgs.builder()
            .defaultAction(defaultAction?.applyValue({ args0 -> args0 }))
            .ipAllowLists(ipAllowLists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ServiceAccountKeyDeliveryAccessControlArgs].
 */
@PulumiTagMarker
public class ServiceAccountKeyDeliveryAccessControlArgsBuilder internal constructor() {
    private var defaultAction: Output? = null

    private var ipAllowLists: Output>? = null

    /**
     * @param value The Default Action to use when no rules match from `ip_allow_list`. Possible values are `Allow` and `Deny`.
     */
    @JvmName("ingymgufwsybsbie")
    public suspend fun defaultAction(`value`: Output) {
        this.defaultAction = value
    }

    /**
     * @param value One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
     */
    @JvmName("odgotvehvkniaktw")
    public suspend fun ipAllowLists(`value`: Output>) {
        this.ipAllowLists = value
    }

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

    /**
     * @param values One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
     */
    @JvmName("mertcfulxxiqglkq")
    public suspend fun ipAllowLists(values: List>) {
        this.ipAllowLists = Output.all(values)
    }

    /**
     * @param value The Default Action to use when no rules match from `ip_allow_list`. Possible values are `Allow` and `Deny`.
     */
    @JvmName("bqjvjgkkpjgcrchk")
    public suspend fun defaultAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultAction = mapped
    }

    /**
     * @param value One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
     */
    @JvmName("tyjgnjwjopxlsqmw")
    public suspend fun ipAllowLists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAllowLists = mapped
    }

    /**
     * @param values One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
     */
    @JvmName("vhocdrvqxhohtpkf")
    public suspend fun ipAllowLists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipAllowLists = mapped
    }

    internal fun build(): ServiceAccountKeyDeliveryAccessControlArgs =
        ServiceAccountKeyDeliveryAccessControlArgs(
            defaultAction = defaultAction,
            ipAllowLists = ipAllowLists,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy