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

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

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

package com.pulumi.awsnative.appstream.kotlin

import com.pulumi.awsnative.appstream.ImageBuilderArgs.builder
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderAccessEndpointArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderAccessEndpointArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderDomainJoinInfoArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderDomainJoinInfoArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderVpcConfigArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderVpcConfigArgsBuilder
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::ImageBuilder
 * @property accessEndpoints The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
 * @property appstreamAgentVersion The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify [LATEST].
 * @property description The description to display.
 * @property displayName The image builder name to display.
 * @property domainJoinInfo The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
 * @property enableDefaultInternetAccess Enables or disables default internet access for the image builder.
 * @property iamRoleArn The ARN of the IAM role that is applied to the image builder. To assume a role, the image builder calls the AWS Security Token Service `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the *appstream_machine_role* credential profile on the instance.
 * For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide* .
 * @property imageArn The ARN of the public, private, or shared image to use.
 * @property imageName The name of the image used to create the image builder.
 * @property instanceType The instance type to use when launching the image builder. The following instance types are available:
 * - stream.standard.small
 * - stream.standard.medium
 * - stream.standard.large
 * - stream.compute.large
 * - stream.compute.xlarge
 * - stream.compute.2xlarge
 * - stream.compute.4xlarge
 * - stream.compute.8xlarge
 * - stream.memory.large
 * - stream.memory.xlarge
 * - stream.memory.2xlarge
 * - stream.memory.4xlarge
 * - stream.memory.8xlarge
 * - stream.memory.z1d.large
 * - stream.memory.z1d.xlarge
 * - stream.memory.z1d.2xlarge
 * - stream.memory.z1d.3xlarge
 * - stream.memory.z1d.6xlarge
 * - stream.memory.z1d.12xlarge
 * - stream.graphics-design.large
 * - stream.graphics-design.xlarge
 * - stream.graphics-design.2xlarge
 * - stream.graphics-design.4xlarge
 * - stream.graphics-desktop.2xlarge
 * - stream.graphics.g4dn.xlarge
 * - stream.graphics.g4dn.2xlarge
 * - stream.graphics.g4dn.4xlarge
 * - stream.graphics.g4dn.8xlarge
 * - stream.graphics.g4dn.12xlarge
 * - stream.graphics.g4dn.16xlarge
 * - stream.graphics-pro.4xlarge
 * - stream.graphics-pro.8xlarge
 * - stream.graphics-pro.16xlarge
 * @property name A unique name for the image builder.
 * @property tags An array of key-value pairs.
 * @property vpcConfig The VPC configuration for the image builder. You can specify only one subnet.
 */
public data class ImageBuilderArgs(
    public val accessEndpoints: Output>? = null,
    public val appstreamAgentVersion: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val domainJoinInfo: Output? = null,
    public val enableDefaultInternetAccess: Output? = null,
    public val iamRoleArn: Output? = null,
    public val imageArn: Output? = null,
    public val imageName: Output? = null,
    public val instanceType: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val vpcConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appstream.ImageBuilderArgs =
        com.pulumi.awsnative.appstream.ImageBuilderArgs.builder()
            .accessEndpoints(
                accessEndpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .appstreamAgentVersion(appstreamAgentVersion?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .domainJoinInfo(domainJoinInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enableDefaultInternetAccess(enableDefaultInternetAccess?.applyValue({ args0 -> args0 }))
            .iamRoleArn(iamRoleArn?.applyValue({ args0 -> args0 }))
            .imageArn(imageArn?.applyValue({ args0 -> args0 }))
            .imageName(imageName?.applyValue({ args0 -> args0 }))
            .instanceType(instanceType?.applyValue({ args0 -> args0 }))
            .name(name?.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 [ImageBuilderArgs].
 */
@PulumiTagMarker
public class ImageBuilderArgsBuilder internal constructor() {
    private var accessEndpoints: Output>? = null

    private var appstreamAgentVersion: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var domainJoinInfo: Output? = null

    private var enableDefaultInternetAccess: Output? = null

    private var iamRoleArn: Output? = null

    private var imageArn: Output? = null

    private var imageName: Output? = null

    private var instanceType: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var vpcConfig: Output? = null

    /**
     * @param value The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("wxjyxcvvtyglgmct")
    public suspend fun accessEndpoints(`value`: Output>) {
        this.accessEndpoints = value
    }

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

    /**
     * @param values The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("wfblcunetfypttut")
    public suspend fun accessEndpoints(values: List>) {
        this.accessEndpoints = Output.all(values)
    }

    /**
     * @param value The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify [LATEST].
     */
    @JvmName("bnogvmmxmdhnfpwu")
    public suspend fun appstreamAgentVersion(`value`: Output) {
        this.appstreamAgentVersion = value
    }

    /**
     * @param value The description to display.
     */
    @JvmName("lmxtfcewyjcudomg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The image builder name to display.
     */
    @JvmName("itqtpvrekodeopig")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
     */
    @JvmName("udjjmpbfuprjjcpb")
    public suspend fun domainJoinInfo(`value`: Output) {
        this.domainJoinInfo = value
    }

    /**
     * @param value Enables or disables default internet access for the image builder.
     */
    @JvmName("edkbhfgwwgdwdcvp")
    public suspend fun enableDefaultInternetAccess(`value`: Output) {
        this.enableDefaultInternetAccess = value
    }

    /**
     * @param value The ARN of the IAM role that is applied to the image builder. To assume a role, the image builder calls the AWS Security Token Service `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the *appstream_machine_role* credential profile on the instance.
     * For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide* .
     */
    @JvmName("fddnjqrlhwvshpob")
    public suspend fun iamRoleArn(`value`: Output) {
        this.iamRoleArn = value
    }

    /**
     * @param value The ARN of the public, private, or shared image to use.
     */
    @JvmName("ufpxotpjxaykibah")
    public suspend fun imageArn(`value`: Output) {
        this.imageArn = value
    }

    /**
     * @param value The name of the image used to create the image builder.
     */
    @JvmName("dbynlcmwsbivxgjx")
    public suspend fun imageName(`value`: Output) {
        this.imageName = value
    }

    /**
     * @param value The instance type to use when launching the image builder. The following instance types are available:
     * - stream.standard.small
     * - stream.standard.medium
     * - stream.standard.large
     * - stream.compute.large
     * - stream.compute.xlarge
     * - stream.compute.2xlarge
     * - stream.compute.4xlarge
     * - stream.compute.8xlarge
     * - stream.memory.large
     * - stream.memory.xlarge
     * - stream.memory.2xlarge
     * - stream.memory.4xlarge
     * - stream.memory.8xlarge
     * - stream.memory.z1d.large
     * - stream.memory.z1d.xlarge
     * - stream.memory.z1d.2xlarge
     * - stream.memory.z1d.3xlarge
     * - stream.memory.z1d.6xlarge
     * - stream.memory.z1d.12xlarge
     * - stream.graphics-design.large
     * - stream.graphics-design.xlarge
     * - stream.graphics-design.2xlarge
     * - stream.graphics-design.4xlarge
     * - stream.graphics-desktop.2xlarge
     * - stream.graphics.g4dn.xlarge
     * - stream.graphics.g4dn.2xlarge
     * - stream.graphics.g4dn.4xlarge
     * - stream.graphics.g4dn.8xlarge
     * - stream.graphics.g4dn.12xlarge
     * - stream.graphics.g4dn.16xlarge
     * - stream.graphics-pro.4xlarge
     * - stream.graphics-pro.8xlarge
     * - stream.graphics-pro.16xlarge
     */
    @JvmName("lgrovweoboyvxfjp")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value A unique name for the image builder.
     */
    @JvmName("bxwtowdvtvxhjdlp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An array of key-value pairs.
     */
    @JvmName("ipagavncoonueump")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs.
     */
    @JvmName("kupnxgouaxmumffj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The VPC configuration for the image builder. You can specify only one subnet.
     */
    @JvmName("jdtkayqbuskepjqy")
    public suspend fun vpcConfig(`value`: Output) {
        this.vpcConfig = value
    }

    /**
     * @param value The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("ysptogwcqstojqed")
    public suspend fun accessEndpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("cuefofblqklhxsft")
    public suspend fun accessEndpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ImageBuilderAccessEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("yemykneulirfxfyj")
    public suspend fun accessEndpoints(vararg argument: suspend ImageBuilderAccessEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ImageBuilderAccessEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param argument The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("lgjyvbepdaweohvl")
    public suspend fun accessEndpoints(argument: suspend ImageBuilderAccessEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ImageBuilderAccessEndpointArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.accessEndpoints = mapped
    }

    /**
     * @param values The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.
     */
    @JvmName("dwticgdcndndsodr")
    public suspend fun accessEndpoints(vararg values: ImageBuilderAccessEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessEndpoints = mapped
    }

    /**
     * @param value The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify [LATEST].
     */
    @JvmName("gkgepyeweylxgstq")
    public suspend fun appstreamAgentVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appstreamAgentVersion = mapped
    }

    /**
     * @param value The description to display.
     */
    @JvmName("aeuohhxhhvqfpcin")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The image builder name to display.
     */
    @JvmName("kxihcsioktiivmjk")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
     */
    @JvmName("xhctviiwwdceiali")
    public suspend fun domainJoinInfo(`value`: ImageBuilderDomainJoinInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainJoinInfo = mapped
    }

    /**
     * @param argument The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
     */
    @JvmName("wmkxuoxuyaehbvwb")
    public suspend fun domainJoinInfo(argument: suspend ImageBuilderDomainJoinInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ImageBuilderDomainJoinInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.domainJoinInfo = mapped
    }

    /**
     * @param value Enables or disables default internet access for the image builder.
     */
    @JvmName("cinmopdfenfndxhn")
    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 image builder. To assume a role, the image builder calls the AWS Security Token Service `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the *appstream_machine_role* credential profile on the instance.
     * For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide* .
     */
    @JvmName("xmyflrdmaratcrcl")
    public suspend fun iamRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iamRoleArn = mapped
    }

    /**
     * @param value The ARN of the public, private, or shared image to use.
     */
    @JvmName("sgasusfmltowpeam")
    public suspend fun imageArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageArn = mapped
    }

    /**
     * @param value The name of the image used to create the image builder.
     */
    @JvmName("ijshtivontesfxij")
    public suspend fun imageName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageName = mapped
    }

    /**
     * @param value The instance type to use when launching the image builder. The following instance types are available:
     * - stream.standard.small
     * - stream.standard.medium
     * - stream.standard.large
     * - stream.compute.large
     * - stream.compute.xlarge
     * - stream.compute.2xlarge
     * - stream.compute.4xlarge
     * - stream.compute.8xlarge
     * - stream.memory.large
     * - stream.memory.xlarge
     * - stream.memory.2xlarge
     * - stream.memory.4xlarge
     * - stream.memory.8xlarge
     * - stream.memory.z1d.large
     * - stream.memory.z1d.xlarge
     * - stream.memory.z1d.2xlarge
     * - stream.memory.z1d.3xlarge
     * - stream.memory.z1d.6xlarge
     * - stream.memory.z1d.12xlarge
     * - stream.graphics-design.large
     * - stream.graphics-design.xlarge
     * - stream.graphics-design.2xlarge
     * - stream.graphics-design.4xlarge
     * - stream.graphics-desktop.2xlarge
     * - stream.graphics.g4dn.xlarge
     * - stream.graphics.g4dn.2xlarge
     * - stream.graphics.g4dn.4xlarge
     * - stream.graphics.g4dn.8xlarge
     * - stream.graphics.g4dn.12xlarge
     * - stream.graphics.g4dn.16xlarge
     * - stream.graphics-pro.4xlarge
     * - stream.graphics-pro.8xlarge
     * - stream.graphics-pro.16xlarge
     */
    @JvmName("tbmxjedgwbnbydla")
    public suspend fun instanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    /**
     * @param value A unique name for the image builder.
     */
    @JvmName("fqdmpbigeaslwvou")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An array of key-value pairs.
     */
    @JvmName("clkvixyjnyqnnfcb")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs.
     */
    @JvmName("fshvghebbrwbvhis")
    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 An array of key-value pairs.
     */
    @JvmName("uwqihnsgvrkcmhhx")
    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 An array of key-value pairs.
     */
    @JvmName("wynifxgkxhgqfkho")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs.
     */
    @JvmName("ykvpogdqmwuwyubn")
    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 image builder. You can specify only one subnet.
     */
    @JvmName("ruxglvmybcvqnomi")
    public suspend fun vpcConfig(`value`: ImageBuilderVpcConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcConfig = mapped
    }

    /**
     * @param argument The VPC configuration for the image builder. You can specify only one subnet.
     */
    @JvmName("ooalayphtgyqcwfh")
    public suspend fun vpcConfig(argument: suspend ImageBuilderVpcConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ImageBuilderVpcConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcConfig = mapped
    }

    internal fun build(): ImageBuilderArgs = ImageBuilderArgs(
        accessEndpoints = accessEndpoints,
        appstreamAgentVersion = appstreamAgentVersion,
        description = description,
        displayName = displayName,
        domainJoinInfo = domainJoinInfo,
        enableDefaultInternetAccess = enableDefaultInternetAccess,
        iamRoleArn = iamRoleArn,
        imageArn = imageArn,
        imageName = imageName,
        instanceType = instanceType,
        name = name,
        tags = tags,
        vpcConfig = vpcConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy