CfnDBInstanceProps Struct
Properties for defining a CfnDBInstance.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_docdb as docdb } from 'aws-cdk-lib';
const cfnDBInstanceProps: docdb.CfnDBInstanceProps = {
dbClusterIdentifier: 'dbClusterIdentifier',
dbInstanceClass: 'dbInstanceClass',
// the properties below are optional
autoMinorVersionUpgrade: false,
availabilityZone: 'availabilityZone',
caCertificateIdentifier: 'caCertificateIdentifier',
certificateRotationRestart: false,
dbInstanceIdentifier: 'dbInstanceIdentifier',
enablePerformanceInsights: false,
preferredMaintenanceWindow: 'preferredMaintenanceWindow',
tags: [{
key: 'key',
value: 'value',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_docdb as docdb
cfn_db_instance_props = docdb.CfnDBInstanceProps(
db_cluster_identifier="dbClusterIdentifier",
db_instance_class="dbInstanceClass",
# the properties below are optional
auto_minor_version_upgrade=False,
availability_zone="availabilityZone",
ca_certificate_identifier="caCertificateIdentifier",
certificate_rotation_restart=False,
db_instance_identifier="dbInstanceIdentifier",
enable_performance_insights=False,
preferred_maintenance_window="preferredMaintenanceWindow",
tags=[CfnTag(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.docdb.*;
CfnDBInstanceProps cfnDBInstanceProps = CfnDBInstanceProps.builder()
.dbClusterIdentifier("dbClusterIdentifier")
.dbInstanceClass("dbInstanceClass")
// the properties below are optional
.autoMinorVersionUpgrade(false)
.availabilityZone("availabilityZone")
.caCertificateIdentifier("caCertificateIdentifier")
.certificateRotationRestart(false)
.dbInstanceIdentifier("dbInstanceIdentifier")
.enablePerformanceInsights(false)
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DocDB;
var cfnDBInstanceProps = new CfnDBInstanceProps {
DbClusterIdentifier = "dbClusterIdentifier",
DbInstanceClass = "dbInstanceClass",
// the properties below are optional
AutoMinorVersionUpgrade = false,
AvailabilityZone = "availabilityZone",
CaCertificateIdentifier = "caCertificateIdentifier",
CertificateRotationRestart = false,
DbInstanceIdentifier = "dbInstanceIdentifier",
EnablePerformanceInsights = false,
PreferredMaintenanceWindow = "preferredMaintenanceWindow",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnDBInstanceProps := &CfnDBInstanceProps{
DbClusterIdentifier: jsii.String("dbClusterIdentifier"),
DbInstanceClass: jsii.String("dbInstanceClass"),
// the properties below are optional
AutoMinorVersionUpgrade: jsii.Boolean(false),
AvailabilityZone: jsii.String("availabilityZone"),
CaCertificateIdentifier: jsii.String("caCertificateIdentifier"),
CertificateRotationRestart: jsii.Boolean(false),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
EnablePerformanceInsights: jsii.Boolean(false),
PreferredMaintenanceWindow: jsii.String("preferredMaintenanceWindow"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
autoMinorVersionUpgradeoptionalboolean | IResolvableauto_minor_version_upgradeoptionaltyping.Union[bool, IResolvable]autoMinorVersionUpgradeoptionalBooleanAutoMinorVersionUpgradeoptionalboolAutoMinorVersionUpgradeoptionalinterface{} #Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
Default: false
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #Default: A random, system-chosen Availability Zone in the endpoint's AWS Region .
Example: us-east-1d
caCertificateIdentifieroptionalstringca_certificate_identifieroptionalstrcaCertificateIdentifieroptionalStringCaCertificateIdentifieroptionalstringCaCertificateIdentifieroptional*string #certificateRotationRestartoptionalboolean | IResolvablecertificate_rotation_restartoptionaltyping.Union[bool, IResolvable]certificateRotationRestartoptionalBooleanCertificateRotationRestartoptionalboolCertificateRotationRestartoptionalinterface{} #notes
By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.
Set this parameter only if you are not using SSL/TLS to connect to the DB instance.
If you are using SSL/TLS to connect to the DB instance, see Updating Your Amazon DocumentDB TLS Certificates and Encrypting Data in Transit in the Amazon DocumentDB Developer Guide .
dbClusterIdentifierstringdb_cluster_identifierstrdbClusterIdentifierStringDbClusterIdentifierstringDbClusterIdentifier*string required #dbInstanceClassstringdb_instance_classstrdbInstanceClassStringDbInstanceClassstringDbInstanceClass*string required #for example, db.m4.large . If you change the class of an instance there can be some interruption in the cluster's service.
dbInstanceIdentifieroptionalstringdb_instance_identifieroptionalstrdbInstanceIdentifieroptionalStringDbInstanceIdentifieroptionalstringDbInstanceIdentifieroptional*string #Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
enablePerformanceInsightsoptionalboolean | IResolvableenable_performance_insightsoptionaltyping.Union[bool, IResolvable]enablePerformanceInsightsoptionalBooleanEnablePerformanceInsightsoptionalboolEnablePerformanceInsightsoptionalinterface{} #For more information, see Using Amazon Performance Insights .
preferredMaintenanceWindowoptionalstringpreferred_maintenance_windowoptionalstrpreferredMaintenanceWindowoptionalStringPreferredMaintenanceWindowoptionalstringPreferredMaintenanceWindowoptional*string #notes
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.