
com.pulumi.awsnative.robomaker.kotlin.SimulationApplicationVersion.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.robomaker.kotlin
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
/**
* Builder for [SimulationApplicationVersion].
*/
@PulumiTagMarker
public class SimulationApplicationVersionResourceBuilder internal constructor() {
public var name: String? = null
public var args: SimulationApplicationVersionArgs = SimulationApplicationVersionArgs()
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 SimulationApplicationVersionArgsBuilder.() -> Unit) {
val builder = SimulationApplicationVersionArgsBuilder()
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(): SimulationApplicationVersion {
val builtJavaResource =
com.pulumi.awsnative.robomaker.SimulationApplicationVersion(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return SimulationApplicationVersion(builtJavaResource)
}
}
/**
* AWS::RoboMaker::SimulationApplicationVersion resource creates an AWS RoboMaker SimulationApplicationVersion. This helps you control which code your simulation uses.
*/
public class SimulationApplicationVersion internal constructor(
override val javaResource: com.pulumi.awsnative.robomaker.SimulationApplicationVersion,
) : KotlinCustomResource(javaResource, SimulationApplicationVersionMapper) {
/**
* The application information for the simulation application.
*/
public val application: Output
get() = javaResource.application().applyValue({ args0 -> args0 })
/**
* The simulation application version.
*/
public val applicationVersion: Output
get() = javaResource.applicationVersion().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the simulation application version.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The revision ID of robot application.
*/
public val currentRevisionId: Output?
get() = javaResource.currentRevisionId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
}
public object SimulationApplicationVersionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.robomaker.SimulationApplicationVersion::class == javaResource::class
override fun map(javaResource: Resource): SimulationApplicationVersion =
SimulationApplicationVersion(
javaResource as
com.pulumi.awsnative.robomaker.SimulationApplicationVersion,
)
}
/**
* @see [SimulationApplicationVersion].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [SimulationApplicationVersion].
*/
public suspend fun simulationApplicationVersion(
name: String,
block: suspend SimulationApplicationVersionResourceBuilder.() -> Unit,
): SimulationApplicationVersion {
val builder = SimulationApplicationVersionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [SimulationApplicationVersion].
* @param name The _unique_ name of the resulting resource.
*/
public fun simulationApplicationVersion(name: String): SimulationApplicationVersion {
val builder = SimulationApplicationVersionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy