com.pulumi.awsnative.nimblestudio.kotlin.StudioComponent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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