![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.robomaker.kotlin.RobotApplicationVersion.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 [RobotApplicationVersion].
*/
@PulumiTagMarker
public class RobotApplicationVersionResourceBuilder internal constructor() {
public var name: String? = null
public var args: RobotApplicationVersionArgs = RobotApplicationVersionArgs()
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 RobotApplicationVersionArgsBuilder.() -> Unit) {
val builder = RobotApplicationVersionArgsBuilder()
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(): RobotApplicationVersion {
val builtJavaResource =
com.pulumi.awsnative.robomaker.RobotApplicationVersion(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return RobotApplicationVersion(builtJavaResource)
}
}
/**
* AWS::RoboMaker::RobotApplicationVersion resource creates an AWS RoboMaker RobotApplicationVersion. This helps you control which code your robot uses.
*/
public class RobotApplicationVersion internal constructor(
override val javaResource: com.pulumi.awsnative.robomaker.RobotApplicationVersion,
) : KotlinCustomResource(javaResource, RobotApplicationVersionMapper) {
/**
* The application information for the robot application.
*/
public val application: Output
get() = javaResource.application().applyValue({ args0 -> args0 })
/**
* The robot application version.
*/
public val applicationVersion: Output
get() = javaResource.applicationVersion().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the robot 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 RobotApplicationVersionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.robomaker.RobotApplicationVersion::class == javaResource::class
override fun map(javaResource: Resource): RobotApplicationVersion =
RobotApplicationVersion(
javaResource as
com.pulumi.awsnative.robomaker.RobotApplicationVersion,
)
}
/**
* @see [RobotApplicationVersion].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [RobotApplicationVersion].
*/
public suspend fun robotApplicationVersion(
name: String,
block: suspend RobotApplicationVersionResourceBuilder.() -> Unit,
): RobotApplicationVersion {
val builder = RobotApplicationVersionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [RobotApplicationVersion].
* @param name The _unique_ name of the resulting resource.
*/
public fun robotApplicationVersion(name: String): RobotApplicationVersion {
val builder = RobotApplicationVersionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy