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

com.pulumi.awsnative.workspacesweb.kotlin.IpAccessSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.workspacesweb.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.workspacesweb.IpAccessSettingsArgs.builder
import com.pulumi.awsnative.workspacesweb.kotlin.inputs.IpAccessSettingsIpRuleArgs
import com.pulumi.awsnative.workspacesweb.kotlin.inputs.IpAccessSettingsIpRuleArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::WorkSpacesWeb::IpAccessSettings Resource Type
 * @property additionalEncryptionContext Additional encryption context of the IP access settings.
 * @property customerManagedKey The custom managed key of the IP access settings.
 * *Pattern* : `^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$`
 * @property description The description of the IP access settings.
 * @property displayName The display name of the IP access settings.
 * @property ipRules The IP rules of the IP access settings.
 * @property tags The tags to add to the IP access settings resource. A tag is a key-value pair.
 */
public data class IpAccessSettingsArgs(
    public val additionalEncryptionContext: Output>? = null,
    public val customerManagedKey: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val ipRules: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspacesweb.IpAccessSettingsArgs =
        com.pulumi.awsnative.workspacesweb.IpAccessSettingsArgs.builder()
            .additionalEncryptionContext(
                additionalEncryptionContext?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .customerManagedKey(customerManagedKey?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .ipRules(
                ipRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [IpAccessSettingsArgs].
 */
@PulumiTagMarker
public class IpAccessSettingsArgsBuilder internal constructor() {
    private var additionalEncryptionContext: Output>? = null

    private var customerManagedKey: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var ipRules: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Additional encryption context of the IP access settings.
     */
    @JvmName("rnwivkvkmtnrggkd")
    public suspend fun additionalEncryptionContext(`value`: Output>) {
        this.additionalEncryptionContext = value
    }

    /**
     * @param value The custom managed key of the IP access settings.
     * *Pattern* : `^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$`
     */
    @JvmName("gjmlwadmkfkhexcg")
    public suspend fun customerManagedKey(`value`: Output) {
        this.customerManagedKey = value
    }

    /**
     * @param value The description of the IP access settings.
     */
    @JvmName("ewaevvkpnfnppyjv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The display name of the IP access settings.
     */
    @JvmName("kifoaenmlrmnjprv")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The IP rules of the IP access settings.
     */
    @JvmName("telqpqqhwuawotke")
    public suspend fun ipRules(`value`: Output>) {
        this.ipRules = value
    }

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

    /**
     * @param values The IP rules of the IP access settings.
     */
    @JvmName("xltubqgyrvkiscdd")
    public suspend fun ipRules(values: List>) {
        this.ipRules = Output.all(values)
    }

    /**
     * @param value The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("spcryxgqikhbrepg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("sshvuvdbexinwpjs")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Additional encryption context of the IP access settings.
     */
    @JvmName("uwohbsvwespqumgg")
    public suspend fun additionalEncryptionContext(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalEncryptionContext = mapped
    }

    /**
     * @param values Additional encryption context of the IP access settings.
     */
    @JvmName("odkrjlqriavkqgbh")
    public fun additionalEncryptionContext(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalEncryptionContext = mapped
    }

    /**
     * @param value The custom managed key of the IP access settings.
     * *Pattern* : `^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$`
     */
    @JvmName("issncwyxueuhyskr")
    public suspend fun customerManagedKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerManagedKey = mapped
    }

    /**
     * @param value The description of the IP access settings.
     */
    @JvmName("ssphxcdibefobigw")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The display name of the IP access settings.
     */
    @JvmName("dnraviwpyjrqxrpm")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The IP rules of the IP access settings.
     */
    @JvmName("gmwhlkefmshisxtn")
    public suspend fun ipRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    /**
     * @param argument The IP rules of the IP access settings.
     */
    @JvmName("wmjmdxbsggixefgc")
    public suspend fun ipRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IpAccessSettingsIpRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param argument The IP rules of the IP access settings.
     */
    @JvmName("gbuopcsjtwadryao")
    public suspend fun ipRules(vararg argument: suspend IpAccessSettingsIpRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IpAccessSettingsIpRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param argument The IP rules of the IP access settings.
     */
    @JvmName("somkakuefuopmxie")
    public suspend fun ipRules(argument: suspend IpAccessSettingsIpRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IpAccessSettingsIpRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ipRules = mapped
    }

    /**
     * @param values The IP rules of the IP access settings.
     */
    @JvmName("tfkvfmokldgeddad")
    public suspend fun ipRules(vararg values: IpAccessSettingsIpRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    /**
     * @param value The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("oyrlavjrgjrkshkl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("xgurrboqrprgided")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("bkqvklwffdmqsqan")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("ksixtynpfwoolbpy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to add to the IP access settings resource. A tag is a key-value pair.
     */
    @JvmName("fafuwlkxyhnhjfkm")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): IpAccessSettingsArgs = IpAccessSettingsArgs(
        additionalEncryptionContext = additionalEncryptionContext,
        customerManagedKey = customerManagedKey,
        description = description,
        displayName = displayName,
        ipRules = ipRules,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy