![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.healthimaging.kotlin.Datastore.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.healthimaging.kotlin
import com.pulumi.awsnative.healthimaging.kotlin.enums.DatastoreStatus
import com.pulumi.awsnative.healthimaging.kotlin.enums.DatastoreStatus.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.Map
/**
* Builder for [Datastore].
*/
@PulumiTagMarker
public class DatastoreResourceBuilder internal constructor() {
public var name: String? = null
public var args: DatastoreArgs = DatastoreArgs()
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 DatastoreArgsBuilder.() -> Unit) {
val builder = DatastoreArgsBuilder()
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(): Datastore {
val builtJavaResource = com.pulumi.awsnative.healthimaging.Datastore(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Datastore(builtJavaResource)
}
}
/**
* Definition of AWS::HealthImaging::Datastore Resource Type
*/
public class Datastore internal constructor(
override val javaResource: com.pulumi.awsnative.healthimaging.Datastore,
) : KotlinCustomResource(javaResource, DatastoreMapper) {
/**
* The timestamp when the data store was created.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) for the data store.
*/
public val datastoreArn: Output
get() = javaResource.datastoreArn().applyValue({ args0 -> args0 })
/**
* The data store identifier.
*/
public val datastoreId: Output
get() = javaResource.datastoreId().applyValue({ args0 -> args0 })
/**
* The data store name.
*/
public val datastoreName: Output?
get() = javaResource.datastoreName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The data store status.
*/
public val datastoreStatus: Output
get() = javaResource.datastoreStatus().applyValue({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
/**
* The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.
*/
public val kmsKeyArn: Output?
get() = javaResource.kmsKeyArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The tags provided when creating a data store.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy