
com.pulumi.awsnative.nimblestudio.kotlin.StreamingImage.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.outputs.StreamingImageEncryptionConfiguration
import com.pulumi.awsnative.nimblestudio.kotlin.outputs.StreamingImageEncryptionConfiguration.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.List
import kotlin.collections.Map
/**
* Builder for [StreamingImage].
*/
@PulumiTagMarker
public class StreamingImageResourceBuilder internal constructor() {
public var name: String? = null
public var args: StreamingImageArgs = StreamingImageArgs()
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 StreamingImageArgsBuilder.() -> Unit) {
val builder = StreamingImageArgsBuilder()
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(): StreamingImage {
val builtJavaResource =
com.pulumi.awsnative.nimblestudio.StreamingImage(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return StreamingImage(builtJavaResource)
}
}
/**
* Represents a streaming session machine image that can be used to launch a streaming session
*/
public class StreamingImage internal constructor(
override val javaResource: com.pulumi.awsnative.nimblestudio.StreamingImage,
) : KotlinCustomResource(javaResource, StreamingImageMapper) {
/**
* A human-readable description of the streaming image.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of an EC2 machine image with which to create this streaming image.
*/
public val ec2ImageId: Output
get() = javaResource.ec2ImageId().applyValue({ args0 -> args0 })
public val encryptionConfiguration: Output
get() = javaResource.encryptionConfiguration().applyValue({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
/**
* The list of EULAs that must be accepted before a Streaming Session can be started using this streaming image.
*/
public val eulaIds: Output>
get() = javaResource.eulaIds().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* A friendly name for a streaming image resource.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The owner of the streaming image, either the studioId that contains the streaming image, or 'amazon' for images that are provided by Amazon Nimble Studio.
*/
public val owner: Output
get() = javaResource.owner().applyValue({ args0 -> args0 })
/**
* The platform of the streaming image, either WINDOWS or LINUX.
*/
public val platform: Output
get() = javaResource.platform().applyValue({ args0 -> args0 })
/**
* The unique identifier for the streaming image resource.
*/
public val streamingImageId: Output
get() = javaResource.streamingImageId().applyValue({ args0 -> args0 })
/**
* The studioId.
*/
public val studioId: Output
get() = javaResource.studioId().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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy