1. Packages
  2. AWS
  3. API Docs
  4. docdb
  5. ClusterInstance
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi

    Provides an DocumentDB Cluster Resource Instance. A Cluster Instance Resource defines attributes that are specific to a single instance in a DocumentDB Cluster.

    You do not designate a primary and subsequent replicas. Instead, you simply add DocumentDB Instances and DocumentDB manages the replication. You can use the count 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

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const _default = new aws.docdb.Cluster("default", {
        clusterIdentifier: "docdb-cluster-demo",
        availabilityZones: [
            "us-west-2a",
            "us-west-2b",
            "us-west-2c",
        ],
        masterUsername: "foo",
        masterPassword: "barbut8chars",
    });
    const clusterInstances: aws.docdb.ClusterInstance[] = [];
    for (const range = {value: 0}; range.value < 2; range.value++) {
        clusterInstances.push(new aws.docdb.ClusterInstance(`cluster_instances-${range.value}`, {
            identifier: `docdb-cluster-demo-${range.value}`,
            clusterIdentifier: _default.id,
            instanceClass: "db.r5.large",
        }));
    }
    
    import pulumi
    import pulumi_aws as aws
    
    default = aws.docdb.Cluster("default",
        cluster_identifier="docdb-cluster-demo",
        availability_zones=[
            "us-west-2a",
            "us-west-2b",
            "us-west-2c",
        ],
        master_username="foo",
        master_password="barbut8chars")
    cluster_instances = []
    for range in [{"value": i} for i in range(0, 2)]:
        cluster_instances.append(aws.docdb.ClusterInstance(f"cluster_instances-{range['value']}",
            identifier=f"docdb-cluster-demo-{range['value']}",
            cluster_identifier=default.id,
            instance_class="db.r5.large"))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/docdb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := docdb.NewCluster(ctx, "default", &docdb.ClusterArgs{
    			ClusterIdentifier: pulumi.String("docdb-cluster-demo"),
    			AvailabilityZones: pulumi.StringArray{
    				pulumi.String("us-west-2a"),
    				pulumi.String("us-west-2b"),
    				pulumi.String("us-west-2c"),
    			},
    			MasterUsername: pulumi.String("foo"),
    			MasterPassword: pulumi.String("barbut8chars"),
    		})
    		if err != nil {
    			return err
    		}
    		var clusterInstances []*docdb.ClusterInstance
    		for index := 0; index < 2; index++ {
    			key0 := index
    			val0 := index
    			__res, err := docdb.NewClusterInstance(ctx, fmt.Sprintf("cluster_instances-%v", key0), &docdb.ClusterInstanceArgs{
    				Identifier:        pulumi.Sprintf("docdb-cluster-demo-%v", val0),
    				ClusterIdentifier: _default.ID(),
    				InstanceClass:     pulumi.String("db.r5.large"),
    			})
    			if err != nil {
    				return err
    			}
    			clusterInstances = append(clusterInstances, __res)
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Aws.DocDB.Cluster("default", new()
        {
            ClusterIdentifier = "docdb-cluster-demo",
            AvailabilityZones = new[]
            {
                "us-west-2a",
                "us-west-2b",
                "us-west-2c",
            },
            MasterUsername = "foo",
            MasterPassword = "barbut8chars",
        });
    
        var clusterInstances = new List<Aws.DocDB.ClusterInstance>();
        for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            clusterInstances.Add(new Aws.DocDB.ClusterInstance($"cluster_instances-{range.Value}", new()
            {
                Identifier = $"docdb-cluster-demo-{range.Value}",
                ClusterIdentifier = @default.Id,
                InstanceClass = "db.r5.large",
            }));
        }
    });
    
    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());
    
            
    }
        }
    }
    
    resources:
      clusterInstances:
        type: aws:docdb:ClusterInstance
        name: cluster_instances
        properties:
          identifier: docdb-cluster-demo-${range.value}
          clusterIdentifier: ${default.id}
          instanceClass: db.r5.large
        options: {}
      default:
        type: aws:docdb:Cluster
        properties:
          clusterIdentifier: docdb-cluster-demo
          availabilityZones:
            - us-west-2a
            - us-west-2b
            - us-west-2c
          masterUsername: foo
          masterPassword: barbut8chars
    

    Create ClusterInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClusterInstance(name: string, args: ClusterInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def ClusterInstance(resource_name: str,
                        args: ClusterInstanceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClusterInstance(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        cluster_identifier: Optional[str] = None,
                        instance_class: Optional[str] = None,
                        engine: Optional[str] = None,
                        identifier: Optional[str] = None,
                        certificate_rotation_restart: Optional[str] = None,
                        availability_zone: Optional[str] = None,
                        copy_tags_to_snapshot: Optional[bool] = None,
                        enable_performance_insights: Optional[bool] = None,
                        apply_immediately: Optional[bool] = None,
                        ca_cert_identifier: Optional[str] = None,
                        identifier_prefix: Optional[str] = None,
                        auto_minor_version_upgrade: Optional[bool] = None,
                        performance_insights_kms_key_id: Optional[str] = None,
                        preferred_maintenance_window: Optional[str] = None,
                        promotion_tier: Optional[int] = None,
                        region: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewClusterInstance(ctx *Context, name string, args ClusterInstanceArgs, opts ...ResourceOption) (*ClusterInstance, error)
    public ClusterInstance(string name, ClusterInstanceArgs args, CustomResourceOptions? opts = null)
    public ClusterInstance(String name, ClusterInstanceArgs args)
    public ClusterInstance(String name, ClusterInstanceArgs args, CustomResourceOptions options)
    
    type: aws:docdb:ClusterInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClusterInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClusterInstanceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClusterInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var clusterInstanceResource = new Aws.DocDB.ClusterInstance("clusterInstanceResource", new()
    {
        ClusterIdentifier = "string",
        InstanceClass = "string",
        Engine = "string",
        Identifier = "string",
        CertificateRotationRestart = "string",
        AvailabilityZone = "string",
        CopyTagsToSnapshot = false,
        EnablePerformanceInsights = false,
        ApplyImmediately = false,
        CaCertIdentifier = "string",
        IdentifierPrefix = "string",
        AutoMinorVersionUpgrade = false,
        PerformanceInsightsKmsKeyId = "string",
        PreferredMaintenanceWindow = "string",
        PromotionTier = 0,
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := docdb.NewClusterInstance(ctx, "clusterInstanceResource", &docdb.ClusterInstanceArgs{
    	ClusterIdentifier:           pulumi.String("string"),
    	InstanceClass:               pulumi.String("string"),
    	Engine:                      pulumi.String("string"),
    	Identifier:                  pulumi.String("string"),
    	CertificateRotationRestart:  pulumi.String("string"),
    	AvailabilityZone:            pulumi.String("string"),
    	CopyTagsToSnapshot:          pulumi.Bool(false),
    	EnablePerformanceInsights:   pulumi.Bool(false),
    	ApplyImmediately:            pulumi.Bool(false),
    	CaCertIdentifier:            pulumi.String("string"),
    	IdentifierPrefix:            pulumi.String("string"),
    	AutoMinorVersionUpgrade:     pulumi.Bool(false),
    	PerformanceInsightsKmsKeyId: pulumi.String("string"),
    	PreferredMaintenanceWindow:  pulumi.String("string"),
    	PromotionTier:               pulumi.Int(0),
    	Region:                      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var clusterInstanceResource = new com.pulumi.aws.docdb.ClusterInstance("clusterInstanceResource", com.pulumi.aws.docdb.ClusterInstanceArgs.builder()
        .clusterIdentifier("string")
        .instanceClass("string")
        .engine("string")
        .identifier("string")
        .certificateRotationRestart("string")
        .availabilityZone("string")
        .copyTagsToSnapshot(false)
        .enablePerformanceInsights(false)
        .applyImmediately(false)
        .caCertIdentifier("string")
        .identifierPrefix("string")
        .autoMinorVersionUpgrade(false)
        .performanceInsightsKmsKeyId("string")
        .preferredMaintenanceWindow("string")
        .promotionTier(0)
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    cluster_instance_resource = aws.docdb.ClusterInstance("clusterInstanceResource",
        cluster_identifier="string",
        instance_class="string",
        engine="string",
        identifier="string",
        certificate_rotation_restart="string",
        availability_zone="string",
        copy_tags_to_snapshot=False,
        enable_performance_insights=False,
        apply_immediately=False,
        ca_cert_identifier="string",
        identifier_prefix="string",
        auto_minor_version_upgrade=False,
        performance_insights_kms_key_id="string",
        preferred_maintenance_window="string",
        promotion_tier=0,
        region="string",
        tags={
            "string": "string",
        })
    
    const clusterInstanceResource = new aws.docdb.ClusterInstance("clusterInstanceResource", {
        clusterIdentifier: "string",
        instanceClass: "string",
        engine: "string",
        identifier: "string",
        certificateRotationRestart: "string",
        availabilityZone: "string",
        copyTagsToSnapshot: false,
        enablePerformanceInsights: false,
        applyImmediately: false,
        caCertIdentifier: "string",
        identifierPrefix: "string",
        autoMinorVersionUpgrade: false,
        performanceInsightsKmsKeyId: "string",
        preferredMaintenanceWindow: "string",
        promotionTier: 0,
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:docdb:ClusterInstance
    properties:
        applyImmediately: false
        autoMinorVersionUpgrade: false
        availabilityZone: string
        caCertIdentifier: string
        certificateRotationRestart: string
        clusterIdentifier: string
        copyTagsToSnapshot: false
        enablePerformanceInsights: false
        engine: string
        identifier: string
        identifierPrefix: string
        instanceClass: string
        performanceInsightsKmsKeyId: string
        preferredMaintenanceWindow: string
        promotionTier: 0
        region: string
        tags:
            string: string
    

    ClusterInstance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClusterInstance resource accepts the following input properties:

    ClusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    InstanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    ApplyImmediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    AutoMinorVersionUpgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    AvailabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    CaCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    CertificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    CopyTagsToSnapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    EnablePerformanceInsights bool
    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.
    Engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    Identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    IdentifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    PerformanceInsightsKmsKeyId string
    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.
    PreferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    PromotionTier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    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.
    ClusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    InstanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    ApplyImmediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    AutoMinorVersionUpgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    AvailabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    CaCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    CertificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    CopyTagsToSnapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    EnablePerformanceInsights bool
    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.
    Engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    Identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    IdentifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    PerformanceInsightsKmsKeyId string
    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.
    PreferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    PromotionTier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    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.
    clusterIdentifier String
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    instanceClass String
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    applyImmediately Boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    autoMinorVersionUpgrade Boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone String
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier String
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart String
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    copyTagsToSnapshot Boolean
    Copy all DB instance tags to snapshots. Default is false.
    enablePerformanceInsights Boolean
    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.
    engine String
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    identifier String
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix String
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    performanceInsightsKmsKeyId String
    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.
    preferredMaintenanceWindow String
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier Integer
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    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.
    clusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    instanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    applyImmediately boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    autoMinorVersionUpgrade boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    copyTagsToSnapshot boolean
    Copy all DB instance tags to snapshots. Default is false.
    enablePerformanceInsights boolean
    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.
    engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    performanceInsightsKmsKeyId string
    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.
    preferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier number
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    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.
    cluster_identifier str
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    instance_class str
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    apply_immediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    auto_minor_version_upgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availability_zone str
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    ca_cert_identifier str
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificate_rotation_restart str
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    copy_tags_to_snapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    enable_performance_insights bool
    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.
    engine str
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    identifier str
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifier_prefix str
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    performance_insights_kms_key_id str
    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.
    preferred_maintenance_window str
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotion_tier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    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.
    clusterIdentifier String
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    instanceClass String
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    applyImmediately Boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    autoMinorVersionUpgrade Boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone String
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier String
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart String
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    copyTagsToSnapshot Boolean
    Copy all DB instance tags to snapshots. Default is false.
    enablePerformanceInsights Boolean
    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.
    engine String
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    identifier String
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix String
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    performanceInsightsKmsKeyId String
    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.
    preferredMaintenanceWindow String
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier Number
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClusterInstance resource produces the following output properties:

    Arn string
    ARN of cluster instance
    DbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    DbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    Endpoint string
    DNS address for this instance. May not be writable
    EngineVersion string
    Database engine version
    Id string
    The provider-assigned unique ID for this managed resource.
    KmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    Port int
    Database port
    PreferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    PubliclyAccessible bool
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    Arn string
    ARN of cluster instance
    DbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    DbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    Endpoint string
    DNS address for this instance. May not be writable
    EngineVersion string
    Database engine version
    Id string
    The provider-assigned unique ID for this managed resource.
    KmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    Port int
    Database port
    PreferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    PubliclyAccessible bool
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    arn String
    ARN of cluster instance
    dbSubnetGroupName String
    DB subnet group to associate with this DB instance.
    dbiResourceId String
    Region-unique, immutable identifier for the DB instance.
    endpoint String
    DNS address for this instance. May not be writable
    engineVersion String
    Database engine version
    id String
    The provider-assigned unique ID for this managed resource.
    kmsKeyId String
    ARN for the KMS encryption key if one is set to the cluster.
    port Integer
    Database port
    preferredBackupWindow String
    Daily time range during which automated backups are created if automated backups are enabled.
    publiclyAccessible Boolean
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer Boolean
    Whether this instance is writable. False indicates this instance is a read replica.
    arn string
    ARN of cluster instance
    dbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    dbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    endpoint string
    DNS address for this instance. May not be writable
    engineVersion string
    Database engine version
    id string
    The provider-assigned unique ID for this managed resource.
    kmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    port number
    Database port
    preferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    publiclyAccessible boolean
    storageEncrypted boolean
    Whether the DB cluster is encrypted.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer boolean
    Whether this instance is writable. False indicates this instance is a read replica.
    arn str
    ARN of cluster instance
    db_subnet_group_name str
    DB subnet group to associate with this DB instance.
    dbi_resource_id str
    Region-unique, immutable identifier for the DB instance.
    endpoint str
    DNS address for this instance. May not be writable
    engine_version str
    Database engine version
    id str
    The provider-assigned unique ID for this managed resource.
    kms_key_id str
    ARN for the KMS encryption key if one is set to the cluster.
    port int
    Database port
    preferred_backup_window str
    Daily time range during which automated backups are created if automated backups are enabled.
    publicly_accessible bool
    storage_encrypted bool
    Whether the DB cluster is encrypted.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    arn String
    ARN of cluster instance
    dbSubnetGroupName String
    DB subnet group to associate with this DB instance.
    dbiResourceId String
    Region-unique, immutable identifier for the DB instance.
    endpoint String
    DNS address for this instance. May not be writable
    engineVersion String
    Database engine version
    id String
    The provider-assigned unique ID for this managed resource.
    kmsKeyId String
    ARN for the KMS encryption key if one is set to the cluster.
    port Number
    Database port
    preferredBackupWindow String
    Daily time range during which automated backups are created if automated backups are enabled.
    publiclyAccessible Boolean
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer Boolean
    Whether this instance is writable. False indicates this instance is a read replica.

    Look up Existing ClusterInstance Resource

    Get an existing ClusterInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClusterInstanceState, opts?: CustomResourceOptions): ClusterInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            apply_immediately: Optional[bool] = None,
            arn: Optional[str] = None,
            auto_minor_version_upgrade: Optional[bool] = None,
            availability_zone: Optional[str] = None,
            ca_cert_identifier: Optional[str] = None,
            certificate_rotation_restart: Optional[str] = None,
            cluster_identifier: Optional[str] = None,
            copy_tags_to_snapshot: Optional[bool] = None,
            db_subnet_group_name: Optional[str] = None,
            dbi_resource_id: Optional[str] = None,
            enable_performance_insights: Optional[bool] = None,
            endpoint: Optional[str] = None,
            engine: Optional[str] = None,
            engine_version: Optional[str] = None,
            identifier: Optional[str] = None,
            identifier_prefix: Optional[str] = None,
            instance_class: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            performance_insights_kms_key_id: Optional[str] = None,
            port: Optional[int] = None,
            preferred_backup_window: Optional[str] = None,
            preferred_maintenance_window: Optional[str] = None,
            promotion_tier: Optional[int] = None,
            publicly_accessible: Optional[bool] = None,
            region: Optional[str] = None,
            storage_encrypted: Optional[bool] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            writer: Optional[bool] = None) -> ClusterInstance
    func GetClusterInstance(ctx *Context, name string, id IDInput, state *ClusterInstanceState, opts ...ResourceOption) (*ClusterInstance, error)
    public static ClusterInstance Get(string name, Input<string> id, ClusterInstanceState? state, CustomResourceOptions? opts = null)
    public static ClusterInstance get(String name, Output<String> id, ClusterInstanceState state, CustomResourceOptions options)
    resources:  _:    type: aws:docdb:ClusterInstance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplyImmediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    Arn string
    ARN of cluster instance
    AutoMinorVersionUpgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    AvailabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    CaCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    CertificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    ClusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    CopyTagsToSnapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    DbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    DbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    EnablePerformanceInsights bool
    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.
    Endpoint string
    DNS address for this instance. May not be writable
    Engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    EngineVersion string
    Database engine version
    Identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    IdentifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    InstanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    KmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    PerformanceInsightsKmsKeyId string
    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.
    Port int
    Database port
    PreferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    PreferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    PromotionTier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    PubliclyAccessible bool
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    Tags Dictionary<string, string>
    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.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    ApplyImmediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    Arn string
    ARN of cluster instance
    AutoMinorVersionUpgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    AvailabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    CaCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    CertificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    ClusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    CopyTagsToSnapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    DbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    DbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    EnablePerformanceInsights bool
    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.
    Endpoint string
    DNS address for this instance. May not be writable
    Engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    EngineVersion string
    Database engine version
    Identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    IdentifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    InstanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    KmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    PerformanceInsightsKmsKeyId string
    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.
    Port int
    Database port
    PreferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    PreferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    PromotionTier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    PubliclyAccessible bool
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    Tags map[string]string
    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.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    applyImmediately Boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    arn String
    ARN of cluster instance
    autoMinorVersionUpgrade Boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone String
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier String
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart String
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    clusterIdentifier String
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    copyTagsToSnapshot Boolean
    Copy all DB instance tags to snapshots. Default is false.
    dbSubnetGroupName String
    DB subnet group to associate with this DB instance.
    dbiResourceId String
    Region-unique, immutable identifier for the DB instance.
    enablePerformanceInsights Boolean
    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.
    endpoint String
    DNS address for this instance. May not be writable
    engine String
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    engineVersion String
    Database engine version
    identifier String
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix String
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    instanceClass String
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    kmsKeyId String
    ARN for the KMS encryption key if one is set to the cluster.
    performanceInsightsKmsKeyId String
    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.
    port Integer
    Database port
    preferredBackupWindow String
    Daily time range during which automated backups are created if automated backups are enabled.
    preferredMaintenanceWindow String
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier Integer
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    publiclyAccessible Boolean
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tags Map<String,String>
    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.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer Boolean
    Whether this instance is writable. False indicates this instance is a read replica.
    applyImmediately boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    arn string
    ARN of cluster instance
    autoMinorVersionUpgrade boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone string
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier string
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart string
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    clusterIdentifier string
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    copyTagsToSnapshot boolean
    Copy all DB instance tags to snapshots. Default is false.
    dbSubnetGroupName string
    DB subnet group to associate with this DB instance.
    dbiResourceId string
    Region-unique, immutable identifier for the DB instance.
    enablePerformanceInsights boolean
    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.
    endpoint string
    DNS address for this instance. May not be writable
    engine string
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    engineVersion string
    Database engine version
    identifier string
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix string
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    instanceClass string
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    kmsKeyId string
    ARN for the KMS encryption key if one is set to the cluster.
    performanceInsightsKmsKeyId string
    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.
    port number
    Database port
    preferredBackupWindow string
    Daily time range during which automated backups are created if automated backups are enabled.
    preferredMaintenanceWindow string
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier number
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    publiclyAccessible boolean
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    storageEncrypted boolean
    Whether the DB cluster is encrypted.
    tags {[key: string]: string}
    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.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer boolean
    Whether this instance is writable. False indicates this instance is a read replica.
    apply_immediately bool
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    arn str
    ARN of cluster instance
    auto_minor_version_upgrade bool
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availability_zone str
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    ca_cert_identifier str
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificate_rotation_restart str
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    cluster_identifier str
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    copy_tags_to_snapshot bool
    Copy all DB instance tags to snapshots. Default is false.
    db_subnet_group_name str
    DB subnet group to associate with this DB instance.
    dbi_resource_id str
    Region-unique, immutable identifier for the DB instance.
    enable_performance_insights bool
    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.
    endpoint str
    DNS address for this instance. May not be writable
    engine str
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    engine_version str
    Database engine version
    identifier str
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifier_prefix str
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    instance_class str
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    kms_key_id str
    ARN for the KMS encryption key if one is set to the cluster.
    performance_insights_kms_key_id str
    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.
    port int
    Database port
    preferred_backup_window str
    Daily time range during which automated backups are created if automated backups are enabled.
    preferred_maintenance_window str
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotion_tier int
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    publicly_accessible bool
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    storage_encrypted bool
    Whether the DB cluster is encrypted.
    tags Mapping[str, str]
    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.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer bool
    Whether this instance is writable. False indicates this instance is a read replica.
    applyImmediately Boolean
    Whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.
    arn String
    ARN of cluster instance
    autoMinorVersionUpgrade Boolean
    Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true.
    availabilityZone String
    EC2 Availability Zone that the DB instance is created in. See docs about the details.
    caCertIdentifier String
    Identifier of the certificate authority (CA) certificate for the DB instance.
    certificateRotationRestart String
    Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to false only if you are not using SSL/TLS to connect to the DB instance.
    clusterIdentifier String
    Identifier of the aws.docdb.Cluster in which to launch this instance.
    copyTagsToSnapshot Boolean
    Copy all DB instance tags to snapshots. Default is false.
    dbSubnetGroupName String
    DB subnet group to associate with this DB instance.
    dbiResourceId String
    Region-unique, immutable identifier for the DB instance.
    enablePerformanceInsights Boolean
    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.
    endpoint String
    DNS address for this instance. May not be writable
    engine String
    Name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb.
    engineVersion String
    Database engine version
    identifier String
    The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
    identifierPrefix String
    Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
    instanceClass String
    Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the aws.docdb.getOrderableDbInstance data source. See AWS Documentation for complete details.
    kmsKeyId String
    ARN for the KMS encryption key if one is set to the cluster.
    performanceInsightsKmsKeyId String
    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.
    port Number
    Database port
    preferredBackupWindow String
    Daily time range during which automated backups are created if automated backups are enabled.
    preferredMaintenanceWindow String
    Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
    promotionTier Number
    Failover Priority setting on instance level. Default 0. The reader who has lower tier has higher priority to get promoter to writer.
    publiclyAccessible Boolean
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tags Map<String>
    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.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    writer Boolean
    Whether this instance is writable. False indicates this instance is a read replica.

    Import

    Using pulumi import, import DocumentDB Cluster Instances using the identifier. For example:

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.22.0
    published on Wednesday, Mar 11, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.