![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.simspaceweaver.kotlin.Simulation.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.simspaceweaver.kotlin
import com.pulumi.awsnative.simspaceweaver.kotlin.outputs.SimulationS3Location
import com.pulumi.awsnative.simspaceweaver.kotlin.outputs.SimulationS3Location.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
/**
* Builder for [Simulation].
*/
@PulumiTagMarker
public class SimulationResourceBuilder internal constructor() {
public var name: String? = null
public var args: SimulationArgs = SimulationArgs()
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 SimulationArgsBuilder.() -> Unit) {
val builder = SimulationArgsBuilder()
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(): Simulation {
val builtJavaResource = com.pulumi.awsnative.simspaceweaver.Simulation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Simulation(builtJavaResource)
}
}
/**
* AWS::SimSpaceWeaver::Simulation resource creates an AWS Simulation.
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
*/
public class Simulation internal constructor(
override val javaResource: com.pulumi.awsnative.simspaceweaver.Simulation,
) : KotlinCustomResource(javaResource, SimulationMapper) {
/**
* Json object with all simulation details
*/
public val describePayload: Output
get() = javaResource.describePayload().applyValue({ args0 -> args0 })
/**
* The maximum running time of the simulation.
*/
public val maximumDuration: Output?
get() = javaResource.maximumDuration().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the simulation.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Role ARN.
*/
public val roleArn: Output
get() = javaResource.roleArn().applyValue({ args0 -> args0 })
/**
* The location of the simulation schema in Amazon Simple Storage Service ( Amazon S3 ). For more information about Amazon S3 , see the [*Amazon Simple Storage Service User Guide*](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) .
* Provide a `SchemaS3Location` to start your simulation from a schema.
* If you provide a `SchemaS3Location` then you can't provide a `SnapshotS3Location` .
*/
public val schemaS3Location: Output?
get() = javaResource.schemaS3Location().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
}).orElse(null)
})
/**
* The location of the snapshot in Amazon Simple Storage Service ( Amazon S3 ). For more information about Amazon S3 , see the [*Amazon Simple Storage Service User Guide*](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) .
* Provide a `SnapshotS3Location` to start your simulation from a snapshot.
* If you provide a `SnapshotS3Location` then you can't provide a `SchemaS3Location` .
*/
public val snapshotS3Location: Output?
get() = javaResource.snapshotS3Location().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
}).orElse(null)
})
}
public object SimulationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.simspaceweaver.Simulation::class == javaResource::class
override fun map(javaResource: Resource): Simulation = Simulation(
javaResource as
com.pulumi.awsnative.simspaceweaver.Simulation,
)
}
/**
* @see [Simulation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Simulation].
*/
public suspend fun simulation(name: String, block: suspend SimulationResourceBuilder.() -> Unit): Simulation {
val builder = SimulationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Simulation].
* @param name The _unique_ name of the resulting resource.
*/
public fun simulation(name: String): Simulation {
val builder = SimulationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy