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

com.pulumi.awsnative.iottwinmaker.kotlin.WorkspaceArgs.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.iottwinmaker.kotlin

import com.pulumi.awsnative.iottwinmaker.WorkspaceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::IoTTwinMaker::Workspace
 * @property description The description of the workspace.
 * @property role The ARN of the execution role associated with the workspace.
 * @property s3Location The ARN of the S3 bucket where resources associated with the workspace are stored.
 * @property tags A map of key-value pairs to associate with a resource.
 * @property workspaceId The ID of the workspace.
 */
public data class WorkspaceArgs(
    public val description: Output? = null,
    public val role: Output? = null,
    public val s3Location: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iottwinmaker.WorkspaceArgs =
        com.pulumi.awsnative.iottwinmaker.WorkspaceArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 }))
            .s3Location(s3Location?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkspaceArgs].
 */
@PulumiTagMarker
public class WorkspaceArgsBuilder internal constructor() {
    private var description: Output? = null

    private var role: Output? = null

    private var s3Location: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

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

    /**
     * @param value The ARN of the execution role associated with the workspace.
     */
    @JvmName("shkrymqoldbartgb")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value The ARN of the S3 bucket where resources associated with the workspace are stored.
     */
    @JvmName("ruwbfgwtvyyaigqf")
    public suspend fun s3Location(`value`: Output) {
        this.s3Location = value
    }

    /**
     * @param value A map of key-value pairs to associate with a resource.
     */
    @JvmName("hmrtmfynkmkyoolc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The ID of the workspace.
     */
    @JvmName("kfsiyslvwexqeffr")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

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

    /**
     * @param value The ARN of the execution role associated with the workspace.
     */
    @JvmName("fjpdhaypvwlwmjlw")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    /**
     * @param value The ARN of the S3 bucket where resources associated with the workspace are stored.
     */
    @JvmName("dskthydvtnejshnv")
    public suspend fun s3Location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3Location = mapped
    }

    /**
     * @param value A map of key-value pairs to associate with a resource.
     */
    @JvmName("yknsinlwxnjgjrjn")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of key-value pairs to associate with a resource.
     */
    @JvmName("rddexbatymcrhgjm")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the workspace.
     */
    @JvmName("ugmbojaligfpfttw")
    public suspend fun workspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceId = mapped
    }

    internal fun build(): WorkspaceArgs = WorkspaceArgs(
        description = description,
        role = role,
        s3Location = s3Location,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy