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

com.pulumi.awsnative.workspacesweb.kotlin.BrowserSettingsArgs.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.BrowserSettingsArgs.builder
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::BrowserSettings Resource Type
 * @property additionalEncryptionContext Additional encryption context of the browser settings.
 * @property browserPolicy A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
 * @property customerManagedKey The custom managed key of the browser settings.
 * *Pattern* : `^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$`
 * @property tags The tags to add to the browser settings resource. A tag is a key-value pair.
 */
public data class BrowserSettingsArgs(
    public val additionalEncryptionContext: Output>? = null,
    public val browserPolicy: Output? = null,
    public val customerManagedKey: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspacesweb.BrowserSettingsArgs =
        com.pulumi.awsnative.workspacesweb.BrowserSettingsArgs.builder()
            .additionalEncryptionContext(
                additionalEncryptionContext?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .browserPolicy(browserPolicy?.applyValue({ args0 -> args0 }))
            .customerManagedKey(customerManagedKey?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var browserPolicy: Output? = null

    private var customerManagedKey: Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
     */
    @JvmName("tuskqtfjtslhwlxy")
    public suspend fun browserPolicy(`value`: Output) {
        this.browserPolicy = value
    }

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

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

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

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

    /**
     * @param value Additional encryption context of the browser settings.
     */
    @JvmName("nisjlxccawaeauan")
    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 browser settings.
     */
    @JvmName("pjnjuwnarqajohrf")
    public fun additionalEncryptionContext(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalEncryptionContext = mapped
    }

    /**
     * @param value A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
     */
    @JvmName("uoojndbtexcdxegl")
    public suspend fun browserPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.browserPolicy = mapped
    }

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

    /**
     * @param value The tags to add to the browser settings resource. A tag is a key-value pair.
     */
    @JvmName("sjkvemvydjevqpvc")
    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 browser settings resource. A tag is a key-value pair.
     */
    @JvmName("tacwjcalsercafym")
    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 browser settings resource. A tag is a key-value pair.
     */
    @JvmName("sbokaqbudanlknqx")
    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 browser settings resource. A tag is a key-value pair.
     */
    @JvmName("qhwhinyyuthhwidl")
    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 browser settings resource. A tag is a key-value pair.
     */
    @JvmName("oasipmpllotdgjun")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): BrowserSettingsArgs = BrowserSettingsArgs(
        additionalEncryptionContext = additionalEncryptionContext,
        browserPolicy = browserPolicy,
        customerManagedKey = customerManagedKey,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy