Try AWS Native preview for resources not in the classic version.
aws.docdb.ClusterInstance
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an DocumentDB Cluster Resource Instance. A Cluster Instance Resource defines attributes that are specific to a single instance in a [DocumentDB Cluster][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 [count][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
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/v6/go/aws/docdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, 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.String(fmt.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,
enable_performance_insights: Optional[bool] = None,
ca_cert_identifier: Optional[str] = None,
availability_zone: Optional[str] = None,
copy_tags_to_snapshot: Optional[bool] = None,
apply_immediately: Optional[bool] = None,
engine: Optional[str] = None,
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,
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",
EnablePerformanceInsights = false,
CaCertIdentifier = "string",
AvailabilityZone = "string",
CopyTagsToSnapshot = false,
ApplyImmediately = false,
Engine = "string",
Identifier = "string",
IdentifierPrefix = "string",
AutoMinorVersionUpgrade = false,
PerformanceInsightsKmsKeyId = "string",
PreferredMaintenanceWindow = "string",
PromotionTier = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := docdb.NewClusterInstance(ctx, "clusterInstanceResource", &docdb.ClusterInstanceArgs{
ClusterIdentifier: pulumi.String("string"),
InstanceClass: pulumi.String("string"),
EnablePerformanceInsights: pulumi.Bool(false),
CaCertIdentifier: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
CopyTagsToSnapshot: pulumi.Bool(false),
ApplyImmediately: pulumi.Bool(false),
Engine: pulumi.String("string"),
Identifier: pulumi.String("string"),
IdentifierPrefix: pulumi.String("string"),
AutoMinorVersionUpgrade: pulumi.Bool(false),
PerformanceInsightsKmsKeyId: pulumi.String("string"),
PreferredMaintenanceWindow: pulumi.String("string"),
PromotionTier: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var clusterInstanceResource = new ClusterInstance("clusterInstanceResource", ClusterInstanceArgs.builder()
.clusterIdentifier("string")
.instanceClass("string")
.enablePerformanceInsights(false)
.caCertIdentifier("string")
.availabilityZone("string")
.copyTagsToSnapshot(false)
.applyImmediately(false)
.engine("string")
.identifier("string")
.identifierPrefix("string")
.autoMinorVersionUpgrade(false)
.performanceInsightsKmsKeyId("string")
.preferredMaintenanceWindow("string")
.promotionTier(0)
.tags(Map.of("string", "string"))
.build());
cluster_instance_resource = aws.docdb.ClusterInstance("clusterInstanceResource",
cluster_identifier="string",
instance_class="string",
enable_performance_insights=False,
ca_cert_identifier="string",
availability_zone="string",
copy_tags_to_snapshot=False,
apply_immediately=False,
engine="string",
identifier="string",
identifier_prefix="string",
auto_minor_version_upgrade=False,
performance_insights_kms_key_id="string",
preferred_maintenance_window="string",
promotion_tier=0,
tags={
"string": "string",
})
const clusterInstanceResource = new aws.docdb.ClusterInstance("clusterInstanceResource", {
clusterIdentifier: "string",
instanceClass: "string",
enablePerformanceInsights: false,
caCertIdentifier: "string",
availabilityZone: "string",
copyTagsToSnapshot: false,
applyImmediately: false,
engine: "string",
identifier: "string",
identifierPrefix: "string",
autoMinorVersionUpgrade: false,
performanceInsightsKmsKeyId: "string",
preferredMaintenanceWindow: "string",
promotionTier: 0,
tags: {
string: "string",
},
});
type: aws:docdb:ClusterInstance
properties:
applyImmediately: false
autoMinorVersionUpgrade: false
availabilityZone: string
caCertIdentifier: string
clusterIdentifier: string
copyTagsToSnapshot: false
enablePerformanceInsights: false
engine: string
identifier: string
identifierPrefix: string
instanceClass: string
performanceInsightsKmsKeyId: string
preferredMaintenanceWindow: string
promotionTier: 0
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
The ClusterInstance resource accepts the following input properties:
- Cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - Instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- Apply
Immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - Auto
Minor boolVersion Upgrade - 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
. - Availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - Enable
Performance boolInsights - 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. - Engine string
- The 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.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - Performance
Insights stringKms Key Id - 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.
- Preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- Dictionary<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.
- Cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - Instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- Apply
Immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - Auto
Minor boolVersion Upgrade - 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
. - Availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - Enable
Performance boolInsights - 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. - Engine string
- The 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.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - Performance
Insights stringKms Key Id - 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.
- Preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- 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.
- cluster
Identifier String - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- apply
Immediately Boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - auto
Minor BooleanVersion Upgrade - 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
. - availability
Zone String - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- Boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - enable
Performance BooleanInsights - 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. - engine String
- The 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.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - performance
Insights StringKms Key Id - 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.
- preferred
Maintenance StringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Integer - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- 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.
- cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- apply
Immediately boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - auto
Minor booleanVersion Upgrade - 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
. - availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - enable
Performance booleanInsights - 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. - engine string
- The 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.
- identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - performance
Insights stringKms Key Id - 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.
- preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier number - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- {[key: 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.
- cluster_
identifier str - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - instance_
class str - 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- apply_
immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - auto_
minor_ boolversion_ upgrade - 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
. - availability_
zone str - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca_
cert_ stridentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - enable_
performance_ boolinsights - 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. - engine str
- The 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_ strkms_ key_ id - 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.
- preferred_
maintenance_ strwindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion_
tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- Mapping[str, str]
- 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.
- cluster
Identifier String - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- apply
Immediately Boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - auto
Minor BooleanVersion Upgrade - 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
. - availability
Zone String - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- Boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - enable
Performance BooleanInsights - 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. - engine String
- The 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.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - performance
Insights StringKms Key Id - 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.
- preferred
Maintenance StringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Number - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterInstance resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of cluster instance
- Db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- Endpoint string
- The DNS address for this instance. May not be writable
- Engine
Version string - The database engine version
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- Port int
- The database port
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- Publicly
Accessible bool - Storage
Encrypted bool - Specifies whether the DB cluster is encrypted.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- Arn string
- Amazon Resource Name (ARN) of cluster instance
- Db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- Endpoint string
- The DNS address for this instance. May not be writable
- Engine
Version string - The database engine version
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- Port int
- The database port
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- Publicly
Accessible bool - Storage
Encrypted bool - Specifies whether the DB cluster is encrypted.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- arn String
- Amazon Resource Name (ARN) of cluster instance
- db
Subnet StringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource StringId - The region-unique, immutable identifier for the DB instance.
- endpoint String
- The DNS address for this instance. May not be writable
- engine
Version String - The database engine version
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The ARN for the KMS encryption key if one is set to the cluster.
- port Integer
- The database port
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Specifies whether the DB cluster is encrypted.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer Boolean
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- arn string
- Amazon Resource Name (ARN) of cluster instance
- db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- endpoint string
- The DNS address for this instance. May not be writable
- engine
Version string - The database engine version
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- port number
- The database port
- preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible boolean - storage
Encrypted boolean - Specifies whether the DB cluster is encrypted.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer boolean
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- arn str
- Amazon Resource Name (ARN) of cluster instance
- db_
subnet_ strgroup_ name - The DB subnet group to associate with this DB instance.
- dbi_
resource_ strid - The region-unique, immutable identifier for the DB instance.
- endpoint str
- The DNS address for this instance. May not be writable
- engine_
version str - The database engine version
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid - The ARN for the KMS encryption key if one is set to the cluster.
- port int
- The database port
- preferred_
backup_ strwindow - The daily time range during which automated backups are created if automated backups are enabled.
- publicly_
accessible bool - storage_
encrypted bool - Specifies whether the DB cluster is encrypted.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- arn String
- Amazon Resource Name (ARN) of cluster instance
- db
Subnet StringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource StringId - The region-unique, immutable identifier for the DB instance.
- endpoint String
- The DNS address for this instance. May not be writable
- engine
Version String - The database engine version
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The ARN for the KMS encryption key if one is set to the cluster.
- port Number
- The database port
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Specifies whether the DB cluster is encrypted.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer Boolean
- Boolean indicating if 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,
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,
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)
Resource lookup is not supported in YAML
- 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.
- Apply
Immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - Arn string
- Amazon Resource Name (ARN) of cluster instance
- Auto
Minor boolVersion Upgrade - 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
. - Availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- Cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - Db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- Enable
Performance boolInsights - 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. - Endpoint string
- The DNS address for this instance. May not be writable
- Engine string
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - Engine
Version string - The database engine version
- Identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - Instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- Kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- Performance
Insights stringKms Key Id - 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.
- Port int
- The database port
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- Preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- Publicly
Accessible bool - Storage
Encrypted bool - Specifies whether the DB cluster is encrypted.
- Dictionary<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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- Apply
Immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - Arn string
- Amazon Resource Name (ARN) of cluster instance
- Auto
Minor boolVersion Upgrade - 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
. - Availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- Cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - Db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- Enable
Performance boolInsights - 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. - Endpoint string
- The DNS address for this instance. May not be writable
- Engine string
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - Engine
Version string - The database engine version
- Identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - Instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- Kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- Performance
Insights stringKms Key Id - 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.
- Port int
- The database port
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- Preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- Publicly
Accessible bool - Storage
Encrypted bool - Specifies whether the DB cluster is encrypted.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- apply
Immediately Boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - arn String
- Amazon Resource Name (ARN) of cluster instance
- auto
Minor BooleanVersion Upgrade - 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
. - availability
Zone String - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- cluster
Identifier String - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - Boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - db
Subnet StringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource StringId - The region-unique, immutable identifier for the DB instance.
- enable
Performance BooleanInsights - 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. - endpoint String
- The DNS address for this instance. May not be writable
- engine String
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - engine
Version String - The database engine version
- identifier String
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- kms
Key StringId - The ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights StringKms Key Id - 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.
- port Integer
- The database port
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance StringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Integer - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Specifies whether the DB cluster is encrypted.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer Boolean
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- apply
Immediately boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - arn string
- Amazon Resource Name (ARN) of cluster instance
- auto
Minor booleanVersion Upgrade - 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
. - availability
Zone string - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- cluster
Identifier string - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - db
Subnet stringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource stringId - The region-unique, immutable identifier for the DB instance.
- enable
Performance booleanInsights - 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. - endpoint string
- The DNS address for this instance. May not be writable
- engine string
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - engine
Version string - The database engine version
- identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- kms
Key stringId - The ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights stringKms Key Id - 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.
- port number
- The database port
- preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance stringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier number - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- publicly
Accessible boolean - storage
Encrypted boolean - Specifies whether the DB cluster is encrypted.
- {[key: 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer boolean
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- apply_
immediately bool - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - arn str
- Amazon Resource Name (ARN) of cluster instance
- auto_
minor_ boolversion_ upgrade - 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
. - availability_
zone str - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca_
cert_ stridentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- cluster_
identifier str - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - bool
- Copy all DB instance
tags
to snapshots. Default isfalse
. - db_
subnet_ strgroup_ name - The DB subnet group to associate with this DB instance.
- dbi_
resource_ strid - The region-unique, immutable identifier for the DB instance.
- enable_
performance_ boolinsights - 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. - endpoint str
- The DNS address for this instance. May not be writable
- engine str
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - engine_
version str - The 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 - 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- kms_
key_ strid - The ARN for the KMS encryption key if one is set to the cluster.
- performance_
insights_ strkms_ key_ id - 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.
- port int
- The database port
- preferred_
backup_ strwindow - The daily time range during which automated backups are created if automated backups are enabled.
- preferred_
maintenance_ strwindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion_
tier int - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- publicly_
accessible bool - storage_
encrypted bool - Specifies whether the DB cluster is encrypted.
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer bool
- Boolean indicating if this instance is writable.
False
indicates this instance is a read replica.
- apply
Immediately Boolean - Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false
. - arn String
- Amazon Resource Name (ARN) of cluster instance
- auto
Minor BooleanVersion Upgrade - 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
. - availability
Zone String - The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - The identifier of the certificate authority (CA) certificate for the DB instance.
- cluster
Identifier String - The identifier of the
aws.docdb.Cluster
in which to launch this instance. - Boolean
- Copy all DB instance
tags
to snapshots. Default isfalse
. - db
Subnet StringGroup Name - The DB subnet group to associate with this DB instance.
- dbi
Resource StringId - The region-unique, immutable identifier for the DB instance.
- enable
Performance BooleanInsights - 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. - endpoint String
- The DNS address for this instance. May not be writable
- engine String
- The name of the database engine to be used for the DocumentDB instance. Defaults to
docdb
. Valid Values:docdb
. - engine
Version String - The database engine version
- identifier String
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier
. - instance
Class 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.
- db.r6g.large
- db.r6g.xlarge
- db.r6g.2xlarge
- db.r6g.4xlarge
- db.r6g.8xlarge
- db.r6g.12xlarge
- db.r6g.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.t4g.medium
- db.t3.medium
- kms
Key StringId - The ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights StringKms Key Id - 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.
- port Number
- The database port
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance StringWindow - The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Number - Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Specifies whether the DB cluster is encrypted.
- Map<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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - writer Boolean
- Boolean indicating if 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.
Try AWS Native preview for resources not in the classic version.