CfnDBInstanceProps
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_neptune as neptune } from 'aws-cdk-lib';
const cfnDBInstanceProps: neptune.CfnDBInstanceProps = {
dbInstanceClass: 'dbInstanceClass',
// the properties below are optional
allowMajorVersionUpgrade: false,
autoMinorVersionUpgrade: false,
availabilityZone: 'availabilityZone',
dbClusterIdentifier: 'dbClusterIdentifier',
dbInstanceIdentifier: 'dbInstanceIdentifier',
dbParameterGroupName: 'dbParameterGroupName',
dbSnapshotIdentifier: 'dbSnapshotIdentifier',
dbSubnetGroupName: 'dbSubnetGroupName',
preferredMaintenanceWindow: 'preferredMaintenanceWindow',
publiclyAccessible: false,
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_neptune as neptune
cfn_db_instance_props = neptune.CfnDBInstanceProps(
db_instance_class="dbInstanceClass",
# the properties below are optional
allow_major_version_upgrade=False,
auto_minor_version_upgrade=False,
availability_zone="availabilityZone",
db_cluster_identifier="dbClusterIdentifier",
db_instance_identifier="dbInstanceIdentifier",
db_parameter_group_name="dbParameterGroupName",
db_snapshot_identifier="dbSnapshotIdentifier",
db_subnet_group_name="dbSubnetGroupName",
preferred_maintenance_window="preferredMaintenanceWindow",
publicly_accessible=False,
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.neptune.*;
CfnDBInstanceProps cfnDBInstanceProps = CfnDBInstanceProps.builder()
.dbInstanceClass("dbInstanceClass")
// the properties below are optional
.allowMajorVersionUpgrade(false)
.autoMinorVersionUpgrade(false)
.availabilityZone("availabilityZone")
.dbClusterIdentifier("dbClusterIdentifier")
.dbInstanceIdentifier("dbInstanceIdentifier")
.dbParameterGroupName("dbParameterGroupName")
.dbSnapshotIdentifier("dbSnapshotIdentifier")
.dbSubnetGroupName("dbSubnetGroupName")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.publiclyAccessible(false)
.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.Neptune;
var cfnDBInstanceProps = new CfnDBInstanceProps {
DbInstanceClass = "dbInstanceClass",
// the properties below are optional
AllowMajorVersionUpgrade = false,
AutoMinorVersionUpgrade = false,
AvailabilityZone = "availabilityZone",
DbClusterIdentifier = "dbClusterIdentifier",
DbInstanceIdentifier = "dbInstanceIdentifier",
DbParameterGroupName = "dbParameterGroupName",
DbSnapshotIdentifier = "dbSnapshotIdentifier",
DbSubnetGroupName = "dbSubnetGroupName",
PreferredMaintenanceWindow = "preferredMaintenanceWindow",
PubliclyAccessible = false,
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{
DbInstanceClass: jsii.String("dbInstanceClass"),
// the properties below are optional
AllowMajorVersionUpgrade: jsii.Boolean(false),
AutoMinorVersionUpgrade: jsii.Boolean(false),
AvailabilityZone: jsii.String("availabilityZone"),
DbClusterIdentifier: jsii.String("dbClusterIdentifier"),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
DbParameterGroupName: jsii.String("dbParameterGroupName"),
DbSnapshotIdentifier: jsii.String("dbSnapshotIdentifier"),
DbSubnetGroupName: jsii.String("dbSubnetGroupName"),
PreferredMaintenanceWindow: jsii.String("preferredMaintenanceWindow"),
PubliclyAccessible: jsii.Boolean(false),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
allowMajorVersionUpgradeoptionalboolean | IResolvableallow_major_version_upgradeoptionaltyping.Union[bool, IResolvable]allowMajorVersionUpgradeoptionalBooleanAllowMajorVersionUpgradeoptionalboolAllowMajorVersionUpgradeoptionalinterface{} #notes
Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.
When you change this parameter for an existing DB cluster, CloudFormation will replace your existing DB cluster with a new, empty one that uses the engine version you specified.
autoMinorVersionUpgradeoptionalboolean | IResolvableauto_minor_version_upgradeoptionaltyping.Union[bool, IResolvable]autoMinorVersionUpgradeoptionalBooleanAutoMinorVersionUpgradeoptionalboolAutoMinorVersionUpgradeoptionalinterface{} #When updating this property, some interruptions may occur.
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #dbClusterIdentifieroptionalstringdb_cluster_identifieroptionalstrdbClusterIdentifieroptionalStringDbClusterIdentifieroptionalstringDbClusterIdentifieroptional*string #dbInstanceClassstringdb_instance_classstrdbInstanceClassStringDbInstanceClassstringDbInstanceClass*string required #If you update this property, some interruptions may occur.
dbInstanceIdentifieroptionalstringdb_instance_identifieroptionalstrdbInstanceIdentifieroptionalStringDbInstanceIdentifieroptionalstringDbInstanceIdentifieroptional*string #This identifier is the unique key that identifies a DB instance.
dbParameterGroupNameoptionalstringdb_parameter_group_nameoptionalstrdbParameterGroupNameoptionalStringDbParameterGroupNameoptionalstringDbParameterGroupNameoptional*string #notes
If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.
dbSnapshotIdentifieroptionalstringdb_snapshot_identifieroptionalstrdbSnapshotIdentifieroptionalStringDbSnapshotIdentifieroptionalstringDbSnapshotIdentifieroptional*string deprecated #AWS::Neptune::DBInstance does not support restoring from snapshots.
AWS::Neptune::DBCluster does support restoring from snapshots.
dbSubnetGroupNameoptionalstringdb_subnet_group_nameoptionalstrdbSubnetGroupNameoptionalStringDbSubnetGroupNameoptionalstringDbSubnetGroupNameoptional*string #If you update this value, the new subnet group must be a subnet group in a new virtual private cloud (VPC).
preferredMaintenanceWindowoptionalstringpreferred_maintenance_windowoptionalstrpreferredMaintenanceWindowoptionalStringPreferredMaintenanceWindowoptionalstringPreferredMaintenanceWindowoptional*string #publiclyAccessibleoptionalboolean | IResolvablepublicly_accessibleoptionaltyping.Union[bool, IResolvable]publiclyAccessibleoptionalBooleanPubliclyAccessibleoptionalboolPubliclyAccessibleoptionalinterface{} #notes
When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.
When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.