
com.pulumi.awsnative.cloudfront.kotlin.KeyValueStoreArgs.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.cloudfront.kotlin
import com.pulumi.awsnative.cloudfront.KeyValueStoreArgs.builder
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyValueStoreImportSourceArgs
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyValueStoreImportSourceArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::CloudFront::KeyValueStore
* @property comment A comment for the key value store.
* @property importSource The import source for the key value store.
* @property name The name of the key value store.
*/
public data class KeyValueStoreArgs(
public val comment: Output? = null,
public val importSource: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.KeyValueStoreArgs =
com.pulumi.awsnative.cloudfront.KeyValueStoreArgs.builder()
.comment(comment?.applyValue({ args0 -> args0 }))
.importSource(importSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KeyValueStoreArgs].
*/
@PulumiTagMarker
public class KeyValueStoreArgsBuilder internal constructor() {
private var comment: Output? = null
private var importSource: Output? = null
private var name: Output? = null
/**
* @param value A comment for the key value store.
*/
@JvmName("ujspgkneiwvklecd")
public suspend fun comment(`value`: Output) {
this.comment = value
}
/**
* @param value The import source for the key value store.
*/
@JvmName("hlgfmqrrealunavl")
public suspend fun importSource(`value`: Output) {
this.importSource = value
}
/**
* @param value The name of the key value store.
*/
@JvmName("ajacdrfdutbhkfgf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A comment for the key value store.
*/
@JvmName("yyoekfqhsmxcgprt")
public suspend fun comment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.comment = mapped
}
/**
* @param value The import source for the key value store.
*/
@JvmName("xcuyayyihvxnytfc")
public suspend fun importSource(`value`: KeyValueStoreImportSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.importSource = mapped
}
/**
* @param argument The import source for the key value store.
*/
@JvmName("iavovsslikqhjmhy")
public suspend fun importSource(argument: suspend KeyValueStoreImportSourceArgsBuilder.() -> Unit) {
val toBeMapped = KeyValueStoreImportSourceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.importSource = mapped
}
/**
* @param value The name of the key value store.
*/
@JvmName("gbfkeaaurqrenehy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): KeyValueStoreArgs = KeyValueStoreArgs(
comment = comment,
importSource = importSource,
name = name,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy