Cluster Args
data class ClusterArgs(val aclName: Output<String>? = null, val autoMinorVersionUpgrade: Output<Boolean>? = null, val dataTiering: Output<Boolean>? = null, val description: Output<String>? = null, val engineVersion: Output<String>? = null, val finalSnapshotName: Output<String>? = null, val kmsKeyArn: Output<String>? = null, val maintenanceWindow: Output<String>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val nodeType: Output<String>? = null, val numReplicasPerShard: Output<Int>? = null, val numShards: Output<Int>? = null, val parameterGroupName: Output<String>? = null, val port: Output<Int>? = null, val securityGroupIds: Output<List<String>>? = null, val snapshotArns: Output<List<String>>? = null, val snapshotName: Output<String>? = null, val snapshotRetentionLimit: Output<Int>? = null, val snapshotWindow: Output<String>? = null, val snsTopicArn: Output<String>? = null, val subnetGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tlsEnabled: Output<Boolean>? = null) : ConvertibleToJava<ClusterArgs>
Provides a MemoryDB Cluster. More information about MemoryDB can be found in the Developer Guide.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.Cluster;
import com.pulumi.aws.memorydb.ClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Cluster("example", ClusterArgs.builder()
.aclName("open-access")
.nodeType("db.t4g.small")
.numShards(2)
.securityGroupIds(aws_security_group.example().id())
.snapshotRetentionLimit(7)
.subnetGroupName(aws_memorydb_subnet_group.example().id())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import a cluster using the name
. For example:
$ pulumi import aws:memorydb/cluster:Cluster example my-cluster
Content copied to clipboard
Constructors
Link copied to clipboard
fun ClusterArgs(aclName: Output<String>? = null, autoMinorVersionUpgrade: Output<Boolean>? = null, dataTiering: Output<Boolean>? = null, description: Output<String>? = null, engineVersion: Output<String>? = null, finalSnapshotName: Output<String>? = null, kmsKeyArn: Output<String>? = null, maintenanceWindow: Output<String>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, nodeType: Output<String>? = null, numReplicasPerShard: Output<Int>? = null, numShards: Output<Int>? = null, parameterGroupName: Output<String>? = null, port: Output<Int>? = null, securityGroupIds: Output<List<String>>? = null, snapshotArns: Output<List<String>>? = null, snapshotName: Output<String>? = null, snapshotRetentionLimit: Output<Int>? = null, snapshotWindow: Output<String>? = null, snsTopicArn: Output<String>? = null, subnetGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, tlsEnabled: Output<Boolean>? = null)
Functions
Properties
Link copied to clipboard
Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
Link copied to clipboard
Link copied to clipboard
The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling. The following arguments are optional: