com.pulumi.awsnative.cassandra.kotlin.KeyspaceArgs.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.cassandra.kotlin
import com.pulumi.awsnative.cassandra.KeyspaceArgs.builder
import com.pulumi.awsnative.cassandra.kotlin.inputs.KeyspaceReplicationSpecificationArgs
import com.pulumi.awsnative.cassandra.kotlin.inputs.KeyspaceReplicationSpecificationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName
/**
* Resource schema for AWS::Cassandra::Keyspace
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* @property keyspaceName Name for Cassandra keyspace
* @property replicationSpecification Specifies the `ReplicationStrategy` of a keyspace. The options are:
* - `SINGLE_REGION` for a single Region keyspace (optional) or
* - `MULTI_REGION` for a multi-Region keyspace
* If no `ReplicationStrategy` is provided, the default is `SINGLE_REGION` . If you choose `MULTI_REGION` , you must also provide a `RegionList` with the AWS Regions that the keyspace is replicated in.
* @property tags An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
public data class KeyspaceArgs(
public val keyspaceName: Output? = null,
public val replicationSpecification: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cassandra.KeyspaceArgs =
com.pulumi.awsnative.cassandra.KeyspaceArgs.builder()
.keyspaceName(keyspaceName?.applyValue({ args0 -> args0 }))
.replicationSpecification(
replicationSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [KeyspaceArgs].
*/
@PulumiTagMarker
public class KeyspaceArgsBuilder internal constructor() {
private var keyspaceName: Output? = null
private var replicationSpecification: Output? = null
private var tags: Output>? = null
/**
* @param value Name for Cassandra keyspace
*/
@JvmName("dbwncunppkfieaqx")
public suspend fun keyspaceName(`value`: Output) {
this.keyspaceName = value
}
/**
* @param value Specifies the `ReplicationStrategy` of a keyspace. The options are:
* - `SINGLE_REGION` for a single Region keyspace (optional) or
* - `MULTI_REGION` for a multi-Region keyspace
* If no `ReplicationStrategy` is provided, the default is `SINGLE_REGION` . If you choose `MULTI_REGION` , you must also provide a `RegionList` with the AWS Regions that the keyspace is replicated in.
*/
@JvmName("brqpxqmbciuwsgsu")
public suspend fun replicationSpecification(`value`: Output) {
this.replicationSpecification = value
}
/**
* @param value An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("wqrrfblnxreegpun")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("nwhjarwdrbokpxem")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("sconpfudrqqlghgf")
public suspend fun tags(values: List