com.pulumi.awsnative.cassandra.kotlin.KeyspaceArgs.kt Maven / Gradle / Ivy
@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("ivtvomnvimtcshqs")
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("nfthkqejmdgnrfgj")
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("rslqptdsmxwwcpye")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("dpsxxwuhsyhkkjbk")
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("dmcnrtsjdjjmfmts")
public suspend fun tags(values: List