DocumentDBClusterConfig Type
High-level Amazon DocumentDB (MongoDB-compatible) cluster builder following AWS best practices. **Default Settings:** - Engine = docdb - Instance class = db.t3.medium - Instances = 1 (single instance for dev) - Port = 27017 (MongoDB default) - Backup retention = 7 days - Preferred backup window = 03:00-04:00 UTC - Encryption at rest = enabled - Deletion protection = disabled (for dev) **Rationale:** These defaults follow AWS Well-Architected Framework: - MongoDB compatibility for easy migration from Cosmos DB - T3.medium suitable for development and testing - Encryption enabled by default for security - Single instance reduces costs for non-production **Use Cases:** - Document database applications - Content management systems - User profiles and catalogs - Mobile and web applications - Migration from MongoDB or Cosmos DB **Escape Hatch:** Access the underlying CDK DatabaseCluster via the `Cluster` property for advanced scenarios not covered by this builder.
Record fields
| Record Field | Description |
Full Usage:
BackupRetentionDays
Field type: int option
|
|
Full Usage:
ClusterName
Field type: string
|
|
Full Usage:
ConstructId
Field type: string option
|
|
Full Usage:
DeletionProtection
Field type: bool option
|
|
Full Usage:
InstanceType
Field type: string option
|
|
Full Usage:
Instances
Field type: int option
|
|
|
|
Full Usage:
MasterUsername
Field type: string option
|
|
Full Usage:
Port
Field type: int option
|
|
Full Usage:
PreferredBackupWindow
Field type: string option
|
|
Full Usage:
PreferredMaintenanceWindow
Field type: string option
|
|
|
|
|
|
Full Usage:
StorageEncrypted
Field type: bool option
|
|
Full Usage:
Tags
Field type: (string * string) list
|
|
|
|
|
|
FsCDK