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

com.pulumi.awsnative.workspacesweb.kotlin.BrowserSettings.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.workspacesweb.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map

/**
 * Builder for [BrowserSettings].
 */
@PulumiTagMarker
public class BrowserSettingsResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: BrowserSettingsArgs = BrowserSettingsArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend BrowserSettingsArgsBuilder.() -> Unit) {
        val builder = BrowserSettingsArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): BrowserSettings {
        val builtJavaResource =
            com.pulumi.awsnative.workspacesweb.BrowserSettings(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return BrowserSettings(builtJavaResource)
    }
}

/**
 * Definition of AWS::WorkSpacesWeb::BrowserSettings Resource Type
 */
public class BrowserSettings internal constructor(
    override val javaResource: com.pulumi.awsnative.workspacesweb.BrowserSettings,
) : KotlinCustomResource(javaResource, BrowserSettingsMapper) {
    /**
     * Additional encryption context of the browser settings.
     */
    public val additionalEncryptionContext: Output>?
        get() = javaResource.additionalEncryptionContext().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 -> args0.key.to(args0.value) }).toMap()
            }).orElse(null)
        })

    /**
     * A list of web portal ARNs that the browser settings resource is associated with.
     */
    public val associatedPortalArns: Output>
        get() = javaResource.associatedPortalArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })

    /**
     * A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
     */
    public val browserPolicy: Output?
        get() = javaResource.browserPolicy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The ARN of the browser settings.
     */
    public val browserSettingsArn: Output
        get() = javaResource.browserSettingsArn().applyValue({ args0 -> args0 })

    /**
     * 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-]+$`
     */
    public val customerManagedKey: Output?
        get() = javaResource.customerManagedKey().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The tags to add to the browser settings resource. A tag is a key-value pair.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> toKotlin(args0) })
                })
            }).orElse(null)
        })
}

public object BrowserSettingsMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.workspacesweb.BrowserSettings::class == javaResource::class

    override fun map(javaResource: Resource): BrowserSettings = BrowserSettings(
        javaResource as
            com.pulumi.awsnative.workspacesweb.BrowserSettings,
    )
}

/**
 * @see [BrowserSettings].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [BrowserSettings].
 */
public suspend fun browserSettings(
    name: String,
    block: suspend BrowserSettingsResourceBuilder.() -> Unit,
): BrowserSettings {
    val builder = BrowserSettingsResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [BrowserSettings].
 * @param name The _unique_ name of the resulting resource.
 */
public fun browserSettings(name: String): BrowserSettings {
    val builder = BrowserSettingsResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy