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

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

package com.pulumi.awsnative.nimblestudio.kotlin

import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioEncryptionConfiguration
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioEncryptionConfiguration.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.Map

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

    public var args: StudioArgs = StudioArgs()

    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 StudioArgsBuilder.() -> Unit) {
        val builder = StudioArgsBuilder()
        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(): Studio {
        val builtJavaResource = com.pulumi.awsnative.nimblestudio.Studio(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return Studio(builtJavaResource)
    }
}

/**
 * Represents a studio that contains other Nimble Studio resources
 */
public class Studio internal constructor(
    override val javaResource: com.pulumi.awsnative.nimblestudio.Studio,
) : KotlinCustomResource(javaResource, StudioMapper) {
    /**
     * 

The IAM role that Studio Admins will assume when logging in to the Nimble Studio portal.

*/ public val adminRoleArn: Output get() = javaResource.adminRoleArn().applyValue({ args0 -> args0 }) /** *

A friendly name for the studio.

*/ public val displayName: Output get() = javaResource.displayName().applyValue({ args0 -> args0 }) /** *

The Amazon Web Services Region where the studio resource is located.

*/ public val homeRegion: Output get() = javaResource.homeRegion().applyValue({ args0 -> args0 }) /** *

The Amazon Web Services SSO application client ID used to integrate with Amazon Web Services SSO to enable Amazon Web Services SSO users to log in to Nimble Studio portal.

*/ public val ssoClientId: Output get() = javaResource.ssoClientId().applyValue({ args0 -> args0 }) /** * Configuration of the encryption method that is used for the studio. */ public val studioEncryptionConfiguration: Output? get() = javaResource.studioEncryptionConfiguration().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) }).orElse(null) }) /** * The unique identifier for the studio resource. */ public val studioId: Output get() = javaResource.studioId().applyValue({ args0 -> args0 }) /** *

The studio name that is used in the URL of the Nimble Studio portal when accessed by Nimble Studio users.

*/ public val studioName: Output get() = javaResource.studioName().applyValue({ args0 -> args0 }) /** *

The address of the web page for the studio.

*/ public val studioUrl: Output get() = javaResource.studioUrl().applyValue({ args0 -> args0 }) /** * An array of key-value pairs to apply to this resource. * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) . */ public val tags: Output>? get() = javaResource.tags().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }).orElse(null) }) /** *

The IAM role that Studio Users will assume when logging in to the Nimble Studio portal.

*/ public val userRoleArn: Output get() = javaResource.userRoleArn().applyValue({ args0 -> args0 }) } public object StudioMapper : ResourceMapper { override fun supportsMappingOfType(javaResource: Resource): Boolean = com.pulumi.awsnative.nimblestudio.Studio::class == javaResource::class override fun map(javaResource: Resource): Studio = Studio( javaResource as com.pulumi.awsnative.nimblestudio.Studio, ) } /** * @see [Studio]. * @param name The _unique_ name of the resulting resource. * @param block Builder for [Studio]. */ public suspend fun studio(name: String, block: suspend StudioResourceBuilder.() -> Unit): Studio { val builder = StudioResourceBuilder() builder.name(name) block(builder) return builder.build() } /** * @see [Studio]. * @param name The _unique_ name of the resulting resource. */ public fun studio(name: String): Studio { val builder = StudioResourceBuilder() builder.name(name) return builder.build() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy