ClusterInstanceArgs

data class ClusterInstanceArgs(val applyImmediately: Output<Boolean>? = null, val autoMinorVersionUpgrade: Output<Boolean>? = null, val availabilityZone: Output<String>? = null, val caCertIdentifier: Output<String>? = null, val clusterIdentifier: Output<String>? = null, val enablePerformanceInsights: Output<Boolean>? = null, val engine: Output<String>? = null, val identifier: Output<String>? = null, val identifierPrefix: Output<String>? = null, val instanceClass: Output<String>? = null, val performanceInsightsKmsKeyId: Output<String>? = null, val preferredMaintenanceWindow: Output<String>? = null, val promotionTier: Output<Int>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterInstanceArgs>

Provides an DocumentDB Cluster Resource Instance. A Cluster Instance Resource defines attributes that are specific to a single instance in a 1. You do not designate a primary and subsequent replicas. Instead, you simply add DocumentDB Instances and DocumentDB manages the replication. You can use the 3 meta-parameter to make multiple instances and join them all to the same DocumentDB Cluster, or you may specify different Cluster Instance resources with various instance_class sizes.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.docdb.Cluster;
import com.pulumi.aws.docdb.ClusterArgs;
import com.pulumi.aws.docdb.ClusterInstance;
import com.pulumi.aws.docdb.ClusterInstanceArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 default_ = new Cluster("default", ClusterArgs.builder()
.clusterIdentifier("docdb-cluster-demo")
.availabilityZones(
"us-west-2a",
"us-west-2b",
"us-west-2c")
.masterUsername("foo")
.masterPassword("barbut8chars")
.build());
for (var i = 0; i < 2; i++) {
new ClusterInstance("clusterInstances-" + i, ClusterInstanceArgs.builder()
.identifier(String.format("docdb-cluster-demo-%s", range.value()))
.clusterIdentifier(default_.id())
.instanceClass("db.r5.large")
.build());
}
}
}

Import

DocumentDB Cluster Instances can be imported using the identifier, e.g.,

$ pulumi import aws:docdb/clusterInstance:ClusterInstance prod_instance_1 aurora-cluster-instance-1

Constructors

Link copied to clipboard
constructor(applyImmediately: Output<Boolean>? = null, autoMinorVersionUpgrade: Output<Boolean>? = null, availabilityZone: Output<String>? = null, caCertIdentifier: Output<String>? = null, clusterIdentifier: Output<String>? = null, enablePerformanceInsights: Output<Boolean>? = null, engine: Output<String>? = null, identifier: Output<String>? = null, identifierPrefix: Output<String>? = null, instanceClass: Output<String>? = null, performanceInsightsKmsKeyId: Output<String>? = null, preferredMaintenanceWindow: Output<String>? = null, promotionTier: Output<Int>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val applyImmediately: Output<Boolean>? = null

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

Link copied to clipboard
val autoMinorVersionUpgrade: Output<Boolean>? = null

This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.

Link copied to clipboard
val availabilityZone: Output<String>? = null

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

Link copied to clipboard
val caCertIdentifier: Output<String>? = null

(Optional) The identifier of the CA certificate for the DB instance.

Link copied to clipboard
val clusterIdentifier: Output<String>? = null

The identifier of the aws.docdb.Cluster in which to launch this instance.

Link copied to clipboard
val enablePerformanceInsights: Output<Boolean>? = null

A value that indicates whether to enable Performance Insights for the DB Instance. Default false. See docs (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details.

Link copied to clipboard
val engine: Output<String>? = null

The name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.

Link copied to clipboard
val identifier: Output<String>? = null

The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.

Link copied to clipboard
val identifierPrefix: Output<String>? = null

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

Link copied to clipboard
val instanceClass: Output<String>? = null

The instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. DocumentDB currently supports the below instance classes. Please see AWS Documentation for complete details.

Link copied to clipboard
val performanceInsightsKmsKeyId: Output<String>? = null

The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.

Link copied to clipboard
val preferredMaintenanceWindow: Output<String>? = null

The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".

Link copied to clipboard
val promotionTier: Output<Int>? = null

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the instance. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ClusterInstanceArgs