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

com.pulumi.awsnative.appstream.kotlin.AppBlockBuilderArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appstream.kotlin

import com.pulumi.awsnative.appstream.AppBlockBuilderArgs.builder
import com.pulumi.awsnative.appstream.kotlin.inputs.AppBlockBuilderAccessEndpointArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.AppBlockBuilderAccessEndpointArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.AppBlockBuilderVpcConfigArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.AppBlockBuilderVpcConfigArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::AppStream::AppBlockBuilder.
 * @property accessEndpoints The access endpoints of the app block builder.
 * @property appBlockArns The ARN of the app block.
 * *Maximum* : `1`
 * @property description The description of the app block builder.
 * @property displayName The display name of the app block builder.
 * @property enableDefaultInternetAccess Indicates whether default internet access is enabled for the app block builder.
 * @property iamRoleArn The ARN of the IAM role that is applied to the app block builder.
 * @property instanceType The instance type of the app block builder.
 * @property name The name of the app block builder.
 * @property platform The platform of the app block builder.
 * *Allowed values* : `WINDOWS_SERVER_2019`
 * @property tags The tags of the app block builder.
 * @property vpcConfig The VPC configuration for the app block builder.
 */
public data class AppBlockBuilderArgs(
    public val accessEndpoints: Output>? = null,
    public val appBlockArns: Output>? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val enableDefaultInternetAccess: Output? = null,
    public val iamRoleArn: Output? = null,
    public val instanceType: Output? = null,
    public val name: Output? = null,
    public val platform: Output? = null,
    public val tags: Output>? = null,
    public val vpcConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appstream.AppBlockBuilderArgs =
        com.pulumi.awsnative.appstream.AppBlockBuilderArgs.builder()
            .accessEndpoints(
                accessEndpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .appBlockArns(appBlockArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .enableDefaultInternetAccess(enableDefaultInternetAccess?.applyValue({ args0 -> args0 }))
            .iamRoleArn(iamRoleArn?.applyValue({ args0 -> args0 }))
            .instanceType(instanceType?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .platform(platform?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcConfig(vpcConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var appBlockArns: Output>? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var enableDefaultInternetAccess: Output? = null

    private var iamRoleArn: Output? = null

    private var instanceType: Output? = null

    private var name: Output? = null

    private var platform: Output? = null

    private var tags: Output>? = null

    private var vpcConfig: Output? = null

    /**
     * @param value The access endpoints of the app block builder.
     */
    @JvmName("ohiseiidqahyovcl")
    public suspend fun accessEndpoints(`value`: Output>) {
        this.accessEndpoints = value
    }

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

    /**
     * @param values The access endpoints of the app block builder.
     */
    @JvmName("twnggrwlkvgcrcgu")
    public suspend fun accessEndpoints(values: List>) {
        this.accessEndpoints = Output.all(values)
    }

    /**
     * @param value The ARN of the app block.
     * *Maximum* : `1`
     */
    @JvmName("yrligbgkfueopmdu")
    public suspend fun appBlockArns(`value`: Output>) {
        this.appBlockArns = value
    }

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

    /**
     * @param values The ARN of the app block.
     * *Maximum* : `1`
     */
    @JvmName("tweydxijttpjhepu")
    public suspend fun appBlockArns(values: List>) {
        this.appBlockArns = Output.all(values)
    }

    /**
     * @param value The description of the app block builder.
     */
    @JvmName("xybumbqlmjdikgqg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The display name of the app block builder.
     */
    @JvmName("icjaietmnoxemakt")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Indicates whether default internet access is enabled for the app block builder.
     */
    @JvmName("oukmqpqvflysytbh")
    public suspend fun enableDefaultInternetAccess(`value`: Output) {
        this.enableDefaultInternetAccess = value
    }

    /**
     * @param value The ARN of the IAM role that is applied to the app block builder.
     */
    @JvmName("eqbscounfiuoyyeo")
    public suspend fun iamRoleArn(`value`: Output) {
        this.iamRoleArn = value
    }

    /**
     * @param value The instance type of the app block builder.
     */
    @JvmName("hfsaodscuayvaiwl")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value The name of the app block builder.
     */
    @JvmName("sosufkqaktoivhia")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The platform of the app block builder.
     * *Allowed values* : `WINDOWS_SERVER_2019`
     */
    @JvmName("mwsuulihujlbrkqc")
    public suspend fun platform(`value`: Output) {
        this.platform = value
    }

    /**
     * @param value The tags of the app block builder.
     */
    @JvmName("xxiqejujwvsqqkab")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags of the app block builder.
     */
    @JvmName("melrtojqgvwddkaa")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The VPC configuration for the app block builder.
     */
    @JvmName("cugpdxjrulkrlmpn")
    public suspend fun vpcConfig(`value`: Output) {
        this.vpcConfig = value
    }

    /**
     * @param value The access endpoints of the app block builder.
     */
    @JvmName("geshkuhsnbbtdxmv")
    public suspend fun accessEndpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The access endpoints of the app block builder.
     */
    @JvmName("ptfhykqfryecpyls")
    public suspend fun accessEndpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AppBlockBuilderAccessEndpointArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The access endpoints of the app block builder.
     */
    @JvmName("aadjpcqwcukendku")
    public suspend fun accessEndpoints(vararg argument: suspend AppBlockBuilderAccessEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AppBlockBuilderAccessEndpointArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The access endpoints of the app block builder.
     */
    @JvmName("iffcgsccxftcoiua")
    public suspend fun accessEndpoints(argument: suspend AppBlockBuilderAccessEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AppBlockBuilderAccessEndpointArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param values The access endpoints of the app block builder.
     */
    @JvmName("lulragbhcytvlbky")
    public suspend fun accessEndpoints(vararg values: AppBlockBuilderAccessEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessEndpoints = mapped
    }

    /**
     * @param value The ARN of the app block.
     * *Maximum* : `1`
     */
    @JvmName("dckvvjgkodndanpo")
    public suspend fun appBlockArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appBlockArns = mapped
    }

    /**
     * @param values The ARN of the app block.
     * *Maximum* : `1`
     */
    @JvmName("jcrwvcymuyyquexf")
    public suspend fun appBlockArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appBlockArns = mapped
    }

    /**
     * @param value The description of the app block builder.
     */
    @JvmName("jaxjguehjqlgsafb")
    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 app block builder.
     */
    @JvmName("gvkdaflycvqcdfpn")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Indicates whether default internet access is enabled for the app block builder.
     */
    @JvmName("ewdnjukhkqhvrqup")
    public suspend fun enableDefaultInternetAccess(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableDefaultInternetAccess = mapped
    }

    /**
     * @param value The ARN of the IAM role that is applied to the app block builder.
     */
    @JvmName("dguemkhtsmtlcrto")
    public suspend fun iamRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iamRoleArn = mapped
    }

    /**
     * @param value The instance type of the app block builder.
     */
    @JvmName("icovqsrunlptrvec")
    public suspend fun instanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    /**
     * @param value The name of the app block builder.
     */
    @JvmName("wmnsprnbhclilexa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The platform of the app block builder.
     * *Allowed values* : `WINDOWS_SERVER_2019`
     */
    @JvmName("fhroxaeqjlrlsyny")
    public suspend fun platform(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platform = mapped
    }

    /**
     * @param value The tags of the app block builder.
     */
    @JvmName("kantihhtgnwcjmtg")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags of the app block builder.
     */
    @JvmName("ybgxhwqailbdibej")
    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 of the app block builder.
     */
    @JvmName("qwxfhrrtlindwfnn")
    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 of the app block builder.
     */
    @JvmName("kehsptojphihjybg")
    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 of the app block builder.
     */
    @JvmName("crmgnlcsveqiypyt")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The VPC configuration for the app block builder.
     */
    @JvmName("dcatchnkwgrkxtrj")
    public suspend fun vpcConfig(`value`: AppBlockBuilderVpcConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcConfig = mapped
    }

    /**
     * @param argument The VPC configuration for the app block builder.
     */
    @JvmName("oxsjodjpwwjlsqxl")
    public suspend fun vpcConfig(argument: suspend AppBlockBuilderVpcConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AppBlockBuilderVpcConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcConfig = mapped
    }

    internal fun build(): AppBlockBuilderArgs = AppBlockBuilderArgs(
        accessEndpoints = accessEndpoints,
        appBlockArns = appBlockArns,
        description = description,
        displayName = displayName,
        enableDefaultInternetAccess = enableDefaultInternetAccess,
        iamRoleArn = iamRoleArn,
        instanceType = instanceType,
        name = name,
        platform = platform,
        tags = tags,
        vpcConfig = vpcConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy