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

com.pulumi.awsnative.nimblestudio.kotlin.StudioComponent.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.enums.StudioComponentSubtype
import com.pulumi.awsnative.nimblestudio.kotlin.enums.StudioComponentType
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioComponentInitializationScript
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioComponentScriptParameterKeyValue
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.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.awsnative.nimblestudio.kotlin.enums.StudioComponentSubtype.Companion.toKotlin as studioComponentSubtypeToKotlin
import com.pulumi.awsnative.nimblestudio.kotlin.enums.StudioComponentType.Companion.toKotlin as studioComponentTypeToKotlin
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioComponentInitializationScript.Companion.toKotlin as studioComponentInitializationScriptToKotlin
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StudioComponentScriptParameterKeyValue.Companion.toKotlin as studioComponentScriptParameterKeyValueToKotlin

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

    public var args: StudioComponentArgs = StudioComponentArgs()

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

/**
 * Represents a studio component that connects a non-Nimble Studio resource in your account to your studio
 */
public class StudioComponent internal constructor(
    override val javaResource: com.pulumi.awsnative.nimblestudio.StudioComponent,
) : KotlinCustomResource(javaResource, StudioComponentMapper) {
    /**
     * The configuration of the studio component, based on component type.
     */
    public val configuration: Output?
        get() = javaResource.configuration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 

The description.

*/ public val description: Output? get() = javaResource.description().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** *

The EC2 security groups that control access to the studio component.

*/ public val ec2SecurityGroupIds: Output>? get() = javaResource.ec2SecurityGroupIds().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0 }) }).orElse(null) }) /** *

Initialization scripts for studio components.

*/ public val initializationScripts: Output>? get() = javaResource.initializationScripts().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> studioComponentInitializationScriptToKotlin(args0) }) }) }).orElse(null) }) /** *

The name for the studio component.

*/ public val name: Output get() = javaResource.name().applyValue({ args0 -> args0 }) /** * An IAM role attached to a Studio Component that gives the studio component access to AWS resources at anytime while the instance is running. */ public val runtimeRoleArn: Output? get() = javaResource.runtimeRoleArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** *

Parameters for the studio component scripts.

*/ public val scriptParameters: Output>? get() = javaResource.scriptParameters().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> studioComponentScriptParameterKeyValueToKotlin(args0) }) }) }).orElse(null) }) /** * An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to AWS resources when the system initialization script runs. */ public val secureInitializationRoleArn: Output? get() = javaResource.secureInitializationRoleArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** * The unique identifier for the studio component resource. */ public val studioComponentId: Output get() = javaResource.studioComponentId().applyValue({ args0 -> args0 }) /** *

The studio ID.

*/ public val studioId: Output get() = javaResource.studioId().applyValue({ args0 -> args0 }) /** * The specific subtype of a studio component. */ public val subtype: Output? get() = javaResource.subtype().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> studioComponentSubtypeToKotlin(args0) }) }).orElse(null) }) /** * 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 type of the studio component. */ public val type: Output get() = javaResource.type().applyValue({ args0 -> args0.let({ args0 -> studioComponentTypeToKotlin(args0) }) }) } public object StudioComponentMapper : ResourceMapper { override fun supportsMappingOfType(javaResource: Resource): Boolean = com.pulumi.awsnative.nimblestudio.StudioComponent::class == javaResource::class override fun map(javaResource: Resource): StudioComponent = StudioComponent( javaResource as com.pulumi.awsnative.nimblestudio.StudioComponent, ) } /** * @see [StudioComponent]. * @param name The _unique_ name of the resulting resource. * @param block Builder for [StudioComponent]. */ public suspend fun studioComponent( name: String, block: suspend StudioComponentResourceBuilder.() -> Unit, ): StudioComponent { val builder = StudioComponentResourceBuilder() builder.name(name) block(builder) return builder.build() } /** * @see [StudioComponent]. * @param name The _unique_ name of the resulting resource. */ public fun studioComponent(name: String): StudioComponent { val builder = StudioComponentResourceBuilder() builder.name(name) return builder.build() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy