ClusterInstance

class ClusterInstance : KotlinCustomResource

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

Properties

Link copied to clipboard

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

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of cluster instance

Link copied to clipboard

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

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val dbiResourceId: Output<String>

The region-unique, immutable identifier for the DB instance.

Link copied to clipboard

The DB subnet group to associate with this DB instance.

Link copied to clipboard

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 endpoint: Output<String>

The DNS address for this instance. May not be writable

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

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

Link copied to clipboard
val engineVersion: Output<String>

The database engine version

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identifier: Output<String>

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

Link copied to clipboard

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

Link copied to clipboard
val instanceClass: Output<String>

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 kmsKeyId: Output<String>

The ARN for the KMS encryption key if one is set to the cluster.

Link copied to clipboard

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 port: Output<Int>

The database port

Link copied to clipboard

The daily time range during which automated backups are created if automated backups are enabled.

Link copied to clipboard

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>?

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
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies whether the DB cluster is encrypted.

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val writer: Output<Boolean>

Boolean indicating if this instance is writable. False indicates this instance is a read replica.