Interface DatabaseInstanceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.915Z")
@Stability(Stable)
public interface DatabaseInstanceProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for a DatabaseInstanceNew.
Example:
// 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.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.core.*;
DatabaseCluster databaseCluster;
InstanceType instanceType;
DatabaseInstanceProps databaseInstanceProps = DatabaseInstanceProps.builder()
.cluster(databaseCluster)
.instanceType(instanceType)
// the properties below are optional
.autoMinorVersionUpgrade(false)
.availabilityZone("availabilityZone")
.dbInstanceName("dbInstanceName")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.removalPolicy(RemovalPolicy.DESTROY)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDatabaseInstancePropsstatic final classAn implementation forDatabaseInstanceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanIndicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.default StringThe name of the Availability Zone where the DB instance will be located.The DocumentDB database cluster the instance should launch into.default StringA name for the DB instance.The name of the compute and memory capacity classes.default StringThe weekly time range (in UTC) during which system maintenance can occur.default RemovalPolicyThe CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
The DocumentDB database cluster the instance should launch into. -
getInstanceType
The name of the compute and memory capacity classes. -
getAutoMinorVersionUpgrade
Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.Default: true
-
getAvailabilityZone
The name of the Availability Zone where the DB instance will be located.Default: - no preference
-
getDbInstanceName
A name for the DB instance.If you specify a name, AWS CloudFormation converts it to lowercase.
Default: - a CloudFormation generated name
-
getPreferredMaintenanceWindow
The weekly time range (in UTC) during which system maintenance can occur.Format:
ddd:hh24:mi-ddd:hh24:miConstraint: Minimum 30-minute windowDefault: - 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. To see the time blocks available, see https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-maintain.html#maintenance-window
-
getRemovalPolicy
The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.Default: RemovalPolicy.Retain
-
builder
- Returns:
- a
DatabaseInstanceProps.BuilderofDatabaseInstanceProps
-